public class DefaultManagedHttpClientConnection extends DefaultBHttpClientConnection implements ManagedHttpClientConnection, HttpContext
RESERVED_PREFIX| Constructor and Description |
|---|
DefaultManagedHttpClientConnection(String id, int buffersize) |
DefaultManagedHttpClientConnection(String id, int buffersize, int fragmentSizeHint, CharsetDecoder chardecoder, CharsetEncoder charencoder, MessageConstraints constraints, ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, HttpMessageWriterFactory<HttpRequest> requestWriterFactory, HttpMessageParserFactory<HttpResponse> responseParserFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(Socket socket)
将此连接绑定到给定的套接字。
|
Object |
getAttribute(String id) |
String |
getId()
返回连接管理器的使用寿命期望为唯一的连接ID。
|
Socket |
getSocket()
返回底层socket。
|
SSLSession |
getSSLSession()
获取底层连接的SSL会话(如果有)。
|
Object |
removeAttribute(String id) |
void |
setAttribute(String id, Object obj) |
void |
shutdown() |
flush, isResponseAvailable, onRequestSubmitted, onResponseReceived, receiveResponseEntity, receiveResponseHeader, sendRequestEntity, sendRequestHeaderawaitInput, close, createInputStream, createOutputStream, doFlush, ensureOpen, getLocalAddress, getLocalPort, getMetrics, getRemoteAddress, getRemotePort, getSessionInputBuffer, getSessionOutputBuffer, getSocketInputStream, getSocketOutputStream, getSocketTimeout, incrementRequestCount, incrementResponseCount, isOpen, isStale, prepareInput, prepareOutput, setSocketTimeout, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitflush, isResponseAvailable, receiveResponseEntity, receiveResponseHeader, sendRequestEntity, sendRequestHeadergetLocalAddress, getLocalPort, getRemoteAddress, getRemotePortclose, getMetrics, getSocketTimeout, isOpen, isStale, setSocketTimeoutpublic DefaultManagedHttpClientConnection(String id, int buffersize, int fragmentSizeHint, CharsetDecoder chardecoder, CharsetEncoder charencoder, MessageConstraints constraints, ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, HttpMessageWriterFactory<HttpRequest> requestWriterFactory, HttpMessageParserFactory<HttpResponse> responseParserFactory)
public DefaultManagedHttpClientConnection(String id, int buffersize)
public String getId()
ManagedHttpClientConnection复制
getId在界面
ManagedHttpClientConnection
public void shutdown()
throws IOException
shutdown在界面
HttpConnection
shutdown在
BHttpConnectionBase
IOException
public Object getAttribute(String id)
getAttribute在界面
HttpContext
public Object removeAttribute(String id)
removeAttribute在界面
HttpContext
public void setAttribute(String id, Object obj)
setAttribute在界面
HttpContext
public void bind(Socket socket) throws IOException
ManagedHttpClientConnection复制
bind在界面
ManagedHttpClientConnection
bind在类
DefaultBHttpClientConnection
socket - 将连接绑定到的套接字。
IOException
public Socket getSocket()
ManagedHttpClientConnection复制
getSocket在界面
ManagedHttpClientConnection
getSocket在
BHttpConnectionBase
public SSLSession getSSLSession()
ManagedHttpClientConnection复制
getSSLSession在接口
ManagedHttpClientConnection
null
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.