|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.tomp2p.natpmp.Message
public abstract class Message
The message class manages a message that is being sent to a NAT-PMP gateway. The class respects the back-off time defined in the NAT-PMP specification. Consumers of this class need to ensure that only one message is being sent at a time to remain compliant with the NAT-PMP specification. This class is thread-safe.
ExternalAddressRequestMessage,
MapRequestMessage| Method Summary | |
|---|---|
NatPmpException |
getResponseException()
Gets the excpetion associated with the response. |
ResultCode |
getResultCode()
Gets the result code. |
Integer |
getSecondsSinceEpoch()
Gets the seconds since epoch as received from the NAT-PMP gateway. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public NatPmpException getResponseException()
NatPmpException associated with the response.
public ResultCode getResultCode()
throws NatPmpException
NatPmpException - Thrown when no response has been received or the response parsing ran into some trouble.
public Integer getSecondsSinceEpoch()
throws NatPmpException
NatPmpException - Thrown when no response has been received or the response parsing ran into some trouble.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||