Class SocketCustomizationListener
java.lang.Object
org.eclipse.jetty.server.SocketCustomizationListener
- All Implemented Interfaces:
 EventListener, Connection.Listener
A Connection Lister for customization of SocketConnections.
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 Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected voidcustomize(Socket socket, Class<? extends Connection> connection, boolean ssl) This method may be extended to configure a socket on open events.voidonClosed(Connection connection) voidonOpened(Connection connection)  
- 
Constructor Details
- 
SocketCustomizationListener
public SocketCustomizationListener()Construct with SSL unwrapping on. - 
SocketCustomizationListener
public SocketCustomizationListener(boolean ssl) - Parameters:
 ssl- If True, then a Socket underlying an SSLConnection is unwrapped and notified.
 
 - 
 - 
Method Details
- 
onOpened
- Specified by:
 onOpenedin interfaceConnection.Listener
 - 
customize
This method may be extended to configure a socket on open events.- Parameters:
 socket- The Socket to configureconnection- The class of the connection (The socket may be wrapped by anSslConnectionprior to this connection).ssl- True if the socket is wrapped with an SslConnection
 - 
onClosed
- Specified by:
 onClosedin interfaceConnection.Listener
 
 -