public class StunFailureEvent extends BaseStunMessageEvent
Modifier and Type | Field and Description |
---|---|
private Throwable |
cause
The Exception that caused this failure.
|
private static long |
serialVersionUID
Serial version UID for this Serializable class.
|
source
Constructor and Description |
---|
StunFailureEvent(StunStack stunStack,
Message message,
TransportAddress localAddress,
Throwable cause)
Constructs a StunFailureEvent according to the specified
message.
|
Modifier and Type | Method and Description |
---|---|
Throwable |
getCause()
Returns the Exception that cause this failure or null
if the failure is not related to an Exception.
|
TransportAddress |
getLocalAddress()
Returns the TransportAddress that the message was supposed to
leave from.
|
String |
toString()
Returns a String representation of this event, containing the
corresponding message, and local address.
|
getMessage, getSourceAddress, getStunStack, getTransactionID, setTransactionID
getSource
private static final long serialVersionUID
private final Throwable cause
public StunFailureEvent(StunStack stunStack, Message message, TransportAddress localAddress, Throwable cause)
stunStack
- the StunStack to be associated with the new
instancemessage
- the message itselflocalAddress
- the local address that the message was sent from.cause
- the Exception that caused this failure or
null if there's no Exception associated with this
failurepublic TransportAddress getLocalAddress()
public Throwable getCause()
public String toString()
toString
in class EventObject
Copyright © 2018. All rights reserved.