public static enum StatusResponse.Type extends Enum<StatusResponse.Type>
Enum Constant and Description |
---|
BAD
RFC2060
BAD server response |
BYE
RFC2060
BYE server response |
NO
RFC2060
OK server response |
OK
RFC2060
OK server response |
PREAUTH
RFC2060
PREAUTH server response |
Modifier and Type | Method and Description |
---|---|
String |
getCode() |
String |
toString() |
static StatusResponse.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StatusResponse.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StatusResponse.Type OK
OK
server responsepublic static final StatusResponse.Type NO
OK
server responsepublic static final StatusResponse.Type BAD
BAD
server responsepublic static final StatusResponse.Type PREAUTH
PREAUTH
server responsepublic static final StatusResponse.Type BYE
BYE
server responsepublic static StatusResponse.Type[] values()
for (StatusResponse.Type c : StatusResponse.Type.values()) System.out.println(c);
public static StatusResponse.Type 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 nullpublic final String getCode()
public String toString()
toString
in class Enum<StatusResponse.Type>
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.