|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.officefloor.plugin.socket.server.http.conversation.impl.HttpManagedObjectImpl
public class HttpManagedObjectImpl
ManagedObject for the ServerHttpConnection.
| Constructor Summary | |
|---|---|
HttpManagedObjectImpl(Connection connection,
HttpRequestImpl request,
HttpResponseImpl response)
Initiate to process the HttpRequest by populating the
HttpResponse. |
|
HttpManagedObjectImpl(HttpResponseImpl completedResponse)
Initiate with HttpResponse ready to be sent. |
|
| Method Summary | |
|---|---|
void |
cleanup()
Cleans up this HttpManagedObject. |
EscalationHandler |
getEscalationHandler()
Obtains the EscalationHandler. |
HttpRequest |
getHttpRequest()
Obtains the HttpRequest for this ServerHttpConnection. |
HttpResponse |
getHttpResponse()
Obtains the HttpResponse for this ServerHttpConnection. |
InetSocketAddress |
getLocalAddress()
Obtains the local address for this ServerHttpConnection. |
Object |
getObject()
|
InetSocketAddress |
getRemoteAddress()
Obtains the remote address for this ServerHttpConnection. |
ServerHttpConnection |
getServerHttpConnection()
Obtains the ServerHttpConnection. |
void |
handleEscalation(Throwable escalation)
|
boolean |
isSecure()
Indicates if the connection is over a secure channel (e.g. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpManagedObjectImpl(Connection connection,
HttpRequestImpl request,
HttpResponseImpl response)
HttpRequest by populating the
HttpResponse.
connection - Connection.request - HttpRequestImpl.response - HttpResponseImpl.public HttpManagedObjectImpl(HttpResponseImpl completedResponse)
HttpResponse ready to be sent.
completedResponse - HttpResponse ready to be sent.| Method Detail |
|---|
public Object getObject()
throws Exception
getObject in interface ManagedObjectExceptionpublic EscalationHandler getEscalationHandler()
HttpManagedObjectEscalationHandler.
getEscalationHandler in interface HttpManagedObjectEscalationHandler.public ServerHttpConnection getServerHttpConnection()
HttpManagedObjectServerHttpConnection.
getServerHttpConnection in interface HttpManagedObjectServerHttpConnection.
public void cleanup()
throws IOException
HttpManagedObjectHttpManagedObject.
cleanup in interface HttpManagedObjectIOException - If fails to clean up HttpManagedObject.public HttpRequest getHttpRequest()
ServerHttpConnectionHttpRequest for this ServerHttpConnection.
getHttpRequest in interface ServerHttpConnectionHttpRequest for this ServerHttpConnection.public HttpResponse getHttpResponse()
ServerHttpConnectionHttpResponse for this ServerHttpConnection.
getHttpResponse in interface ServerHttpConnectionHttpResponse for this ServerHttpConnection.public boolean isSecure()
ServerHttpConnection
isSecure in interface ServerHttpConnectiontrue if connection is over a secure channel.public InetSocketAddress getLocalAddress()
ServerHttpConnectionServerHttpConnection.
getLocalAddress in interface ServerHttpConnectionInetSocketAddress describing the local Socket for
this ServerHttpConnection.public InetSocketAddress getRemoteAddress()
ServerHttpConnectionServerHttpConnection.
getRemoteAddress in interface ServerHttpConnectionInetSocketAddress describing the remote Socket
for this ServerHttpConnection.
public void handleEscalation(Throwable escalation)
throws Throwable
handleEscalation in interface EscalationHandlerThrowable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||