public class HTTPStoreConnectionHandler extends Object implements gr.uoa.di.madgik.commons.server.http.IHTTPConnectionManagerEntry
HTTPConnectionManager in order to
receive incoming HTTP connection from clients. This entry is set to serve connections for the
gRS2 Store component| Constructor and Description |
|---|
HTTPStoreConnectionHandler() |
| Modifier and Type | Method and Description |
|---|---|
gr.uoa.di.madgik.commons.server.http.IHTTPConnectionManagerEntry.NamedEntry |
GetName() |
void |
HandleConnection(Socket socket,
String request,
BufferedOutputStream out,
String key) |
public gr.uoa.di.madgik.commons.server.http.IHTTPConnectionManagerEntry.NamedEntry GetName()
The connection manager entry this handler can serve. The entry returned is marked
with NamedEntry#gRS2Store
GetName in interface gr.uoa.di.madgik.commons.server.http.IHTTPConnectionManagerEntrygr.uoa.di.madgik.commons.server.IHTTPConnectionManagerEntry#GetName()public void HandleConnection(Socket socket, String request, BufferedOutputStream out, String key)
After a request of the correct type has reached HTTPConnectionManager, it is forwarded here
where the specific IBufferStore is located. A new BufferStoreReader is created
targeting the requesting IBufferStore. A new HTTPWriterProxy instance is utilized by the
reader to create a new URI locator that is then send back to the requester to user and access the reader's
IBuffer. The populating thread of execution is managed by the BufferStoreReader.
The connection received is then closed as the actual mirroring procedure will then start after a request
that will be handled by the HTTPConnectionHandler
HandleConnection in interface gr.uoa.di.madgik.commons.server.http.IHTTPConnectionManagerEntrygr.uoa.di.madgik.commons.server.IHTTPConnectionManagerEntry#HandleConnection(java.net.Socket)Copyright © 2014. All Rights Reserved.