• BlackBerry Dynamics
  • Runtime library for Android applications
  • 12.0.1.79
SingleClientConnManager.ConnAdapter Class Reference

The connection adapter used by this manager.

Inheritance diagram for SingleClientConnManager.ConnAdapter:
AbstractPooledConnAdapter AbstractClientConnAdapter ManagedClientConnection HttpClientConnection HttpInetConnection ConnectionReleaseTrigger HttpConnection HttpConnection

Protected Member Functions

 ConnAdapter (PoolEntry entry, HttpRoute route)
 Creates a new connection adapter. More...
 
- Protected Member Functions inherited from AbstractPooledConnAdapter
 AbstractPooledConnAdapter (ClientConnectionManager manager, AbstractPoolEntry entry)
 Creates a new connection adapter. More...
 
final void assertAttached ()
 Asserts that this adapter is still attached. More...
 
void detach ()
 Detaches this adapter from the wrapped connection. More...
 
- Protected Member Functions inherited from AbstractClientConnAdapter
 AbstractClientConnAdapter (ClientConnectionManager mgr, OperatedClientConnection conn)
 Creates a new connection adapter. More...
 
final void assertNotAborted () throws InterruptedIOException
 Asserts that the connection has not been aborted. More...
 
final void assertValid (final OperatedClientConnection wrappedConn)
 Asserts that there is a wrapped connection to delegate to. More...
 

Additional Inherited Members

- Public Member Functions inherited from AbstractPooledConnAdapter
HttpRoute getRoute ()
 Obtains the current route of this connection. More...
 
void open (HttpRoute route, HttpContext context, HttpParams params) throws IOException
 Opens this connection according to the given route. More...
 
void tunnelTarget (boolean secure, HttpParams params) throws IOException
 Indicates that a tunnel to the target has been established. More...
 
void tunnelProxy (HttpHost next, boolean secure, HttpParams params) throws IOException
 Indicates that a tunnel to an intermediate proxy has been established. More...
 
void layerProtocol (HttpContext context, HttpParams params) throws IOException
 Layers a new protocol on top of a tunnelled connection. More...
 
void close () throws IOException
 Closes this connection gracefully. More...
 
void shutdown () throws IOException
 Force-closes this connection. More...
 
Object getState ()
 Returns the state object associated with this connection. More...
 
void setState (final Object state)
 Assigns a state object to this connection. More...
 
- Public Member Functions inherited from AbstractClientConnAdapter
boolean isOpen ()
 Checks if this connection is open. More...
 
boolean isStale ()
 Checks whether this connection has gone down. More...
 
void setSocketTimeout (int timeout)
 Sets the socket timeout value. More...
 
int getSocketTimeout ()
 Returns the socket timeout value. More...
 
HttpConnectionMetrics getMetrics ()
 Returns a collection of connection metrcis. More...
 
void flush () throws IOException
 Writes out all pending buffered data over the open connection. More...
 
boolean isResponseAvailable (int timeout) throws IOException
 Checks if response data is available from the connection. More...
 
void receiveResponseEntity (HttpResponse response) throws HttpException, IOException
 Receives the next response entity available from this connection and attaches it to an existing HttpResponse object. More...
 
HttpResponse receiveResponseHeader () throws HttpException, IOException
 Receives the request line and headers of the next response available from this connection. More...
 
void sendRequestEntity (HttpEntityEnclosingRequest request) throws HttpException, IOException
 Sends the request entity over the connection. More...
 
void sendRequestHeader (HttpRequest request) throws HttpException, IOException
 Sends the request line and all headers over the connection. More...
 
boolean isSecure ()
 Indicates whether this connection is secure. More...
 
SSLSession getSSLSession ()
 Obtains the SSL session of the underlying connection, if any. More...
 
void markReusable ()
 Marks this connection as being in a reusable communication state. More...
 
void unmarkReusable ()
 Marks this connection as not being in a reusable state. More...
 
boolean isMarkedReusable ()
 Indicates whether this connection is in a reusable communication state. More...
 
void setIdleDuration (long duration, TimeUnit unit)
 Sets the duration that this connection can remain idle before it is reused. More...
 
void releaseConnection ()
 Releases the connection with the option of keep-alive. More...
 
void abortConnection ()
 Releases the connection without the option of keep-alive. More...
 
- Protected Attributes inherited from AbstractPooledConnAdapter
volatile AbstractPoolEntry poolEntry
 The wrapped pool entry. More...
 

Constructor & Destructor Documentation

◆ ConnAdapter()

ConnAdapter ( PoolEntry  entry,
HttpRoute  route 
)
protected
Parameters
entrythe pool entry for the connection being wrapped
routethe planned route for this connection