public abstract class JnlpConnectionStateListener extends Object
JnlpConnectionState.setStash(JnlpConnectionState.ListenerState) and
JnlpConnectionState.getStash(Class) if you need to maintain state between callbacks.
beforeProperties(JnlpConnectionState) (if closed then afterDisconnect(JnlpConnectionState))
afterProperties(JnlpConnectionState) (if closed then afterDisconnect(JnlpConnectionState))beforeChannel(JnlpConnectionState) (if closed then afterDisconnect(JnlpConnectionState))afterChannel(JnlpConnectionState) (if closed then channelClosed(JnlpConnectionState))channelClosed(JnlpConnectionState)afterDisconnect(JnlpConnectionState)| Constructor and Description |
|---|
JnlpConnectionStateListener() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
afterChannel(JnlpConnectionState event)
Callback to notify the
JnlpConnectionState.approve() listener that the Channel has been
created and is available via JnlpConnectionState.getChannel(). |
void |
afterDisconnect(JnlpConnectionState event)
Callback to notify the
JnlpConnectionState.approve() listener that the Socket has been
closed. |
abstract void |
afterProperties(JnlpConnectionState event)
Notification that properties have been exchanged.
|
void |
beforeChannel(JnlpConnectionState event)
Callback to allow the
JnlpConnectionState.approve() listener to decorate the ChannelBuilder via
JnlpConnectionState.getChannelBuilder(). |
void |
beforeProperties(JnlpConnectionState event)
Notification that the connection has been established and properties will be exchanged.
|
void |
channelClosed(JnlpConnectionState event)
Callback to notify the
JnlpConnectionState.approve() listener that the Channel has been
closed. |
public void beforeProperties(@Nonnull JnlpConnectionState event)
JnlpConnectionState.ignore() to suppress any further notifications of this event.
Call JnlpConnectionState.reject(ConnectionRefusalException) to reject the connection.
Call JnlpConnectionState.approve() to declare ownership of this event (normally better to defer this to
afterProperties(JnlpConnectionState))event - the event.public abstract void afterProperties(@Nonnull JnlpConnectionState event)
JnlpConnectionState.ignore() to suppress any further notifications of this event.
Call JnlpConnectionState.reject(ConnectionRefusalException) to reject the connection.
Call JnlpConnectionState.approve() to declare ownership of this event.event - the event.public void beforeChannel(@Nonnull JnlpConnectionState event)
JnlpConnectionState.approve() listener to decorate the ChannelBuilder via
JnlpConnectionState.getChannelBuilder().event - the event.public abstract void afterChannel(@Nonnull JnlpConnectionState event)
JnlpConnectionState.approve() listener that the Channel has been
created and is available via JnlpConnectionState.getChannel().event - the event.public void channelClosed(@Nonnull JnlpConnectionState event)
JnlpConnectionState.approve() listener that the Channel has been
closed.event - the event.public void afterDisconnect(@Nonnull JnlpConnectionState event)
JnlpConnectionState.approve() listener that the Socket has been
closed.event - the event.Copyright © 2004–2018. All rights reserved.