|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.http.impl.AbstractHttpServerConnection
org.apache.http.impl.SocketHttpServerConnection
org.apache.http.impl.DefaultHttpServerConnection
public class DefaultHttpServerConnection
Default implementation of a server-side HTTP connection.
The following parameters can be used to customize the behavior of this class:
CoreProtocolPNames.HTTP_ELEMENT_CHARSET
CoreConnectionPNames.TCP_NODELAY
CoreConnectionPNames.SO_TIMEOUT
CoreConnectionPNames.SO_LINGER
CoreConnectionPNames.SOCKET_BUFFER_SIZE
CoreConnectionPNames.MAX_LINE_LENGTH
Constructor Summary | |
---|---|
DefaultHttpServerConnection()
|
Method Summary | |
---|---|
void |
bind(java.net.Socket socket,
HttpParams params)
Binds this connection to the given Socket . |
java.lang.String |
toString()
|
Methods inherited from class org.apache.http.impl.SocketHttpServerConnection |
---|
assertNotOpen, assertOpen, close, createHttpDataReceiver, createHttpDataTransmitter, createSessionInputBuffer, createSessionOutputBuffer, getLocalAddress, getLocalPort, getRemoteAddress, getRemotePort, getSocket, getSocketTimeout, isOpen, setSocketTimeout, shutdown |
Methods inherited from class org.apache.http.impl.AbstractHttpServerConnection |
---|
createConnectionMetrics, createEntityDeserializer, createEntitySerializer, createHttpRequestFactory, createRequestParser, createResponseWriter, doFlush, flush, getMetrics, init, isEof, isStale, receiveRequestEntity, receiveRequestHeader, sendResponseEntity, sendResponseHeader |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.http.HttpConnection |
---|
getMetrics, isStale |
Constructor Detail |
---|
public DefaultHttpServerConnection()
Method Detail |
---|
public void bind(java.net.Socket socket, HttpParams params) throws java.io.IOException
SocketHttpServerConnection
Socket
. 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 SocketHttpServerConnection
socket
- the socket.params
- HTTP parameters.
java.io.IOException
- in case of an I/O error.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |