Deprecated
(4.3) use DefaultBHttpServerConnection
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 HttpMessageParser | |
| private HttpMessageWriter |
| 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 HttpRequestFactory | Returns: HTTP request factory.Creates an instance of |
| protected HttpMessageParser | Returns: HTTP message parser.the session input buffer. buffer, final HttpRequestFactory the HTTP request factory. requestFactory, final HttpParams HTTP parameters. params)
Deprecated
as a consequence of
Creates an instance of HttpParams being deprecated.
HttpMessageParser to be used for parsing
HTTP requests received over this connection.
|
| 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 responses sent over this connection.
|
| protected void | |
| public void | flush()
Implements org. |
| public HttpConnectionMetrics | getMetrics()
Implements org. |
| protected void | init(final SessionInputBuffer
the session input buffer. inBuffer, final SessionOutputBuffer the session output buffer. outbuffer, 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 | isStale()
Implements org. |
| public void | receiveRequestEntity(final HttpEntityEnclosingRequest
the request to attach the entity to. request)Implements org. |
| public HttpRequest | receiveRequestHeader()
Implements org. |
| public void | sendResponseEntity(final HttpResponse
the response whose entity to send. response)Implements org. |
| public void | sendResponseHeader(final HttpResponse
the response whose headers to send. response)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 | |
| requestParser | back to summary |
|---|---|
| private HttpMessageParser<HttpRequest> requestParser | |
| responseWriter | back to summary |
|---|---|
| private HttpMessageWriter<HttpResponse> responseWriter | |
| AbstractHttpServerConnection | back to summary |
|---|---|
| public AbstractHttpServerConnection() 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
| |
| createHttpRequestFactory | back to summary |
|---|---|
| protected HttpRequestFactory createHttpRequestFactory() Creates an instance of
This method can be overridden in a super class in order to provide
a different implementation of the
| |
| createRequestParser | 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
| |
| createResponseWriter | 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
| |
| doFlush | back to summary |
|---|---|
| protected void doFlush() throws IOException | |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Implements org. Doc from org. Sends all pending buffered data over this 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 inBuffer, final SessionOutputBuffer outbuffer, final HttpParams params)
Deprecated as a consequence of Initializes this connection object with
This method will invoke
| |
| isEof | back to summary |
|---|---|
| protected boolean isEof() | |
| 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.
| |
| receiveRequestEntity | back to summary |
|---|---|
| public void receiveRequestEntity(final HttpEntityEnclosingRequest request) throws HttpException, IOException Implements org. Doc from org. Receives the next request entity available from this connection and attaches it to an existing request.
| |
| receiveRequestHeader | back to summary |
|---|---|
| public HttpRequest receiveRequestHeader() throws HttpException, IOException Implements org. Doc from org. Receives the request line and all headers available from this connection. The caller should examine the returned request and decide if to receive a request entity as well.
| |
| sendResponseEntity | back to summary |
|---|---|
| public void sendResponseEntity(final HttpResponse response) throws HttpException, IOException Implements org. Doc from org. Sends the response entity of a response over this connection.
| |
| sendResponseHeader | back to summary |
|---|---|
| public void sendResponseHeader(final HttpResponse response) throws HttpException, IOException Implements org. Doc from org. Sends the response line and headers of a response over this connection.
| |