public class ChannelDataMessageEvent extends EventObject
Modifier and Type | Field and Description |
---|---|
private ChannelData |
channelDataMessage
The ChannelData Message associated with this event.
|
private TransportAddress |
localAddress
Local address receiving this event.
|
private TransportAddress |
remoteAddress
Remote address causing this event.
|
private static long |
serialVersionUID
A dummy version UID to suppress warnings.
|
private StunStack |
stunStack
The StunStack associated with this instance.
|
source
Constructor and Description |
---|
ChannelDataMessageEvent(StunStack stunStack,
TransportAddress remoteAddress,
TransportAddress localAddress,
ChannelData channelDataMessage)
Initializes a new ChannelDataMessageEvent associated with a
specific ChannelData Message.
|
Modifier and Type | Method and Description |
---|---|
ChannelData |
getChannelDataMessage()
Gets the ChannelData Message associated with this event.
|
TransportAddress |
getLocalAddress()
Gets the TransportAddress which is local address on which this
event was received.
|
TransportAddress |
getRemoteAddress()
Gets the TransportAddress which is the remote address of this
event.
|
StunStack |
getStunStack()
Gets the StunStack associated with this instance.
|
getSource, toString
private static final long serialVersionUID
private final StunStack stunStack
private final TransportAddress remoteAddress
private final TransportAddress localAddress
private final ChannelData channelDataMessage
public ChannelDataMessageEvent(StunStack stunStack, TransportAddress remoteAddress, TransportAddress localAddress, ChannelData channelDataMessage)
stunStack
- the StunStack to be associated with the new
instance.remoteAddress
- the TransportAddress which is to be
reported as the source of the new event.localAddress
- the TransportAddress which is to be reported
as the receiving location of the new event.channelDataMessage
- the ChannelData Message associated
with the new event.public ChannelData getChannelDataMessage()
public TransportAddress getRemoteAddress()
public TransportAddress getLocalAddress()
public StunStack getStunStack()
Copyright © 2018. All rights reserved.