public enum ResultCode extends Enum<ResultCode>
Message
Enum Constant and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
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 nameNullPointerException
- if the argument is nullCopyright © 2013. All Rights Reserved.