| Modifier and Type | Field and Description |
|---|---|
| private byte[] | |
| pack-priv final BasicHttpConnectionMetrics | |
| pack-priv volatile EndpointDetails | |
| pack-priv final Http1Config | |
| pack-priv final SessionInputBufferImpl | |
| pack-priv final SessionOutputBufferImpl | |
| pack-priv final AtomicReference | |
| private static final Timeout | |
| pack-priv volatile ProtocolVersion |
| Access | Constructor and Description |
|---|---|
| pack-priv | BHttpConnectionBase(final Http1Config http1Config, final CharsetDecoder charDecoder, final CharsetEncoder charEncoder)
|
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | |
| protected void | |
| protected void | |
| public void | close(final CloseMode
How to close the receiver. closeMode)Implements org. |
| public void | |
| protected InputStream | createContentInputStream(final long len, final SessionInputBuffer buffer, final InputStream inputStream)
|
| protected OutputStream | createContentOutputStream(final long len, final SessionOutputBuffer buffer, final OutputStream outputStream, final Supplier<List<? extends Header>> trailers)
|
| pack-priv HttpEntity | createIncomingEntity(final HttpMessage message, final SessionInputBuffer inBuffer, final InputStream inputStream, final long len)
|
| protected SocketHolder | |
| private int | |
| public void | flush()
Implements org. |
| private byte[] | |
| public EndpointDetails | getEndpointDetails()
Implements org. |
| public SocketAddress | getLocalAddress()
Implements org. null if it is not bound yet.
|
| public ProtocolVersion | getProtocolVersion()
Implements org. null if unknown.
|
| public SocketAddress | getRemoteAddress()
Implements org. null if it is not connected yet or
unconnected.
|
| protected SocketHolder | |
| public Timeout | getSocketTimeout()
Implements org. |
| public SSLSession | getSSLSession()
Implements org. null if TLS has not been activated.
|
| protected void | |
| protected void | |
| public boolean | isDataAvailable(final Timeout
the maximum time to wait for data timeout)Implements org. |
| public boolean | isOpen()
Implements org. |
| public boolean | isStale()
Implements org. |
| public void | setSocketTimeout(final Timeout
timeout value timeout)Implements org. |
| public String |
| chunkedRequestBuffer | back to summary |
|---|---|
| private byte[] chunkedRequestBuffer | |
| connMetrics | back to summary |
|---|---|
| pack-priv final BasicHttpConnectionMetrics connMetrics | |
| endpointDetails | back to summary |
|---|---|
| pack-priv volatile EndpointDetails endpointDetails | |
| http1Config | back to summary |
|---|---|
| pack-priv final Http1Config http1Config | |
| inBuffer | back to summary |
|---|---|
| pack-priv final SessionInputBufferImpl inBuffer | |
| outbuffer | back to summary |
|---|---|
| pack-priv final SessionOutputBufferImpl outbuffer | |
| socketHolderRef | back to summary |
|---|---|
| pack-priv final AtomicReference<SocketHolder> socketHolderRef | |
| STALE_CHECK_TIMEOUT | back to summary |
|---|---|
| private static final Timeout STALE_CHECK_TIMEOUT | |
| version | back to summary |
|---|---|
| pack-priv volatile ProtocolVersion version | |
| BHttpConnectionBase | back to summary |
|---|---|
| pack-priv BHttpConnectionBase(final Http1Config http1Config, final CharsetDecoder charDecoder, final CharsetEncoder charEncoder) | |
| awaitInput | back to summary |
|---|---|
| protected boolean awaitInput(final Timeout timeout) throws IOException | |
| bind | back to summary |
|---|---|
| protected void bind(final Socket socket) throws IOException Binds this connection to the given
After this method's execution the connection status will be reported
as open and the
| |
| bind | back to summary |
|---|---|
| protected void bind(final SocketHolder socketHolder) throws IOException | |
| close | back to summary |
|---|---|
| public void close(final CloseMode closeMode) Implements org. Doc from org. Closes this process or endpoint and releases any system resources associated with it. If the endpoint or the process is already closed then invoking this method has no effect. | |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements org. Doc from org. Closes this connection gracefully. This method will attempt to flush the internal output
buffer prior to closing the underlying socket. This method MUST NOT be called from a
different thread to force shutdown of the connection. Use
| |
| createContentInputStream | back to summary |
|---|---|
| protected InputStream createContentInputStream(final long len, final SessionInputBuffer buffer, final InputStream inputStream) | |
| createContentOutputStream | back to summary |
|---|---|
| protected OutputStream createContentOutputStream(final long len, final SessionOutputBuffer buffer, final OutputStream outputStream, final Supplier<List<? extends Header>> trailers) | |
| createIncomingEntity | back to summary |
|---|---|
| pack-priv HttpEntity createIncomingEntity(final HttpMessage message, final SessionInputBuffer inBuffer, final InputStream inputStream, final long len) | |
| ensureOpen | back to summary |
|---|---|
| protected SocketHolder ensureOpen() throws IOException | |
| fillInputBuffer | back to summary |
|---|---|
| private int fillInputBuffer(final Timeout timeout) throws IOException | |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Implements org. Doc from org. Writes out all pending buffered data over the open connection.
| |
| getChunkedRequestBuffer | back to summary |
|---|---|
| private byte[] getChunkedRequestBuffer() | |
| getEndpointDetails | back to summary |
|---|---|
| public EndpointDetails getEndpointDetails() Implements org. Doc from org. Returns this connection's endpoint details.
| |
| getLocalAddress | back to summary |
|---|---|
| public SocketAddress getLocalAddress() Implements org. Doc from org. Returns this connection's local address or
| |
| getProtocolVersion | back to summary |
|---|---|
| public ProtocolVersion getProtocolVersion() Implements org. Doc from org. Returns this connection's protocol version or
| |
| getRemoteAddress | back to summary |
|---|---|
| public SocketAddress getRemoteAddress() Implements org. Doc from org. Returns this connection's remote address or
| |
| getSocketHolder | back to summary |
|---|---|
| protected SocketHolder getSocketHolder() | |
| getSocketTimeout | back to summary |
|---|---|
| public Timeout getSocketTimeout() Implements org. Doc from org. Returns the socket timeout value. | |
| getSSLSession | back to summary |
|---|---|
| public SSLSession getSSLSession() Implements org. Doc from org. Returns this connection's SSL session or
| |
| incrementRequestCount | back to summary |
|---|---|
| protected void incrementRequestCount() | |
| incrementResponseCount | back to summary |
|---|---|
| protected void incrementResponseCount() | |
| isDataAvailable | back to summary |
|---|---|
| public boolean isDataAvailable(final Timeout timeout) throws IOException Implements org. Doc from org. Checks if input data is available from the connection. May wait for the specified time until some data becomes available. Note that some implementations may completely ignore the timeout parameter.
| |
| isOpen | back to summary |
|---|---|
| public boolean isOpen() Implements org. Doc from org. Checks if this connection is open.
| |
| isStale | back to summary |
|---|---|
| public boolean isStale() throws IOException Implements org. Doc from org. Checks whether this connection has gone down. Network connections may get closed during some time of inactivity for several reasons. The next time a read is attempted on such a connection it will throw an IOException. This method tries to alleviate this inconvenience by trying to find out if a connection is still usable. Implementations may do that by attempting a read with a very small timeout. Thus this method may block for a small amount of time before returning a result. It is therefore an expensive operation.
| |
| setSocketTimeout | back to summary |
|---|---|
| public void setSocketTimeout(final Timeout timeout) Implements org. Doc from org. Sets the socket timeout value. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |