Home » HttpComponents-Core-4.0.1 » org.apache.http » [javadoc | source]
org.apache.http
public interface: HttpServerConnection [javadoc | source]

All Implemented Interfaces:
    HttpConnection

All Known Implementing Classes:
    SocketHttpServerConnection, DefaultHttpServerConnection, AbstractHttpServerConnection

A server-side HTTP connection, which can be used for receiving requests and sending responses.
Method from org.apache.http.HttpServerConnection Summary:
flush,   receiveRequestEntity,   receiveRequestHeader,   sendResponseEntity,   sendResponseHeader
Method from org.apache.http.HttpServerConnection Detail:
 public  void flush() throws IOException
    Sends all pending buffered data over this connection.
 public  void receiveRequestEntity(HttpEntityEnclosingRequest request) throws HttpException, IOException
    Receives the next request entity available from this connection and attaches it to an existing request.
 public HttpRequest receiveRequestHeader() throws HttpException, IOException
    Receives the request line and all headers available from this connection. The caller should examine the returned request and decide if to receive a request entity as well.
 public  void sendResponseEntity(HttpResponse response) throws HttpException, IOException
    Sends the response entity of a response over this connection.
 public  void sendResponseHeader(HttpResponse response) throws HttpException, IOException
    Sends the response line and headers of a response over this connection.