|
||||||||||
| 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.HttpConversationImpl
public class HttpConversationImpl
Manages the HTTP conversation on a Connection.
| Constructor Summary | |
|---|---|
HttpConversationImpl(Connection connection,
BufferSquirtFactory bufferSquirtFactory,
boolean isSendStackTraceOnFailure)
Initiate. |
|
| Method Summary | |
|---|---|
HttpManagedObject |
addRequest(String method,
String requestURI,
String httpVersion,
List<HttpHeader> headers,
InputBufferStream body)
Adds a HttpRequest to the conversation. |
void |
parseFailure(HttpRequestParseException failure,
boolean isCloseConnection)
Handles a failure in parsing a HttpRequest. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpConversationImpl(Connection connection,
BufferSquirtFactory bufferSquirtFactory,
boolean isSendStackTraceOnFailure)
connection - Connection.bufferSquirtFactory - BufferSquirtFactory.isSendStackTraceOnFailure - Flags whether to send the stack trace on failure.| Method Detail |
|---|
public HttpManagedObject addRequest(String method,
String requestURI,
String httpVersion,
List<HttpHeader> headers,
InputBufferStream body)
HttpConversationHttpRequest to the conversation.
addRequest in interface HttpConversationmethod - Method.requestURI - Request URI.httpVersion - HTTP Version.headers - HttpHeader instances.body - InputBufferStream to the contents of the
HttpRequest.
HttpManagedObject to process the HttpRequest.
public void parseFailure(HttpRequestParseException failure,
boolean isCloseConnection)
throws IOException
HttpConversationHttpRequest.
parseFailure in interface HttpConversationfailure - Failure in parsing a HttpRequest.isCloseConnection - Flags to close the Connection once the
HttpRequestParseException has been processed.
IOException - If fails to write response regarding the
HttpRequestParseException.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||