Enum Class Request.RequestType
- All Implemented Interfaces:
Serializable,Comparable<Request.RequestType>,java.lang.constant.Constable
- Enclosing interface:
- Request
The type of this request.
Components like access logging can rely on the string representation, for example by calling
request.getType().name().-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAbandon request type.Add request type.Bind request type.Compare request type.Delete request type.Extended request type.Invalid request type.Modify request type.Modify DN request type.Search request type.Unbind request type.Unknown request type. -
Method Summary
Modifier and TypeMethodDescriptionbyteReturns the protocol operation type.booleanReturnstrueif this type of request is expected to return a response to the client.static Request.RequestTypeReturns the enum constant of this class with the specified name.static Request.RequestType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ABANDON
Abandon request type. -
ADD
Add request type. -
BIND
Bind request type. -
COMPARE
Compare request type. -
DELETE
Delete request type. -
EXTENDED
Extended request type. -
MODIFYDN
Modify DN request type. -
MODIFY
Modify request type. -
SEARCH
Search request type. -
UNBIND
Unbind request type. -
UNKNOWN
Unknown request type. Unknown requests do not have a response because the type of the response cannot be determined and therefore it cannot be encoded and sent. On receipt of an unknown request, the only viable action a server can take is to not return anything and instead disconnect the client in order to avoid leaving the client waiting indefinitely. -
INVALID
Invalid request type. Invalid requests have a response because the type of the request can be determined. However, the request content cannot be parsed for some reason, such as an invalid target DN. In such cases an appropriate result message can be returned by the server.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getProtocolOperationType
public byte getProtocolOperationType()Returns the protocol operation type.- Returns:
- the protocol operation type
-
hasResponse
public boolean hasResponse()Returnstrueif this type of request is expected to return a response to the client. All types of request have responses except for UNBIND and ABANDON requests.- Returns:
trueif this type of request is expected to return a response to the client.
-