| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| private static enum | |
| pack-priv static enum |
| Modifier and Type | Field and Description |
|---|---|
| private volatile AbstractHttp1StreamDuplexer. | |
| private final BasicHttpConnectionMetrics | |
| private volatile AbstractHttp1StreamDuplexer. | |
| private final ByteBuffer | |
| private volatile EndpointDetails | |
| private final Http1Config | |
| private final SessionInputBufferImpl | |
| private final ContentLengthStrategy | |
| private volatile Message | |
| private final NHttpMessageParser | |
| private final BasicHttpTransportMetrics | |
| private final ProtocolIOSession | |
| private final SessionOutputBufferImpl | |
| private final ContentLengthStrategy | |
| private volatile Message | |
| private final NHttpMessageWriter | |
| private final AtomicInteger | |
| private final BasicHttpTransportMetrics | |
| private volatile ProtocolVersion |
| Access | Constructor and Description |
|---|---|
| pack-priv | AbstractHttp1StreamDuplexer(final ProtocolIOSession ioSession, final Http1Config http1Config, final CharCodingConfig charCodingConfig, final NHttpMessageParser<IncomingMessage> incomingMessageParser, final NHttpMessageWriter<OutgoingMessage> outgoingMessageWriter, final ContentLengthStrategy incomingContentStrategy, final ContentLengthStrategy outgoingContentStrategy)
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public void | |
| public void | close(final CloseMode
How to close the receiver. closeMode)Implements org. |
| pack-priv void | commitMessageHead(final OutgoingMessage messageHead, final boolean endStream, final FlushMode flushMode)
|
| pack-priv abstract void | |
| pack-priv abstract void | |
| pack-priv abstract ContentDecoder | createContentDecoder(long contentLength, ReadableByteChannel channel, SessionInputBuffer buffer, BasicHttpTransportMetrics metrics)
|
| pack-priv abstract ContentEncoder | createContentEncoder(long contentLength, WritableByteChannel channel, SessionOutputBuffer buffer, BasicHttpTransportMetrics metrics)
|
| pack-priv abstract void | |
| pack-priv abstract void | |
| pack-priv AbstractHttp1StreamDuplexer. | |
| pack-priv abstract void | |
| public EndpointDetails | getEndpointDetails()
Implements org. |
| public String | |
| 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.
|
| pack-priv Timeout | |
| public Timeout | getSocketTimeout()
Implements org. |
| public SSLSession | getSSLSession()
Implements org. null if TLS has not been activated.
|
| pack-priv abstract boolean | |
| pack-priv abstract boolean | |
| pack-priv abstract boolean | |
| pack-priv abstract void | |
| pack-priv abstract boolean | |
| pack-priv boolean | |
| public boolean | isOpen()
Implements org. |
| pack-priv boolean | |
| pack-priv abstract boolean | |
| pack-priv boolean | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| pack-priv abstract void | |
| pack-priv abstract boolean | |
| pack-priv IncomingMessage | |
| private void | |
| pack-priv abstract void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public void | setSocketTimeout(final Timeout
timeout value timeout)Implements org. |
| pack-priv void | |
| pack-priv void | |
| pack-priv int | |
| pack-priv void | |
| pack-priv void | |
| pack-priv abstract void | |
| pack-priv abstract void | |
| pack-priv abstract void | |
| pack-priv abstract void |
| capacityWindow | back to summary |
|---|---|
| private volatile AbstractHttp1StreamDuplexer. | |
| connMetrics | back to summary |
|---|---|
| private final BasicHttpConnectionMetrics connMetrics | |
| connState | back to summary |
|---|---|
| private volatile AbstractHttp1StreamDuplexer. | |
| contentBuffer | back to summary |
|---|---|
| private final ByteBuffer contentBuffer | |
| endpointDetails | back to summary |
|---|---|
| private volatile EndpointDetails endpointDetails | |
| http1Config | back to summary |
|---|---|
| private final Http1Config http1Config | |
| inbuf | back to summary |
|---|---|
| private final SessionInputBufferImpl inbuf | |
| incomingContentStrategy | back to summary |
|---|---|
| private final ContentLengthStrategy incomingContentStrategy | |
| incomingMessage | back to summary |
|---|---|
| private volatile Message<IncomingMessage, ContentDecoder> incomingMessage | |
| incomingMessageParser | back to summary |
|---|---|
| private final NHttpMessageParser<IncomingMessage> incomingMessageParser | |
| inTransportMetrics | back to summary |
|---|---|
| private final BasicHttpTransportMetrics inTransportMetrics | |
| ioSession | back to summary |
|---|---|
| private final ProtocolIOSession ioSession | |
| outbuf | back to summary |
|---|---|
| private final SessionOutputBufferImpl outbuf | |
| outgoingContentStrategy | back to summary |
|---|---|
| private final ContentLengthStrategy outgoingContentStrategy | |
| outgoingMessage | back to summary |
|---|---|
| private volatile Message<OutgoingMessage, ContentEncoder> outgoingMessage | |
| outgoingMessageWriter | back to summary |
|---|---|
| private final NHttpMessageWriter<OutgoingMessage> outgoingMessageWriter | |
| outputRequests | back to summary |
|---|---|
| private final AtomicInteger outputRequests | |
| outTransportMetrics | back to summary |
|---|---|
| private final BasicHttpTransportMetrics outTransportMetrics | |
| version | back to summary |
|---|---|
| private volatile ProtocolVersion version | |
| AbstractHttp1StreamDuplexer | back to summary |
|---|---|
| pack-priv AbstractHttp1StreamDuplexer(final ProtocolIOSession ioSession, final Http1Config http1Config, final CharCodingConfig charCodingConfig, final NHttpMessageParser<IncomingMessage> incomingMessageParser, final NHttpMessageWriter<OutgoingMessage> outgoingMessageWriter, final ContentLengthStrategy incomingContentStrategy, final ContentLengthStrategy outgoingContentStrategy) | |
| appendState | back to summary |
|---|---|
| pack-priv void appendState(final StringBuilder buf) | |
| 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
| |
| 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. | |
| commitMessageHead | back to summary |
|---|---|
| pack-priv void commitMessageHead(final OutgoingMessage messageHead, final boolean endStream, final FlushMode flushMode) throws HttpException, IOException | |
| consumeData | back to summary |
|---|---|
| pack-priv abstract void consumeData(ByteBuffer src) throws HttpException, IOException | |
| consumeHeader | back to summary |
|---|---|
| pack-priv abstract void consumeHeader(IncomingMessage messageHead, EntityDetails entityDetails) throws HttpException, IOException | |
| createContentDecoder | back to summary |
|---|---|
| pack-priv abstract ContentDecoder createContentDecoder(long contentLength, ReadableByteChannel channel, SessionInputBuffer buffer, BasicHttpTransportMetrics metrics) throws HttpException | |
| createContentEncoder | back to summary |
|---|---|
| pack-priv abstract ContentEncoder createContentEncoder(long contentLength, WritableByteChannel channel, SessionOutputBuffer buffer, BasicHttpTransportMetrics metrics) throws HttpException | |
| dataEnd | back to summary |
|---|---|
| pack-priv abstract void dataEnd(List<? extends Header> trailers) throws HttpException, IOException | |
| disconnected | back to summary |
|---|---|
| pack-priv abstract void disconnected() | |
| endOutputStream | back to summary |
|---|---|
| pack-priv AbstractHttp1StreamDuplexer. | |
| execute | back to summary |
|---|---|
| pack-priv abstract void execute(RequestExecutionCommand executionCommand) throws HttpException, IOException | |
| getEndpointDetails | back to summary |
|---|---|
| public EndpointDetails getEndpointDetails() Implements org. Doc from org. Returns this connection's endpoint details.
| |
| getId | back to summary |
|---|---|
| public String getId() Implements org.
| |
| 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
| |
| getSessionTimeout | back to summary |
|---|---|
| pack-priv Timeout getSessionTimeout() | |
| 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
| |
| handleIncomingMessage | back to summary |
|---|---|
| pack-priv abstract boolean handleIncomingMessage(IncomingMessage incomingMessage) throws HttpException | |
| handleOutgoingMessage | back to summary |
|---|---|
| pack-priv abstract boolean handleOutgoingMessage(OutgoingMessage outgoingMessage) throws HttpException | |
| handleTimeout | back to summary |
|---|---|
| pack-priv abstract boolean handleTimeout() | |
| inputEnd | back to summary |
|---|---|
| pack-priv abstract void inputEnd() throws HttpException, IOException | |
| inputIdle | back to summary |
|---|---|
| pack-priv abstract boolean inputIdle() | |
| isActive | back to summary |
|---|---|
| pack-priv boolean isActive() | |
| isOpen | back to summary |
|---|---|
| public boolean isOpen() Implements org. Doc from org. Checks if this connection is open.
| |
| isOutputCompleted | back to summary |
|---|---|
| pack-priv boolean isOutputCompleted() | |
| isOutputReady | back to summary |
|---|---|
| pack-priv abstract boolean isOutputReady() | |
| isShuttingDown | back to summary |
|---|---|
| pack-priv boolean isShuttingDown() | |
| onConnect | back to summary |
|---|---|
| public final void onConnect() throws HttpException, IOException | |
| onDisconnect | back to summary |
|---|---|
| public final void onDisconnect() | |
| onException | back to summary |
|---|---|
| public final void onException(final Exception ex) | |
| onInput | back to summary |
|---|---|
| public final void onInput(final ByteBuffer src) throws HttpException, IOException | |
| onOutput | back to summary |
|---|---|
| public final void onOutput() throws IOException, HttpException | |
| onTimeout | back to summary |
|---|---|
| public final void onTimeout(final Timeout timeout) throws IOException, HttpException | |
| outputEnd | back to summary |
|---|---|
| pack-priv abstract void outputEnd() throws HttpException, IOException | |
| outputIdle | back to summary |
|---|---|
| pack-priv abstract boolean outputIdle() | |
| parseMessageHead | back to summary |
|---|---|
| pack-priv IncomingMessage parseMessageHead(final boolean endOfStream) throws IOException, HttpException | |
| processCommands | back to summary |
|---|---|
| private void processCommands() throws HttpException, IOException | |
| produceOutput | back to summary |
|---|---|
| pack-priv abstract void produceOutput() throws HttpException, IOException | |
| requestSessionInput | back to summary |
|---|---|
| pack-priv void requestSessionInput() | |
| requestSessionOutput | back to summary |
|---|---|
| pack-priv void requestSessionOutput() | |
| requestShutdown | back to summary |
|---|---|
| pack-priv void requestShutdown(final CloseMode closeMode) | |
| setSessionTimeout | back to summary |
|---|---|
| pack-priv void setSessionTimeout(final Timeout timeout) | |
| setSocketTimeout | back to summary |
|---|---|
| public void setSocketTimeout(final Timeout timeout) Implements org. Doc from org. Sets the socket timeout value. | |
| shutdownSession | back to summary |
|---|---|
| pack-priv void shutdownSession(final CloseMode closeMode) | |
| shutdownSession | back to summary |
|---|---|
| pack-priv void shutdownSession(final Exception cause) | |
| streamOutput | back to summary |
|---|---|
| pack-priv int streamOutput(final ByteBuffer src) throws IOException | |
| suspendSessionInput | back to summary |
|---|---|
| pack-priv void suspendSessionInput() | |
| suspendSessionOutput | back to summary |
|---|---|
| pack-priv void suspendSessionOutput() throws IOException | |
| terminate | back to summary |
|---|---|
| pack-priv abstract void terminate(final Exception exception) | |
| updateCapacity | back to summary |
|---|---|
| pack-priv abstract void updateCapacity(CapacityChannel capacityChannel) throws HttpException, IOException | |
| updateInputMetrics | back to summary |
|---|---|
| pack-priv abstract void updateInputMetrics(IncomingMessage incomingMessage, BasicHttpConnectionMetrics connMetrics) | |
| updateOutputMetrics | back to summary |
|---|---|
| pack-priv abstract void updateOutputMetrics(OutgoingMessage outgoingMessage, BasicHttpConnectionMetrics connMetrics) | |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private final IOSession | |
| private final Object | |
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | close()
Closes the capacity channel, preventing user code from accidentally requesting read events outside of the context of the request the channel was created for |
| pack-priv int | |
| pack-priv int | |
| public void | update(final int
non-negative number of extra bytes the consumer
can accept. increment)Implements org. |
| private void |
| closed | back to summary |
|---|---|
| private boolean closed | |
| ioSession | back to summary |
|---|---|
| private final IOSession ioSession | |
| lock | back to summary |
|---|---|
| private final Object lock | |
| window | back to summary |
|---|---|
| private int window | |
| CapacityWindow | back to summary |
|---|---|
| pack-priv CapacityWindow(final int window, final IOSession ioSession) | |
| close | back to summary |
|---|---|
| pack-priv void close() Closes the capacity channel, preventing user code from accidentally requesting read events outside of the context of the request the channel was created for | |
| getWindow | back to summary |
|---|---|
| pack-priv int getWindow() | |
| removeCapacity | back to summary |
|---|---|
| pack-priv int removeCapacity(final int delta) Internal method for removing capacity. We don't need to check if this channel is closed in it. | |
| update | back to summary |
|---|---|
| public void update(final int increment) throws IOException Implements org. Doc from org. Updates data capacity information through this channel. The total number of bytes the consumer is capable of accepting is incremented by the given increment number.
| |
| updateWindow | back to summary |
|---|---|
| private void updateWindow(final int delta) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final AbstractHttp1StreamDuplexer. | |
| public static final AbstractHttp1StreamDuplexer. | |
| public static final AbstractHttp1StreamDuplexer. | |
| public static final AbstractHttp1StreamDuplexer. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static AbstractHttp1StreamDuplexer. | |
| public static AbstractHttp1StreamDuplexer. |
| ACTIVE | back to summary |
|---|---|
| public static final AbstractHttp1StreamDuplexer. | |
| GRACEFUL_SHUTDOWN | back to summary |
|---|---|
| public static final AbstractHttp1StreamDuplexer. | |
| READY | back to summary |
|---|---|
| public static final AbstractHttp1StreamDuplexer. | |
| SHUTDOWN | back to summary |
|---|---|
| public static final AbstractHttp1StreamDuplexer. | |
| ConnectionState | back to summary |
|---|---|
| private ConnectionState() | |
| valueOf | back to summary |
|---|---|
| public static AbstractHttp1StreamDuplexer. | |
| values | back to summary |
|---|---|
| public static AbstractHttp1StreamDuplexer. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final AbstractHttp1StreamDuplexer. | |
| public static final AbstractHttp1StreamDuplexer. | |
| public static final AbstractHttp1StreamDuplexer. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static AbstractHttp1StreamDuplexer. | |
| public static AbstractHttp1StreamDuplexer. |
| CHUNK_CODED | back to summary |
|---|---|
| public static final AbstractHttp1StreamDuplexer. | |
| MESSAGE_HEAD | back to summary |
|---|---|
| public static final AbstractHttp1StreamDuplexer. | |
| NONE | back to summary |
|---|---|
| public static final AbstractHttp1StreamDuplexer. | |
| MessageDelineation | back to summary |
|---|---|
| private MessageDelineation() | |
| valueOf | back to summary |
|---|---|
| public static AbstractHttp1StreamDuplexer. | |
| values | back to summary |
|---|---|
| public static AbstractHttp1StreamDuplexer. | |