Search in sources :

Example 26 with OperatedClientConnection

use of org.apache.http.conn.OperatedClientConnection in project XobotOS by xamarin.

the class AbstractClientConnAdapter method isSecure.

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

Example 27 with OperatedClientConnection

use of org.apache.http.conn.OperatedClientConnection in project XobotOS by xamarin.

the class AbstractClientConnAdapter method getLocalPort.

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

Example 28 with OperatedClientConnection

use of org.apache.http.conn.OperatedClientConnection in project XobotOS by xamarin.

the class AbstractClientConnAdapter method getRemoteAddress.

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

Example 29 with OperatedClientConnection

use of org.apache.http.conn.OperatedClientConnection in project XobotOS by xamarin.

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

use of org.apache.http.conn.OperatedClientConnection in project XobotOS by xamarin.

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