Android
org.apache.http
public interface

org.apache.http.HttpServerConnection

org.apache.http.HttpServerConnection HttpConnection

An HTTP connection for use on the server side. Requests are received, responses are sent.

Summary

Public Methods

          void  flush()
Sends all pending buffered data over this connection.
          void  receiveRequestEntity(HttpEntityEnclosingRequest request)
Receives the next request entity available from this connection and attaches it to an existing request.
          HttpRequest  receiveRequestHeader()
Receives the request line and all headers available from this connection.
          void  sendResponseEntity(HttpResponse response)
Sends the response entity of a response over this connection.
          void  sendResponseHeader(HttpResponse response)
Sends the response line and headers of a response over this connection.
Methods inherited from interface org.apache.http.HttpConnection

Details

Public Methods

public void flush()

Sends all pending buffered data over this connection.

Throws

IOException

public void receiveRequestEntity(HttpEntityEnclosingRequest request)

Receives the next request entity available from this connection and attaches it to an existing request.

Parameters

request the request to attach the entity to.

Throws

HttpException
IOException
HttpException

public HttpRequest receiveRequestHeader()

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.

Returns

  • a new HttpRequest object whose request line and headers are initialized.

Throws

HttpException
IOException
HttpException

public void sendResponseEntity(HttpResponse response)

Sends the response entity of a response over this connection.

Parameters

response the response whose entity to send.

Throws

HttpException
IOException
HttpException

public void sendResponseHeader(HttpResponse response)

Sends the response line and headers of a response over this connection.

Parameters

response the response whose headers to send.

Throws

HttpException
IOException
HttpException
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48