@Deprecated public class MockHttpClientConnectionManager extends Object implements org.apache.http.conn.HttpClientConnectionManager
HttpClientConnectionManager specifically for use in mocked connections using the MockHttpConnection class.
This implementation is NOT thread safe.| Constructor and Description |
|---|
MockHttpClientConnectionManager(MockHttpConnection c)
Deprecated.
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
closeExpiredConnections()
Deprecated.
|
void |
closeIdleConnections(long idletime,
TimeUnit tunit)
Deprecated.
|
void |
connect(org.apache.http.HttpClientConnection conn,
org.apache.http.conn.routing.HttpRoute route,
int connectTimeout,
org.apache.http.protocol.HttpContext context)
Deprecated.
|
void |
releaseConnection(org.apache.http.HttpClientConnection conn,
Object newState,
long validDuration,
TimeUnit timeUnit)
Deprecated.
|
org.apache.http.conn.ConnectionRequest |
requestConnection(org.apache.http.conn.routing.HttpRoute route,
Object state)
Deprecated.
|
void |
routeComplete(org.apache.http.HttpClientConnection conn,
org.apache.http.conn.routing.HttpRoute route,
org.apache.http.protocol.HttpContext context)
Deprecated.
|
void |
shutdown()
Deprecated.
|
void |
upgrade(org.apache.http.HttpClientConnection conn,
org.apache.http.conn.routing.HttpRoute route,
org.apache.http.protocol.HttpContext context)
Deprecated.
|
public MockHttpClientConnectionManager(MockHttpConnection c)
c - The mocked connection.public org.apache.http.conn.ConnectionRequest requestConnection(org.apache.http.conn.routing.HttpRoute route, Object state)
requestConnection in interface org.apache.http.conn.HttpClientConnectionManagerpublic void releaseConnection(org.apache.http.HttpClientConnection conn, Object newState, long validDuration, TimeUnit timeUnit)
releaseConnection in interface org.apache.http.conn.HttpClientConnectionManagerpublic void connect(org.apache.http.HttpClientConnection conn, org.apache.http.conn.routing.HttpRoute route, int connectTimeout, org.apache.http.protocol.HttpContext context) throws IOException
connect in interface org.apache.http.conn.HttpClientConnectionManagerIOExceptionpublic void upgrade(org.apache.http.HttpClientConnection conn, org.apache.http.conn.routing.HttpRoute route, org.apache.http.protocol.HttpContext context) throws IOException
upgrade in interface org.apache.http.conn.HttpClientConnectionManagerIOExceptionpublic void routeComplete(org.apache.http.HttpClientConnection conn, org.apache.http.conn.routing.HttpRoute route, org.apache.http.protocol.HttpContext context) throws IOException
routeComplete in interface org.apache.http.conn.HttpClientConnectionManagerIOExceptionpublic void closeIdleConnections(long idletime, TimeUnit tunit)
closeIdleConnections in interface org.apache.http.conn.HttpClientConnectionManagerpublic void closeExpiredConnections()
closeExpiredConnections in interface org.apache.http.conn.HttpClientConnectionManagerpublic void shutdown()
shutdown in interface org.apache.http.conn.HttpClientConnectionManagerCopyright © 2016–2019 The Apache Software Foundation. All rights reserved.