Build 1.0_r1(from source)

android.net.http
Class HttpConnection

java.lang.Object
  extended by android.net.http.Connection
      extended by android.net.http.HttpConnection

 class HttpConnection
extends Connection

A requestConnection connecting to a normal (non secure) http server


Field Summary
 
Fields inherited from class android.net.http.Connection
mCertificate, mConnectionManager, mContext, mHost, mHttpClientConnection, mRequestFeeder, SOCKET_TIMEOUT
 
Constructor Summary
HttpConnection(Context context, HttpHost host, RequestQueue.ConnectionManager connectionManager, RequestFeeder requestFeeder)
           
 
Method Summary
(package private)  void closeConnection()
          Closes the low level connection.
(package private)  String getScheme()
          typically http or https...
(package private)  AndroidHttpClientConnection openConnection(Request req)
          Opens the connection to a http server
(package private)  void restartConnection(boolean abort)
          Restart a secure connection suspended waiting for user interaction.
 
Methods inherited from class android.net.http.Connection
cancel, getBuf, getCanPersist, getCertificate, getConnection, getHost, getHttpContext, processRequests, setCanPersist, setCanPersist, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HttpConnection

HttpConnection(Context context,
               HttpHost host,
               RequestQueue.ConnectionManager connectionManager,
               RequestFeeder requestFeeder)
Method Detail

openConnection

AndroidHttpClientConnection openConnection(Request req)
                                     throws IOException
Opens the connection to a http server

Specified by:
openConnection in class Connection
Returns:
the opened low level connection
Throws:
IOException - if the connection fails for any reason.

closeConnection

void closeConnection()
Closes the low level connection. If an exception is thrown then it is assumed that the connection will have been closed (to the extent possible) anyway and the caller does not need to take any further action.

Specified by:
closeConnection in class Connection

restartConnection

void restartConnection(boolean abort)
Restart a secure connection suspended waiting for user interaction.


getScheme

String getScheme()
Description copied from class: Connection
typically http or https... set by subclass

Specified by:
getScheme in class Connection

Build 1.0_r1(from source)

Please submit a feedback, bug or feature