Search in sources :

Example 11 with OperatedClientConnection

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

the class AbstractClientConnAdapter method getSSLSession.

// non-javadoc, see interface ManagedClientConnection
public SSLSession getSSLSession() {
    OperatedClientConnection conn = getWrappedConnection();
    assertValid(conn);
    if (!isOpen())
        return null;
    SSLSession result = null;
    Socket sock = conn.getSocket();
    if (sock instanceof SSLSocket) {
        result = ((SSLSocket) sock).getSession();
    }
    return result;
}
Also used : SSLSocket(javax.net.ssl.SSLSocket) OperatedClientConnection(org.apache.http.conn.OperatedClientConnection) SSLSession(javax.net.ssl.SSLSession) Socket(java.net.Socket) SSLSocket(javax.net.ssl.SSLSocket)

Example 12 with OperatedClientConnection

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

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 13 with OperatedClientConnection

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

the class AbstractClientConnAdapter method getMetrics.

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

Example 14 with OperatedClientConnection

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

the class AbstractClientConnAdapter method getRemotePort.

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

Example 15 with OperatedClientConnection

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

the class AbstractClientConnAdapter method receiveResponseHeader.

// non-javadoc, see interface HttpClientConnection
public HttpResponse receiveResponseHeader() throws HttpException, IOException {
    assertNotAborted();
    OperatedClientConnection conn = getWrappedConnection();
    assertValid(conn);
    unmarkReusable();
    return conn.receiveResponseHeader();
}
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