Deprecated
(4.3) use DefaultBHttpClientConnection
SessionInputBuffer and
SessionOutputBuffer implementations.
The following parameters can be used to customize the behavior of this class:
| Modifier and Type | Field and Description |
|---|---|
| private final EntityDeserializer | entitydeserializer
Deprecated
as a consequence of
EntityDeserializer being deprecated.
|
| private final EntitySerializer | entityserializer
Deprecated
as a consequence of
EntitySerializer being deprecated.
|
| private EofSensor | |
| private SessionInputBuffer | |
| private HttpConnectionMetricsImpl | |
| private SessionOutputBuffer | |
| private HttpMessageWriter | |
| private HttpMessageParser |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract void | |
| protected HttpConnectionMetricsImpl | createConnectionMetrics(final HttpTransportMetrics inTransportMetric, final HttpTransportMetrics outTransportMetric)
|
| protected EntityDeserializer | Returns: HTTP entity deserializer
Deprecated
as a consequence of
Creates an instance of EntityDeserializer being deprecated.
EntityDeserializer with the
LaxContentLengthStrategy implementation to be used for
de-serializing entities received over this connection.
|
| protected EntitySerializer | Returns: HTTP entity serialzier.
Deprecated
as a consequence of
Creates an instance of EntitySerializer being deprecated.
EntitySerializer with the
StrictContentLengthStrategy implementation to be used for
serializing HTTP entities sent over this connection.
|
| protected HttpResponseFactory | Returns: HTTP response factory.Creates an instance of |
| protected HttpMessageWriter | Returns: HTTP message writerthe session output buffer buffer, final HttpParams HTTP parameters params)
Deprecated
as a consequence of
Creates an instance of HttpParams being deprecated.
HttpMessageWriter to be used for
writing out HTTP requests sent over this connection.
|
| protected HttpMessageParser | Returns: HTTP message parser.the session input buffer. buffer, final HttpResponseFactory the HTTP response factory. responseFactory, final HttpParams HTTP parameters. params)
Deprecated
as a consequence of
Creates an instance of HttpParams being deprecated.
HttpMessageParser to be used for parsing
HTTP responses received over this connection.
|
| protected void | |
| public void | flush()
Implements org. |
| public HttpConnectionMetrics | getMetrics()
Implements org. |
| protected void | init(final SessionInputBuffer
the session input buffer. sessionInputBuffer, final SessionOutputBuffer the session output buffer. sessionOutputBuffer, final HttpParams HTTP parameters. params)
Deprecated
as a consequence of
Initializes this connection object with HttpParams being deprecated.
SessionInputBuffer and
SessionOutputBuffer instances to be used for sending and
receiving data.
|
| protected boolean | |
| public boolean | isResponseAvailable(final int
the maximum time in milliseconds to wait for data timeout)Implements org. |
| public boolean | isStale()
Implements org. |
| public void | receiveResponseEntity(final HttpResponse
the response to attach the entity to response)Implements org. |
| public HttpResponse | receiveResponseHeader()
Implements org. |
| public void | sendRequestEntity(final HttpEntityEnclosingRequest
the request whose entity to send. request)Implements org. |
| public void | sendRequestHeader(final HttpRequest
the request whose headers to send. request)Implements org. |
| entitydeserializer | back to summary |
|---|---|
| private final EntityDeserializer entitydeserializer
Deprecated as a consequence of | |
| entityserializer | back to summary |
|---|---|
| private final EntitySerializer entityserializer
Deprecated as a consequence of | |
| eofSensor | back to summary |
|---|---|
| private EofSensor eofSensor
Deprecated as a consequence of | |
| inBuffer | back to summary |
|---|---|
| private SessionInputBuffer inBuffer | |
| metrics | back to summary |
|---|---|
| private HttpConnectionMetricsImpl metrics | |
| outbuffer | back to summary |
|---|---|
| private SessionOutputBuffer outbuffer | |
| requestWriter | back to summary |
|---|---|
| private HttpMessageWriter<HttpRequest> requestWriter | |
| responseParser | back to summary |
|---|---|
| private HttpMessageParser<HttpResponse> responseParser | |
| AbstractHttpClientConnection | back to summary |
|---|---|
| public AbstractHttpClientConnection() Creates an instance of this class.
This constructor will invoke | |
| assertOpen | back to summary |
|---|---|
| protected abstract void assertOpen() throws IllegalStateException Asserts if the connection is open.
| |
| createConnectionMetrics | back to summary |
|---|---|
protected HttpConnectionMetricsImpl createConnectionMetrics(final HttpTransportMetrics inTransportMetric, final HttpTransportMetrics outTransportMetric)
| |
| createEntityDeserializer | back to summary |
|---|---|
| protected EntityDeserializer createEntityDeserializer()
Deprecated as a consequence of Creates an instance of
This method can be overridden in a super class in order to create
instances of
| |
| createEntitySerializer | back to summary |
|---|---|
| protected EntitySerializer createEntitySerializer()
Deprecated as a consequence of Creates an instance of
This method can be overridden in a super class in order to create
instances of
| |
| createHttpResponseFactory | back to summary |
|---|---|
| protected HttpResponseFactory createHttpResponseFactory() Creates an instance of
This method can be overridden in a super class in order to provide
a different implementation of the
| |
| createRequestWriter | back to summary |
|---|---|
| protected HttpMessageWriter Deprecated as a consequence of Creates an instance of
This method can be overridden in a super class in order to provide
a different implementation of the
| |
| createResponseParser | back to summary |
|---|---|
| protected HttpMessageParser Deprecated as a consequence of Creates an instance of
This method can be overridden in a super class in order to provide
a different implementation of the
| |
| doFlush | back to summary |
|---|---|
| protected void doFlush() throws IOException | |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Implements org. Doc from org. Writes out all pending buffered data over the open connection.
| |
| getMetrics | back to summary |
|---|---|
| public HttpConnectionMetrics getMetrics() Implements org. Doc from org. Returns a collection of connection metrics.
| |
| init | back to summary |
|---|---|
| protected void init(final SessionInputBuffer sessionInputBuffer, final SessionOutputBuffer sessionOutputBuffer, final HttpParams params)
Deprecated as a consequence of Initializes this connection object with
This method will invoke
| |
| isEof | back to summary |
|---|---|
| protected boolean isEof() | |
| isResponseAvailable | back to summary |
|---|---|
| public boolean isResponseAvailable(final int timeout) throws IOException Implements org. Doc from org. Checks if response data is available from the connection. May wait for the specified time until some data becomes available. Note that some implementations may completely ignore the timeout parameter.
| |
| isStale | back to summary |
|---|---|
| public boolean isStale() Implements org. Doc from org. Checks whether this connection has gone down. Network connections may get closed during some time of inactivity for several reasons. The next time a read is attempted on such a connection it will throw an IOException. This method tries to alleviate this inconvenience by trying to find out if a connection is still usable. Implementations may do that by attempting a read with a very small timeout. Thus this method may block for a small amount of time before returning a result. It is therefore an expensive operation.
| |
| receiveResponseEntity | back to summary |
|---|---|
| public void receiveResponseEntity(final HttpResponse 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 HttpResponse 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 HttpEntityEnclosingRequest request) throws HttpException, IOException Implements org. Doc from org. Sends the request entity over the connection.
| |
| sendRequestHeader | back to summary |
|---|---|
| public void sendRequestHeader(final HttpRequest request) throws HttpException, IOException Implements org. Doc from org. Sends the request line and all headers over the connection.
| |