| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<ResultCode>
net.tomp2p.natpmp.ResultCode
public enum ResultCode
Enumerates the result codes from NAT-PMP messages.
Message| Enum Constant Summary | |
|---|---|
NetworkFailure
Network Failure: e.g.: The gateway itself has not obtained a DHCP lease.  | 
|
NotAuthorizedRefused
Not Authorized/Refused: e.g.: Gateway supports mapping, but user has turned feature off.  | 
|
OutOfResources
Out of resources: Gateway cannot create any more mappings at this time.  | 
|
Success
Success: Successful message.  | 
|
UnsupportedOpcode
Unsupported Opcode: The gateway doesn't support the opcode.  | 
|
UnsupportedVersion
Unsupported Version: The version of this client library (which is 0) is not supported by the NAT-PMP gateway.  | 
|
| Method Summary | |
|---|---|
static ResultCode | 
valueOf(String name)
Returns the enum constant of this type with the specified name.  | 
static ResultCode[] | 
values()
Returns an array containing the constants of this enum type, in the order they are declared.  | 
| Methods inherited from class java.lang.Enum | 
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf | 
| Methods inherited from class java.lang.Object | 
|---|
getClass, notify, notifyAll, wait, wait, wait | 
| Enum Constant Detail | 
|---|
public static final ResultCode Success
public static final ResultCode UnsupportedVersion
public static final ResultCode NotAuthorizedRefused
public static final ResultCode NetworkFailure
public static final ResultCode OutOfResources
public static final ResultCode UnsupportedOpcode
| Method Detail | 
|---|
public static ResultCode[] values()
for (ResultCode c : ResultCode.values()) System.out.println(c);
public static ResultCode valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||