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;
}
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);
}
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();
}
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();
}
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();
}
Aggregations