-
- All Implemented Interfaces:
-
java.io.Serializable
public class ChannelDataMessageEvent extends EventObject
The class is used to dispatch incoming ChannelData messages. Apart from the message itself one could also obtain the address from where the message is coming (used by a server implementation to determine the mapped address) as well as the Descriptor of the NetAccessPoint that received it (In case the stack is used on more than one ports/addresses).
-
-
Field Summary
Fields Modifier and Type Field Description private final StunStackstunStackprivate final TransportAddressremoteAddressprivate final TransportAddresslocalAddressprivate final ChannelDatachannelDataMessage
-
Constructor Summary
Constructors Constructor Description ChannelDataMessageEvent(StunStack stunStack, TransportAddress remoteAddress, TransportAddress localAddress, ChannelData channelDataMessage)Initializes a new ChannelDataMessageEvent associated with a specific ChannelData Message.
-
Method Summary
Modifier and Type Method Description StunStackgetStunStack()Gets the StunStack associated with this instance. TransportAddressgetRemoteAddress()Gets the TransportAddress which is the remote address of this event. TransportAddressgetLocalAddress()Gets the TransportAddress which is local address on which this event was received. ChannelDatagetChannelDataMessage()Gets the ChannelData Message associated with this event. -
-
Constructor Detail
-
ChannelDataMessageEvent
ChannelDataMessageEvent(StunStack stunStack, TransportAddress remoteAddress, TransportAddress localAddress, ChannelData channelDataMessage)
Initializes a new ChannelDataMessageEvent associated with a specific ChannelData Message.- Parameters:
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.
-
-
Method Detail
-
getStunStack
StunStack getStunStack()
Gets the StunStack associated with this instance.
-
getRemoteAddress
TransportAddress getRemoteAddress()
Gets the TransportAddress which is the remote address of this event.
-
getLocalAddress
TransportAddress getLocalAddress()
Gets the TransportAddress which is local address on which this event was received.
-
getChannelDataMessage
ChannelData getChannelDataMessage()
Gets the ChannelData Message associated with this event.
-
-
-
-