HttpClientConnection.
| Modifier and Type | Field and Description |
|---|---|
| private volatile boolean | |
| private final ContentLengthStrategy | |
| private final ContentLengthStrategy | |
| private final HttpMessageWriter | |
| private final ResponseOutOfOrderStrategy | |
| private final HttpMessageParser |
| Access | Constructor and Description |
|---|---|
| public | DefaultBHttpClientConnection(final Http1Config
Message http1Config. If http1Config, final CharsetDecoder null
Http1Config#DEFAULT will be used.decoder to be used for decoding HTTP protocol elements.
If charDecoder, final CharsetEncoder null simple type cast will be used for byte to char conversion.encoder to be used for encoding HTTP protocol elements.
If charEncoder, final ContentLengthStrategy null simple type cast will be used for char to byte conversion.incoming content length strategy. If incomingContentStrategy, final ContentLengthStrategy null
DefaultContentLengthStrategy#INSTANCE will be used.outgoing content length strategy. If outgoingContentStrategy, final ResponseOutOfOrderStrategy null
DefaultContentLengthStrategy#INSTANCE will be used.response out of order strategy. If responseOutOfOrderStrategy, final HttpMessageWriterFactory<ClassicHttpRequest> null
NoResponseOutOfOrderStrategy#INSTANCE will be used.request writer factory. If requestWriterFactory, final HttpMessageParserFactory<ClassicHttpResponse> null
DefaultHttpRequestWriterFactory#INSTANCE will be used.response parser factory. If responseParserFactory)null
DefaultHttpResponseParserFactory#INSTANCE will be used.Creates new instance of DefaultBHttpClientConnection. |
| public | DefaultBHttpClientConnection(final Http1Config
Message http1Config. If http1Config, final CharsetDecoder null
Http1Config#DEFAULT will be used.decoder to be used for decoding HTTP protocol elements.
If charDecoder, final CharsetEncoder null simple type cast will be used for byte to char conversion.encoder to be used for encoding HTTP protocol elements.
If charEncoder, final ContentLengthStrategy null simple type cast will be used for char to byte conversion.incoming content length strategy. If incomingContentStrategy, final ContentLengthStrategy null
DefaultContentLengthStrategy#INSTANCE will be used.outgoing content length strategy. If outgoingContentStrategy, final HttpMessageWriterFactory<ClassicHttpRequest> null
DefaultContentLengthStrategy#INSTANCE will be used.request writer factory. If requestWriterFactory, final HttpMessageParserFactory<ClassicHttpResponse> null
DefaultHttpRequestWriterFactory#INSTANCE will be used.response parser factory. If responseParserFactory)null
DefaultHttpResponseParserFactory#INSTANCE will be used.Creates new instance of DefaultBHttpClientConnection. |
| public | DefaultBHttpClientConnection(final Http1Config http1Config, final CharsetDecoder charDecoder, final CharsetEncoder charEncoder)
|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | bind(final Socket
the socket. socket)Overrides org. Socket.
|
| public boolean | isConsistent()
Implements org. |
| protected void | |
| protected void | |
| public void | receiveResponseEntity(final ClassicHttpResponse
the response to attach the entity to response)Implements org. |
| public ClassicHttpResponse | receiveResponseHeader()
Implements org. |
| public void | sendRequestEntity(final ClassicHttpRequest
the request whose entity to send. request)Implements org. |
| public void | sendRequestHeader(final ClassicHttpRequest
the request whose headers to send. request)Implements org. |
| public void | terminateRequest(final ClassicHttpRequest
the request to be terminated prematurely. request)Implements org. |
| consistent | back to summary |
|---|---|
| private volatile boolean consistent | |
| incomingContentStrategy | back to summary |
|---|---|
| private final ContentLengthStrategy incomingContentStrategy | |
| outgoingContentStrategy | back to summary |
|---|---|
| private final ContentLengthStrategy outgoingContentStrategy | |
| requestWriter | back to summary |
|---|---|
| private final HttpMessageWriter<ClassicHttpRequest> requestWriter | |
| responseOutOfOrderStrategy | back to summary |
|---|---|
| private final ResponseOutOfOrderStrategy responseOutOfOrderStrategy | |
| responseParser | back to summary |
|---|---|
| private final HttpMessageParser<ClassicHttpResponse> responseParser | |
| DefaultBHttpClientConnection | back to summary |
|---|---|
| public DefaultBHttpClientConnection(final Http1Config http1Config, final CharsetDecoder charDecoder, final CharsetEncoder charEncoder, final ContentLengthStrategy incomingContentStrategy, final ContentLengthStrategy outgoingContentStrategy, final ResponseOutOfOrderStrategy responseOutOfOrderStrategy, final HttpMessageWriterFactory<ClassicHttpRequest> requestWriterFactory, final HttpMessageParserFactory<ClassicHttpResponse> responseParserFactory) Creates new instance of DefaultBHttpClientConnection.
| |
| DefaultBHttpClientConnection | back to summary |
|---|---|
| public DefaultBHttpClientConnection(final Http1Config http1Config, final CharsetDecoder charDecoder, final CharsetEncoder charEncoder, final ContentLengthStrategy incomingContentStrategy, final ContentLengthStrategy outgoingContentStrategy, final HttpMessageWriterFactory<ClassicHttpRequest> requestWriterFactory, final HttpMessageParserFactory<ClassicHttpResponse> responseParserFactory) Creates new instance of DefaultBHttpClientConnection.
| |
| DefaultBHttpClientConnection | back to summary |
|---|---|
| public DefaultBHttpClientConnection(final Http1Config http1Config, final CharsetDecoder charDecoder, final CharsetEncoder charEncoder) | |
| DefaultBHttpClientConnection | back to summary |
|---|---|
| public DefaultBHttpClientConnection(final Http1Config http1Config) | |
| bind | back to summary |
|---|---|
| public void bind(final Socket socket) throws IOException Overrides org. Doc from org. Binds this connection to the given
After this method's execution the connection status will be reported
as open and the
| |
| isConsistent | back to summary |
|---|---|
| public boolean isConsistent() Implements org. Doc from org. Checks whether this connection is in a consistent state.
| |
| onRequestSubmitted | back to summary |
|---|---|
| protected void onRequestSubmitted(final ClassicHttpRequest request) | |
| onResponseReceived | back to summary |
|---|---|
| protected void onResponseReceived(final ClassicHttpResponse response) | |
| receiveResponseEntity | back to summary |
|---|---|
| public void receiveResponseEntity(final ClassicHttpResponse response) throws HttpException, IOException Implements org. Doc from org. Receives the next response entity available from this connection and attaches it to an existing HttpResponse object.
| |
| receiveResponseHeader | back to summary |
|---|---|
| public ClassicHttpResponse receiveResponseHeader() throws HttpException, IOException Implements org. Doc from org. Receives the request line and headers of the next response available from this connection. The caller should examine the HttpResponse object to find out if it should try to receive a response entity as well.
| |
| sendRequestEntity | back to summary |
|---|---|
| public void sendRequestEntity(final ClassicHttpRequest request) throws HttpException, IOException Implements org. Doc from org. Sends the request entity over the connection.
| |
| sendRequestHeader | back to summary |
|---|---|
| public void sendRequestHeader(final ClassicHttpRequest request) throws HttpException, IOException Implements org. Doc from org. Sends the request line and all headers over the connection.
| |
| terminateRequest | back to summary |
|---|---|
| public void terminateRequest(final ClassicHttpRequest request) throws HttpException, IOException Implements org. Doc from org. Terminates request prematurely potentially leaving the connection in a inconsistent state.
| |