FileDocCategorySizeDatePackage
HttpServerConnection.javaAPI DocAndroid 1.5 API3345Wed May 06 22:41:10 BST 2009org.apache.http

HttpServerConnection

public interface HttpServerConnection implements HttpConnection
An HTTP connection for use on the server side. Requests are received, responses are sent.
author
Oleg Kalnichevski
version
$Revision: 542199 $
since
4.0

Fields Summary
Constructors Summary
Methods Summary
public voidflush()
Sends all pending buffered data over this connection.

throws
IOException

public voidreceiveRequestEntity(org.apache.http.HttpEntityEnclosingRequest request)
Receives the next request entity available from this connection and attaches it to an existing request.

param
request the request to attach the entity to.
throws
HttpException
throws
IOException

public org.apache.http.HttpRequestreceiveRequestHeader()
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.

return
a new HttpRequest object whose request line and headers are initialized.
throws
HttpException
throws
IOException

public voidsendResponseEntity(org.apache.http.HttpResponse response)
Sends the response entity of a response over this connection.

param
response the response whose entity to send.
throws
HttpException
throws
IOException

public voidsendResponseHeader(org.apache.http.HttpResponse response)
Sends the response line and headers of a response over this connection.

param
response the response whose headers to send.
throws
HttpException
throws
IOException