public class StunMessageEvent extends BaseStunMessageEvent
Modifier and Type | Field and Description |
---|---|
private RawMessage |
rawMessage
The message as we got it off the wire.
|
private static long |
serialVersionUID
Serial version UID for this Serializable class.
|
source
Constructor and Description |
---|
StunMessageEvent(StunStack stunStack,
RawMessage rawMessage,
Message parsedMessage)
Constructs a StunMessageEvent according to the specified message.
|
Modifier and Type | Method and Description |
---|---|
TransportAddress |
getLocalAddress()
Returns a TransportAddress referencing the access point where
the message was received.
|
RawMessage |
getRawMessage()
Returns the raw message that caused this event.
|
TransportAddress |
getRemoteAddress()
Returns the address that sent the message.
|
String |
toString()
Returns a String representation of this event, containing the
corresponding message, remote and local addresses.
|
getMessage, getSourceAddress, getStunStack, getTransactionID, setTransactionID
getSource
private static final long serialVersionUID
private final RawMessage rawMessage
public StunMessageEvent(StunStack stunStack, RawMessage rawMessage, Message parsedMessage)
stunStack
- the StunStack to be associated with the new
instancerawMessage
- the crude message we got off the wire.parsedMessage
- the message itselfpublic TransportAddress getLocalAddress()
public TransportAddress getRemoteAddress()
public String toString()
toString
in class EventObject
public RawMessage getRawMessage()
RawMessage
that caused this event.Copyright © 2018. All rights reserved.