Even though it is not required by the spec this implementation provides a stateful parser, that can handle fragmentation of
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final ByteBufferPool | |
| private int | |
| private boolean | |
| private InetAddress | |
| private int | |
| private static final int | |
| private static final byte[] | |
| private final OpenListener | |
| private boolean | |
| private String | |
| private static final byte[] | |
| private InetAddress | |
| private int | |
| private final UndertowXnioSsl | |
| private final OptionMap | |
| private final StreamConnection | |
| private StringBuilder | |
| private static final String | |
| private static final String | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| pack-priv | ProxyProtocolReadListener(StreamConnection streamConnection, OpenListener openListener, UndertowXnioSsl ssl, ByteBufferPool bufferPool, OptionMap sslOptionMap)
|
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | handleEvent(StreamSourceChannel
the channel event streamSourceChannel)Implements org. Handle the event on this channel. |
| pack-priv static InetAddress | |
| private void | |
| private void | |
| private void |
| bufferPool | back to summary |
|---|---|
| private final ByteBufferPool bufferPool | |
| byteCount | back to summary |
|---|---|
| private int byteCount | |
| carriageReturnSeen | back to summary |
|---|---|
| private boolean carriageReturnSeen | |
| destAddress | back to summary |
|---|---|
| private InetAddress destAddress | |
| destPort | back to summary |
|---|---|
| private int destPort | |
| MAX_HEADER_LENGTH | back to summary |
|---|---|
| private static final int MAX_HEADER_LENGTH | |
| NAME | back to summary |
|---|---|
| private static final byte[] NAME | |
| openListener | back to summary |
|---|---|
| private final OpenListener openListener | |
| parsingUnknown | back to summary |
|---|---|
| private boolean parsingUnknown | |
| protocol | back to summary |
|---|---|
| private String protocol | |
| SIG | back to summary |
|---|---|
| private static final byte[] SIG | |
| sourceAddress | back to summary |
|---|---|
| private InetAddress sourceAddress | |
| sourcePort | back to summary |
|---|---|
| private int sourcePort | |
| ssl | back to summary |
|---|---|
| private final UndertowXnioSsl ssl | |
| sslOptionMap | back to summary |
|---|---|
| private final OptionMap sslOptionMap | |
| streamConnection | back to summary |
|---|---|
| private final StreamConnection streamConnection | |
| stringBuilder | back to summary |
|---|---|
| private StringBuilder stringBuilder | |
| TCP4 | back to summary |
|---|---|
| private static final String TCP4 | |
| TCP6 | back to summary |
|---|---|
| private static final String TCP6 | |
| UNKNOWN | back to summary |
|---|---|
| private static final String UNKNOWN | |
| ProxyProtocolReadListener | back to summary |
|---|---|
| pack-priv ProxyProtocolReadListener(StreamConnection streamConnection, OpenListener openListener, UndertowXnioSsl ssl, ByteBufferPool bufferPool, OptionMap sslOptionMap) | |
| callOpenListener | back to summary |
|---|---|
| private void callOpenListener(StreamConnection streamConnection, final PooledByteBuffer buffer) | |
| handleEvent | back to summary |
|---|---|
| public void handleEvent(StreamSourceChannel streamSourceChannel) Implements org. Doc from org. Handle the event on this channel.
| |
| parseAddress | back to summary |
|---|---|
| pack-priv static InetAddress parseAddress(String addressString, String protocol) throws IOException | |
| parseProxyProtocolV1 | back to summary |
|---|---|
| private void parseProxyProtocolV1(PooledByteBuffer buffer, AtomicBoolean freeBuffer) throws IOException | |
| parseProxyProtocolV2 | back to summary |
|---|---|
| private void parseProxyProtocolV2(PooledByteBuffer buffer, AtomicBoolean freeBuffer) throws IOException | |
| proxyAccept | back to summary |
|---|---|
| private void proxyAccept(SocketAddress source, SocketAddress dest, PooledByteBuffer additionalData) | |
| Modifier and Type | Field and Description |
|---|---|
| private final StreamConnection | |
| private final SocketAddress | |
| private final SocketAddress |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public SocketAddress | getLocalAddress()
Implements org. Get the local address that this channel is bound to. |
| public SocketAddress | getPeerAddress()
Implements org. Get the peer address of this channel. |
| protected void | notifyReadClosed()
Overrides org. Indicate to conduit handlers that reads have been closed. |
| protected void | notifyWriteClosed()
Overrides org. Indicate to conduit handlers that writes have been closed. |
| delegate | back to summary |
|---|---|
| private final StreamConnection delegate | |
| dest | back to summary |
|---|---|
| private final SocketAddress dest | |
| source | back to summary |
|---|---|
| private final SocketAddress source | |
| AddressWrappedConnection | back to summary |
|---|---|
| pack-priv AddressWrappedConnection(StreamConnection delegate, SocketAddress source, SocketAddress dest) | |
| getLocalAddress | back to summary |
|---|---|
| public SocketAddress getLocalAddress() Implements org. Doc from org. Get the local address that this channel is bound to.
| |
| getPeerAddress | back to summary |
|---|---|
| public SocketAddress getPeerAddress() Implements org. Doc from org. Get the peer address of this channel.
| |
| notifyReadClosed | back to summary |
|---|---|
| protected void notifyReadClosed() Overrides org. Doc from org. Indicate to conduit handlers that reads have been closed.
| |
| notifyWriteClosed | back to summary |
|---|---|
| protected void notifyWriteClosed() Overrides org. Doc from org. Indicate to conduit handlers that writes have been closed.
| |