DefaultBHttpServerConnection
@Deprecated public abstract class AbstractHttpServerConnection extends Object implements HttpServerConnection
SessionInputBuffer
and
SessionOutputBuffer
implementations.
The following parameters can be used to customize the behavior of this class:
Constructor and Description |
---|
AbstractHttpServerConnection()
Deprecated.
Creates an instance of this class.
|
Modifier and Type | Method and Description |
---|---|
void |
flush()
Deprecated.
Sends all pending buffered data over this connection.
|
HttpConnectionMetrics |
getMetrics()
Deprecated.
Returns a collection of connection metrics.
|
boolean |
isStale()
Deprecated.
Checks whether this connection has gone down.
|
void |
receiveRequestEntity(HttpEntityEnclosingRequest request)
Deprecated.
Receives the next request entity available from this connection and attaches it to
an existing request.
|
HttpRequest |
receiveRequestHeader()
Deprecated.
Receives the request line and all headers available from this connection.
|
void |
sendResponseEntity(HttpResponse response)
Deprecated.
Sends the response entity of a response over this connection.
|
void |
sendResponseHeader(HttpResponse response)
Deprecated.
Sends the response line and headers of a response over this connection.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, getSocketTimeout, isOpen, setSocketTimeout, shutdown
public AbstractHttpServerConnection()
This constructor will invoke createEntityDeserializer()
and createEntitySerializer()
methods in order to initialize
HTTP entity serializer and deserializer implementations for this
connection.
public HttpRequest receiveRequestHeader() throws HttpException, IOException
HttpServerConnection
receiveRequestHeader
in interface HttpServerConnection
HttpException
- in case of HTTP protocol violationIOException
- in case of an I/O errorpublic void receiveRequestEntity(HttpEntityEnclosingRequest request) throws HttpException, IOException
HttpServerConnection
receiveRequestEntity
in interface HttpServerConnection
request
- the request to attach the entity to.HttpException
- in case of HTTP protocol violationIOException
- in case of an I/O errorpublic void flush() throws IOException
HttpServerConnection
flush
in interface HttpServerConnection
IOException
- in case of an I/O errorpublic void sendResponseHeader(HttpResponse response) throws HttpException, IOException
HttpServerConnection
sendResponseHeader
in interface HttpServerConnection
response
- the response whose headers to send.HttpException
- in case of HTTP protocol violationIOException
- in case of an I/O errorpublic void sendResponseEntity(HttpResponse response) throws HttpException, IOException
HttpServerConnection
sendResponseEntity
in interface HttpServerConnection
response
- the response whose entity to send.HttpException
- in case of HTTP protocol violationIOException
- in case of an I/O errorpublic boolean isStale()
HttpConnection
isStale
in interface HttpConnection
true
if attempts to use this connection are
likely to succeed, or false
if they are likely
to fail and this connection should be closedpublic HttpConnectionMetrics getMetrics()
HttpConnection
getMetrics
in interface HttpConnection
Copyright © 2010 - 2020 Adobe. All Rights Reserved