public interface HttpConversation
Modifier and Type | Method and Description |
---|---|
HttpManagedObject |
addRequest(String method,
String requestURI,
String httpVersion,
List<HttpHeader> headers,
HttpEntity entity)
Adds a
HttpRequest to the conversation. |
void |
closeConnection()
Closes the
Connection . |
void |
parseFailure(HttpRequestParseException failure,
boolean isCloseConnection)
Handles a failure in parsing a
HttpRequest . |
HttpManagedObject addRequest(String method, String requestURI, String httpVersion, List<HttpHeader> headers, HttpEntity entity)
HttpRequest
to the conversation.method
- Method.requestURI
- Request URI.httpVersion
- HTTP Version.headers
- HttpHeader
instances.entity
- HttpEntity
to the entity of the HttpRequest
.HttpManagedObject
to process the HttpRequest
.void parseFailure(HttpRequestParseException failure, boolean isCloseConnection) throws IOException
HttpRequest
.failure
- 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
.void closeConnection() throws IOException
Connection
.IOException
- If fails to close the Connection
.Copyright © 2005–2016. All rights reserved.