Search in sources :

Example 41 with OperatedClientConnection

use of org.apache.http.conn.OperatedClientConnection in project robovm by robovm.

the class AbstractClientConnAdapter method setSocketTimeout.

// non-javadoc, see interface HttpConnection
public void setSocketTimeout(int timeout) {
    OperatedClientConnection conn = getWrappedConnection();
    assertValid(conn);
    conn.setSocketTimeout(timeout);
}
Also used : OperatedClientConnection(org.apache.http.conn.OperatedClientConnection)

Example 42 with OperatedClientConnection

use of org.apache.http.conn.OperatedClientConnection in project platform_external_apache-http by android.

the class AbstractClientConnAdapter method sendRequestHeader.

// non-javadoc, see interface HttpClientConnection
public void sendRequestHeader(HttpRequest request) throws HttpException, IOException {
    assertNotAborted();
    OperatedClientConnection conn = getWrappedConnection();
    assertValid(conn);
    unmarkReusable();
    conn.sendRequestHeader(request);
}
Also used : OperatedClientConnection(org.apache.http.conn.OperatedClientConnection)

Example 43 with OperatedClientConnection

use of org.apache.http.conn.OperatedClientConnection in project platform_external_apache-http by android.

the class AbstractClientConnAdapter method getSocketTimeout.

// non-javadoc, see interface HttpConnection
public int getSocketTimeout() {
    OperatedClientConnection conn = getWrappedConnection();
    assertValid(conn);
    return conn.getSocketTimeout();
}
Also used : OperatedClientConnection(org.apache.http.conn.OperatedClientConnection)

Example 44 with OperatedClientConnection

use of org.apache.http.conn.OperatedClientConnection in project platform_external_apache-http by android.

the class AbstractClientConnAdapter method sendRequestEntity.

// non-javadoc, see interface HttpClientConnection
public void sendRequestEntity(HttpEntityEnclosingRequest request) throws HttpException, IOException {
    assertNotAborted();
    OperatedClientConnection conn = getWrappedConnection();
    assertValid(conn);
    unmarkReusable();
    conn.sendRequestEntity(request);
}
Also used : OperatedClientConnection(org.apache.http.conn.OperatedClientConnection)

Example 45 with OperatedClientConnection

use of org.apache.http.conn.OperatedClientConnection in project platform_external_apache-http by android.

the class AbstractClientConnAdapter method receiveResponseEntity.

// non-javadoc, see interface HttpClientConnection
public void receiveResponseEntity(HttpResponse response) throws HttpException, IOException {
    assertNotAborted();
    OperatedClientConnection conn = getWrappedConnection();
    assertValid(conn);
    unmarkReusable();
    conn.receiveResponseEntity(response);
}
Also used : OperatedClientConnection(org.apache.http.conn.OperatedClientConnection)

Aggregations

OperatedClientConnection (org.apache.http.conn.OperatedClientConnection)61 InterruptedIOException (java.io.InterruptedIOException)5 IOException (java.io.IOException)4 Socket (java.net.Socket)4 SSLSession (javax.net.ssl.SSLSession)4 SSLSocket (javax.net.ssl.SSLSocket)4 RouteTracker (org.apache.http.conn.routing.RouteTracker)4 ConnectionShutdownException (org.apache.http.impl.conn.ConnectionShutdownException)4 HttpHost (org.apache.http.HttpHost)3