org.eclipse.jetty.io.Connection.Listenerpublic class SocketCustomizationListener
extends java.lang.Object
implements org.eclipse.jetty.io.Connection.Listener
Instances of this listener may be added to a Connector (or
ConnectionFactory) so that they are applied to all connections
for that connector (or protocol) and thus allow additional Socket
configuration to be applied by implementing customize(Socket, Class, boolean)
| Constructor | Description |
|---|---|
SocketCustomizationListener() |
Construct with SSL unwrapping on.
|
SocketCustomizationListener(boolean ssl) |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
customize(java.net.Socket socket,
java.lang.Class<? extends org.eclipse.jetty.io.Connection> connection,
boolean ssl) |
This method may be extended to configure a socket on open
events.
|
void |
onClosed(org.eclipse.jetty.io.Connection connection) |
|
void |
onOpened(org.eclipse.jetty.io.Connection connection) |
public SocketCustomizationListener()
public SocketCustomizationListener(boolean ssl)
ssl - If True, then a Socket underlying an SSLConnection is unwrapped
and notified.public void onOpened(org.eclipse.jetty.io.Connection connection)
onOpened in interface org.eclipse.jetty.io.Connection.Listenerprotected void customize(java.net.Socket socket,
java.lang.Class<? extends org.eclipse.jetty.io.Connection> connection,
boolean ssl)
socket - The Socket to configureconnection - The class of the connection (The socket may be wrapped
by an SslConnection prior to this connection).ssl - True if the socket is wrapped with an SslConnectionpublic void onClosed(org.eclipse.jetty.io.Connection connection)
onClosed in interface org.eclipse.jetty.io.Connection.ListenerCopyright © 1995–2018 Webtide. All rights reserved.