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, waitclose, getSocketTimeout, isOpen, setSocketTimeout, shutdownpublic 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
HttpServerConnectionreceiveRequestHeader in interface HttpServerConnectionHttpException - in case of HTTP protocol violationIOException - in case of an I/O errorpublic void receiveRequestEntity(HttpEntityEnclosingRequest request) throws HttpException, IOException
HttpServerConnectionreceiveRequestEntity in interface HttpServerConnectionrequest - 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
HttpServerConnectionflush in interface HttpServerConnectionIOException - in case of an I/O errorpublic void sendResponseHeader(HttpResponse response) throws HttpException, IOException
HttpServerConnectionsendResponseHeader in interface HttpServerConnectionresponse - 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
HttpServerConnectionsendResponseEntity in interface HttpServerConnectionresponse - the response whose entity to send.HttpException - in case of HTTP protocol violationIOException - in case of an I/O errorpublic boolean isStale()
HttpConnectionisStale in interface HttpConnectiontrue 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()
HttpConnectiongetMetrics in interface HttpConnectionCopyright © 2010 - 2020 Adobe. All Rights Reserved