net.officefloor.plugin.socket.server.http.conversation
Interface HttpConversation

All Known Implementing Classes:
HttpConversationImpl

public interface HttpConversation

HTTP conversation.

Author:
Daniel Sagenschneider

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.
 

Method Detail

addRequest

HttpManagedObject addRequest(String method,
                             String requestURI,
                             String httpVersion,
                             List<HttpHeader> headers,
                             InputBufferStream body)
Adds a HttpRequest to the conversation.

Parameters:
method - Method.
requestURI - Request URI.
httpVersion - HTTP Version.
headers - HttpHeader instances.
body - InputBufferStream to the contents of the HttpRequest.
Returns:
HttpManagedObject to process the HttpRequest.

parseFailure

void parseFailure(HttpRequestParseException failure,
                  boolean isCloseConnection)
                  throws IOException
Handles a failure in parsing a HttpRequest.

Parameters:
failure - Failure in parsing a HttpRequest.
isCloseConnection - Flags to close the Connection once the HttpRequestParseException has been processed.
Throws:
IOException - If fails to write response regarding the HttpRequestParseException.


Copyright © 2005-2011. All Rights Reserved.