use of org.apache.http.conn.OperatedClientConnection in project robovm by robovm.
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);
}
use of org.apache.http.conn.OperatedClientConnection in project robovm by robovm.
the class AbstractClientConnAdapter method getLocalAddress.
// non-javadoc, see interface HttpInetConnection
public InetAddress getLocalAddress() {
OperatedClientConnection conn = getWrappedConnection();
assertValid(conn);
return conn.getLocalAddress();
}
use of org.apache.http.conn.OperatedClientConnection in project robovm by robovm.
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);
}
use of org.apache.http.conn.OperatedClientConnection in project robovm by robovm.
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 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;
}
Aggregations