@NotThreadSafe public class DefaultHttpServerConnection extends SocketHttpServerConnection
The following parameters can be used to customize the behavior of this class:
CoreProtocolPNames.HTTP_ELEMENT_CHARSETCoreConnectionPNames.TCP_NODELAYCoreConnectionPNames.SO_TIMEOUTCoreConnectionPNames.SO_LINGERCoreConnectionPNames.SO_KEEPALIVECoreConnectionPNames.SOCKET_BUFFER_SIZECoreConnectionPNames.MAX_LINE_LENGTHCoreConnectionPNames.MAX_HEADER_COUNTCoreConnectionPNames.MIN_CHUNK_LIMIT| Constructor and Description |
|---|
DefaultHttpServerConnection() |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(Socket socket,
HttpParams params)
Binds this connection to the given
Socket. |
assertNotOpen, assertOpen, close, createSessionInputBuffer, createSessionOutputBuffer, getLocalAddress, getLocalPort, getRemoteAddress, getRemotePort, getSocket, getSocketTimeout, isOpen, setSocketTimeout, shutdown, toStringcreateConnectionMetrics, createEntityDeserializer, createEntitySerializer, createHttpRequestFactory, createRequestParser, createResponseWriter, doFlush, flush, getMetrics, init, isEof, isStale, receiveRequestEntity, receiveRequestHeader, sendResponseEntity, sendResponseHeaderclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetMetrics, isStalepublic void bind(Socket socket, HttpParams params) throws IOException
SocketHttpServerConnectionSocket. This socket will be
used by the connection to send and receive data.
This method will invoke SocketHttpServerConnection.createSessionInputBuffer(Socket, int, HttpParams)
and SocketHttpServerConnection.createSessionOutputBuffer(Socket, int, HttpParams) methods
to create session input / output buffers bound to this socket and then
will invoke AbstractHttpServerConnection.init(SessionInputBuffer, SessionOutputBuffer, HttpParams)
method to pass references to those buffers to the underlying HTTP message
parser and formatter.
After this method's execution the connection status will be reported
as open and the SocketHttpServerConnection.isOpen() will return true.
bind in class SocketHttpServerConnectionsocket - the socket.params - HTTP parameters.IOException - in case of an I/O error.Copyright © 2005–2013 The Apache Software Foundation. All rights reserved.