use of org.apache.http.conn.OperatedClientConnection in project platform_external_apache-http by android.
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;
}
use of org.apache.http.conn.OperatedClientConnection in project platform_external_apache-http by android.
the class AbstractClientConnAdapter method setSocketTimeout.
// non-javadoc, see interface HttpConnection
public void setSocketTimeout(int timeout) {
OperatedClientConnection conn = getWrappedConnection();
assertValid(conn);
conn.setSocketTimeout(timeout);
}
use of org.apache.http.conn.OperatedClientConnection in project platform_external_apache-http by android.
the class AbstractClientConnAdapter method getRemoteAddress.
// non-javadoc, see interface HttpInetConnection
public InetAddress getRemoteAddress() {
OperatedClientConnection conn = getWrappedConnection();
assertValid(conn);
return conn.getRemoteAddress();
}
use of org.apache.http.conn.OperatedClientConnection in project platform_external_apache-http by android.
the class AbstractClientConnAdapter method flush.
// non-javadoc, see interface HttpClientConnection
public void flush() throws IOException {
assertNotAborted();
OperatedClientConnection conn = getWrappedConnection();
assertValid(conn);
conn.flush();
}
use of org.apache.http.conn.OperatedClientConnection in project platform_external_apache-http by android.
the class AbstractClientConnAdapter method isSecure.
// non-javadoc, see interface ManagedClientConnection
public boolean isSecure() {
OperatedClientConnection conn = getWrappedConnection();
assertValid(conn);
return conn.isSecure();
}
Aggregations