use of org.apache.http.conn.OperatedClientConnection in project platform_external_apache-http by android.
the class AbstractClientConnAdapter method isResponseAvailable.
// non-javadoc, see interface HttpClientConnection
public boolean isResponseAvailable(int timeout) throws IOException {
assertNotAborted();
OperatedClientConnection conn = getWrappedConnection();
assertValid(conn);
return conn.isResponseAvailable(timeout);
}
use of org.apache.http.conn.OperatedClientConnection in project platform_external_apache-http by android.
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 jmeter by apache.
the class ManagedClientConnectionImpl method sendRequestHeader.
@Override
public void sendRequestHeader(final HttpRequest request) throws HttpException, IOException {
final OperatedClientConnection conn = ensureConnection();
conn.sendRequestHeader(request);
}
use of org.apache.http.conn.OperatedClientConnection in project jmeter by apache.
the class ManagedClientConnectionImpl method shutdown.
@Override
public void shutdown() throws IOException {
final HttpPoolEntry local = this.poolEntry;
if (local != null) {
final OperatedClientConnection conn = local.getConnection();
local.getTracker().reset();
conn.shutdown();
}
}
use of org.apache.http.conn.OperatedClientConnection in project jmeter by apache.
the class ManagedClientConnectionImpl method abortConnection.
@Override
public void abortConnection() {
synchronized (this) {
if (this.poolEntry == null) {
return;
}
this.reusable = false;
final OperatedClientConnection conn = this.poolEntry.getConnection();
try {
conn.shutdown();
} catch (final IOException ignore) {
// NOSONAR It ok to ignore
// NOOP
}
this.manager.releaseConnection(this, this.duration, TimeUnit.MILLISECONDS);
this.poolEntry = null;
}
}
Aggregations