| Modifier and Type | Field and Description |
|---|---|
| private final AtomicBoolean | |
| private final ProtocolIOSession | |
| private final AtomicReference | |
| private final FutureCallback |
| Access | Constructor and Description |
|---|---|
| public | HttpProtocolNegotiator(final ProtocolIOSession ioSession, final FutureCallback<ProtocolIOSession> resultCallback)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | close(final CloseMode
How to close the receiver. closeMode)Implements org. |
| public void | connected(final IOSession
the I/O session. session)Implements org. |
| public void | disconnected(final IOSession
the I/O session. session)Implements org. |
| public void | exception(final IOSession
the I/O session. session, final Exception cause)Implements org. |
| 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.
|
| public Timeout | getSocketTimeout()
Implements org. |
| public SSLSession | getSSLSession()
Implements org. null if TLS has not been activated.
|
| public void | inputReady(final IOSession
the I/O session. session, final ByteBuffer src)Implements org. |
| public boolean | isOpen()
Implements org. |
| public void | outputReady(final IOSession
the I/O session. session)Implements org. |
| public void | setSocketTimeout(final Timeout
timeout value timeout)Implements org. |
| pack-priv void | |
| public void | timeout(final IOSession
the I/O session. session, final Timeout the timeout. timeout)Implements org. |
| public String |
| completed | back to summary |
|---|---|
| private final AtomicBoolean completed | |
| ioSession | back to summary |
|---|---|
| private final ProtocolIOSession ioSession | |
| negotiatedProtocolRef | back to summary |
|---|---|
| private final AtomicReference<ProtocolVersion> negotiatedProtocolRef | |
| resultCallback | back to summary |
|---|---|
| private final FutureCallback<ProtocolIOSession> resultCallback | |
| HttpProtocolNegotiator | back to summary |
|---|---|
| public HttpProtocolNegotiator(final ProtocolIOSession ioSession, final FutureCallback<ProtocolIOSession> resultCallback) | |
| 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. | |
| connected | back to summary |
|---|---|
| public void connected(final IOSession session) throws IOException Implements org. Doc from org. Triggered after the given session has been just created. | |
| disconnected | back to summary |
|---|---|
| public void disconnected(final IOSession session) Implements org. Doc from org. Triggered when the given session has been terminated. | |
| exception | back to summary |
|---|---|
| public void exception(final IOSession session, final Exception cause) Implements org. Doc from org. Triggered when the given session throws a exception. | |
| 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
| |
| 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
| |
| inputReady | back to summary |
|---|---|
| public void inputReady(final IOSession session, final ByteBuffer src) throws IOException Implements org. Doc from org. Triggered when the given session has input pending. | |
| isOpen | back to summary |
|---|---|
| public boolean isOpen() Implements org. Doc from org. Checks if this connection is open.
| |
| outputReady | back to summary |
|---|---|
| public void outputReady(final IOSession session) throws IOException Implements org. Doc from org. Triggered when the given session is ready for output. | |
| setSocketTimeout | back to summary |
|---|---|
| public void setSocketTimeout(final Timeout timeout) Implements org. Doc from org. Sets the socket timeout value. | |
| startProtocol | back to summary |
|---|---|
| pack-priv void startProtocol(final HttpVersion httpVersion) | |
| timeout | back to summary |
|---|---|
| public void timeout(final IOSession session, final Timeout timeout) Implements org. Doc from org. Triggered when the given session has timed out. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |