public enum RequestType extends Enum<RequestType>
Enum Constant and Description |
---|
EXEC |
LIST |
READ |
REGNOTIF |
REMNOTIF |
SEARCH |
VERSION |
WRITE |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
static RequestType |
getTypeByName(String pName)
Get the request type by a string representation.
|
static RequestType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RequestType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RequestType READ
public static final RequestType LIST
public static final RequestType WRITE
public static final RequestType EXEC
public static final RequestType VERSION
public static final RequestType SEARCH
public static final RequestType REGNOTIF
public static final RequestType REMNOTIF
public static RequestType[] values()
for (RequestType c : RequestType.values()) System.out.println(c);
public static RequestType 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 String getName()
public static RequestType getTypeByName(String pName)
pName
- the type associated with the given nameIllegalArgumentException
- if the argument is either null
or
does not map to a type.Copyright © 2019. All rights reserved.