android.net.http
Class HttpConnection
java.lang.Object
android.net.http.Connection
android.net.http.HttpConnection
class HttpConnection
- extends Connection
A requestConnection connecting to a normal (non secure) http server
| Methods inherited from class android.net.http.Connection |
cancel, getBuf, getCanPersist, getCertificate, getConnection, getHost, getHttpContext, processRequests, setCanPersist, setCanPersist, toString |
HttpConnection
HttpConnection(Context context,
HttpHost host,
RequestQueue.ConnectionManager connectionManager,
RequestFeeder requestFeeder)
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
Please submit a feedback, bug or feature