public class

DefaultHttpServerConnection

extends SocketHttpServerConnection
java.lang.Object
   ↳ org.apache.http.impl.AbstractHttpServerConnection
     ↳ org.apache.http.impl.SocketHttpServerConnection
       ↳ org.apache.http.impl.DefaultHttpServerConnection

Class Overview

Default implementation of a server-side HTTP connection.

The following parameters can be used to customize the behavior of this class:

Summary

Public Constructors
DefaultHttpServerConnection()
Public Methods
void bind(Socket socket, HttpParams params)
Binds this connection to the given Socket.
String toString()
[Expand]
Inherited Methods
From class org.apache.http.impl.SocketHttpServerConnection
From class org.apache.http.impl.AbstractHttpServerConnection
From class java.lang.Object
From interface org.apache.http.HttpConnection
From interface org.apache.http.HttpInetConnection
From interface org.apache.http.HttpServerConnection

Public Constructors

public DefaultHttpServerConnection ()

Public Methods

public void bind (Socket socket, HttpParams params)

Binds this connection to the given Socket. This socket will be used by the connection to send and receive data.

This method will invoke createSessionInputBuffer(Socket, int, HttpParams) and createSessionOutputBuffer(Socket, int, HttpParams) methods to create session input / output buffers bound to this socket and then will invoke 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 isOpen() will return true.

Parameters
socket the socket.
params HTTP parameters.
Throws
IOException

public String toString ()