Package org.apache.http.impl
Class DefaultHttpServerConnection
java.lang.Object
org.apache.http.impl.AbstractHttpServerConnection
org.apache.http.impl.SocketHttpServerConnection
org.apache.http.impl.DefaultHttpServerConnection
- All Implemented Interfaces:
Closeable,AutoCloseable,HttpConnection,HttpInetConnection,HttpServerConnection
Deprecated.
Default implementation of a server-side HTTP connection.
- Since:
- 4.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbind(Socket socket, HttpParams params) Deprecated.Binds this connection to the givenSocket.Methods inherited from class org.apache.http.impl.SocketHttpServerConnection
assertNotOpen, assertOpen, close, createSessionInputBuffer, createSessionOutputBuffer, getLocalAddress, getLocalPort, getRemoteAddress, getRemotePort, getSocket, getSocketTimeout, isOpen, setSocketTimeout, shutdown, toStringMethods inherited from class org.apache.http.impl.AbstractHttpServerConnection
createConnectionMetrics, createEntityDeserializer, createEntitySerializer, createHttpRequestFactory, createRequestParser, createResponseWriter, doFlush, flush, getMetrics, init, isEof, isStale, receiveRequestEntity, receiveRequestHeader, sendResponseEntity, sendResponseHeaderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.http.HttpConnection
getMetrics, isStale
-
Constructor Details
-
DefaultHttpServerConnection
public DefaultHttpServerConnection()Deprecated.
-
-
Method Details
-
bind
Deprecated.Description copied from class:SocketHttpServerConnectionBinds this connection to the givenSocket. This socket will be used by the connection to send and receive data.This method will invoke
SocketHttpServerConnection.createSessionInputBuffer(Socket, int, HttpParams)andSocketHttpServerConnection.createSessionOutputBuffer(Socket, int, HttpParams)methods to create session input / output buffers bound to this socket and then will invokeAbstractHttpServerConnection.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 returntrue.- Overrides:
bindin classSocketHttpServerConnection- Parameters:
socket- the socket.params- HTTP parameters.- Throws:
IOException- in case of an I/O error.
-
DefaultBHttpServerConnection