Class ResultCode
- java.lang.Object
-
- org.forgerock.opendj.ldap.ResultCode
-
public final class ResultCode extends Object
An operation result code as defined in RFC 4511 section 4.1.9 is used to indicate the final status of an operation. If a server detects multiple errors for an operation, only one result code is returned. The server should return the result code that best indicates the nature of the error encountered. Servers may return substituted result codes to prevent unauthorized disclosures.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classResultCode.EnumContains equivalent values for the ResultCode values.
-
Field Summary
Fields Modifier and Type Field Description static ResultCodeADMIN_LIMIT_EXCEEDEDThe result code that indicates that processing on the requested operation could not continue because an administrative limit was exceeded.static ResultCodeAFFECTS_MULTIPLE_DSASThe result code that indicates that the operation could not be processed because it would impact multiple DSAs or other repositories.static ResultCodeALIAS_DEREFERENCING_PROBLEMThe result code that indicates that a problem was encountered while attempting to dereference an alias for a search operation.static ResultCodeALIAS_PROBLEMThe result code that indicates that the requested operation failed because it attempted to perform an illegal operation on an alias.static ResultCodeASSERTION_FAILEDThe result code that indicates that the filter contained in an assertion control failed to match the target entry.static ResultCodeATTRIBUTE_OR_VALUE_EXISTSThe result code that indicates that the requested operation failed because it would have resulted in a conflict with an existing attribute or attribute value in the target entry.static ResultCodeAUTH_METHOD_NOT_SUPPORTEDThe result code that indicates that the requested authentication attempt failed because it referenced an invalid SASL mechanism.static ResultCodeAUTHORIZATION_DENIEDThe result code that should be used if the server will not allow the client to use the requested authorization.static ResultCodeBUSYThe result code that indicates that the server is too busy to process the requested operation.static ResultCodeCANCELLEDThe result code that indicates that a request has been cancelled by a cancel request.static ResultCodeCANNOT_CANCELThe result code that indicates that a cancel request was unsuccessful because the targeted operation was one that could not be canceled.static ResultCodeCLIENT_SIDE_AUTH_UNKNOWNThe client-side result code that indicates that the user requested an unknown or unsupported authentication mechanism.static ResultCodeCLIENT_SIDE_CLIENT_LOOPThe client-side result code that indicates that the client detected a referral loop caused by servers referencing each other in a circular manner.static ResultCodeCLIENT_SIDE_CONNECT_ERRORThe client-side result code that indicates that the client was not able to establish a connection to the server.static ResultCodeCLIENT_SIDE_CONTROL_NOT_FOUNDThe client-side result code that indicates that the client expected a control to be present in the response from the server but it was not included.static ResultCodeCLIENT_SIDE_DECODING_ERRORThe client-side result code that indicates that an error occurred while decoding a response from the server.static ResultCodeCLIENT_SIDE_ENCODING_ERRORThe client-side result code that indicates that an error occurred while encoding a request to send to the server.static ResultCodeCLIENT_SIDE_FILTER_ERRORThe client-side result code that indicates that the filter provided by the user was malformed and could not be parsed.static ResultCodeCLIENT_SIDE_LOCAL_ERRORThe client-side result code that indicates that a local error occurred that had nothing to do with interaction with the server.static ResultCodeCLIENT_SIDE_NO_MEMORYThe client-side result code that indicates that the client application was not able to allocate enough memory for the requested operation.static ResultCodeCLIENT_SIDE_NO_RESULTS_RETURNEDThe client-side result code that indicates that the requested single entry search operation or read operation failed because the Directory Server did not return any matching entries.static ResultCodeCLIENT_SIDE_NOT_SUPPORTEDThe client-side result code that indicates that the user requested an operation that is not supported.static ResultCodeCLIENT_SIDE_PARAM_ERRORThe client-side result code that indicates that there was a problem with one or more of the parameters provided by the user.static ResultCodeCLIENT_SIDE_REFERRAL_LIMIT_EXCEEDEDThe client-side result code that indicates that the client reached the maximum number of hops allowed when attempting to follow a referral (i.e., following one referral resulted in another referral which resulted in another referral and so on).static ResultCodeCLIENT_SIDE_SERVER_DOWNThe client-side result code that indicates that the server is down.static ResultCodeCLIENT_SIDE_TIMEOUTThe client-side result code that indicates that the client did not receive an expected response in a timely manner.static ResultCodeCLIENT_SIDE_UNEXPECTED_RESULTS_RETURNEDThe client-side result code that the requested single entry search operation or read operation failed because the Directory Server returned multiple matching entries (or search references) when only a single matching entry was expected.static ResultCodeCLIENT_SIDE_USER_CANCELLEDThe client-side result code that indicates that the user cancelled an operation.static ResultCodeCOMPARE_FALSEThe result code that indicates that the attribute value assertion included in a compare request did not match the targeted entry.static ResultCodeCOMPARE_TRUEThe result code that indicates that the attribute value assertion included in a compare request did match the targeted entry.static ResultCodeCONFIDENTIALITY_REQUIREDThe result code that indicates that the requested operation could not be processed because it requires confidentiality for the communication between the client and the server.static ResultCodeCONSTRAINT_VIOLATIONThe result code that indicates that the requested operation failed because it would have violated some constraint defined in the server.static ResultCodeENTRY_ALREADY_EXISTSThe result code that indicates that the requested operation failed because it would have resulted in an entry that conflicts with an entry that already exists.static ResultCodeINAPPROPRIATE_AUTHENTICATIONThe result code that indicates that an authentication attempt failed because the requested type of authentication was not appropriate for the targeted entry.static ResultCodeINAPPROPRIATE_MATCHINGThe result code that indicates that the requested operation failed because it attempted to perform an inappropriate type of matching against an attribute.static ResultCodeINSUFFICIENT_ACCESS_RIGHTSThe result code that indicates that the client does not have sufficient permission to perform the requested operation.static ResultCodeINVALID_ATTRIBUTE_SYNTAXThe result code that indicates that the requested operation failed because it violated the syntax for a specified attribute.static ResultCodeINVALID_CREDENTIALSThe result code that indicates that an authentication attempt failed because the user did not provide a valid set of credentials.static ResultCodeINVALID_DN_SYNTAXThe result code that indicates that the requested operation failed because it would have resulted in an entry with an invalid or malformed DN.static ResultCodeLOOP_DETECTThe result code that indicates that a referral or chaining loop was detected while processing the request.static ResultCodeNAMING_VIOLATIONThe result code that indicates that the requested operation failed because it would have violated the server's naming configuration.static ResultCodeNO_OPERATIONThe result code that should be used if the server did not actually complete processing on the associated operation because the request included the LDAP No-Op control.static ResultCodeNO_SUCH_ATTRIBUTEThe result code that indicates that the requested operation failed because it targeted an attribute or attribute value that did not exist in the specified entry.static ResultCodeNO_SUCH_OBJECTThe result code that indicates that the requested operation failed because it referenced an entry that does not exist.static ResultCodeNO_SUCH_OPERATIONThe result code that indicates that a cancel request was unsuccessful because the targeted operation did not exist or had already completed.static ResultCodeNOT_ALLOWED_ON_NONLEAFThe result code that indicates that the requested operation is not allowed for non-leaf entries.static ResultCodeNOT_ALLOWED_ON_RDNThe result code that indicates that the requested operation is not allowed on an RDN attribute.static ResultCodeOBJECTCLASS_MODS_PROHIBITEDThe result code that indicates that the operation could not be processed because it would have modified the objectclasses associated with an entry in an illegal manner.static ResultCodeOBJECTCLASS_VIOLATIONThe result code that indicates that the requested operation failed because it would have resulted in an entry that violated the server schema.static ResultCodeOFFSET_RANGE_ERRORThe result code that indicates that a search request included a VLV request control with an invalid offset.static ResultCodeOPERATIONS_ERRORThe result code that indicates that the operation is not properly sequenced with relation to other operations (of same or different type).static ResultCodeOTHERThe result code that should be used if no other result code is appropriate.static ResultCodePROTOCOL_ERRORThe result code that indicates that the client sent a malformed or illegal request to the server.static ResultCodeREFERRALThe result code that indicates that a referral was encountered.static ResultCodeSASL_BIND_IN_PROGRESSThe result code that should be used for intermediate responses in multi-stage SASL bind operations.static ResultCodeSIZE_LIMIT_EXCEEDEDThe result code that indicates that a size limit was exceeded while attempting to process the request.static ResultCodeSORT_CONTROL_MISSINGThe result code that indicates that a search request included a VLV request control without a server-side sort control.static ResultCodeSTRONG_AUTH_REQUIREDThe result code that indicates that the requested operation could not be processed because it requires that the client has completed a strong form of authentication.static ResultCodeSUCCESSThe result code that indicates that the operation completed successfully.static ResultCodeTIME_LIMIT_EXCEEDEDThe result code that indicates that a time limit was exceeded while attempting to process the request.static ResultCodeTOO_LATEThe result code that indicates that a cancel request was unsuccessful because processing on the targeted operation had already reached a point at which it could not be canceled.static ResultCodeUNAVAILABLEThe result code that indicates that either the entire server or one or more required resources were not available for use in processing the request.static ResultCodeUNAVAILABLE_CRITICAL_EXTENSIONThe result code that indicates that the requested operation failed because it included a critical extension that is unsupported or inappropriate for that request.static ResultCodeUNDEFINEDThe result code that should only be used if the actual result code has not yet been determined.static ResultCodeUNDEFINED_ATTRIBUTE_TYPEThe result code that indicates that the requested operation failed because it referenced an attribute that is not defined in the server schema.static ResultCodeUNWILLING_TO_PERFORMThe result code that indicates that the server is unwilling to perform the requested operation.static ResultCodeVIRTUAL_LIST_VIEW_ERRORThe result code that indicates that the operation could not be processed because there was an error while processing the virtual list view control.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ResultCode.EnumasEnum()Returns the enum equivalent for this result code.booleanequals(Object obj)LocalizableMessagegetName()Returns the short human-readable name of this result code.inthashCode()static ResultCodeinternalServerErrorResultCode()Returns the result code that should be used when the Directory Server encounters an internal server error.intintValue()Returns the integer value of this result code.booleanisClientError()Returnstrueif thisResultCodecorresponds to a client-side result code.booleanisEqualTo(int resultCode)Returnstrueif the provided integer corresponds to thisResultCode.booleanisExceptional()Indicates whether this result code represents an error result.booleanisTransientError()Returns whether an exceptional result code represents a transient error.StringtoString()Returns the string representation of this result code.static ResultCodevalueOf(int intValue)Returns the result code having the specified integer value as defined in RFC 4511 section 4.1.9.static List<ResultCode>values()Returns an unmodifiable list containing the set of available result codes indexed on their integer value as defined in RFC 4511 section 4.1.9.
-
-
-
Field Detail
-
UNDEFINED
public static final ResultCode UNDEFINED
The result code that should only be used if the actual result code has not yet been determined.Despite not being a standard result code, it is an implementation of the null object design pattern for this type.
-
SUCCESS
public static final ResultCode SUCCESS
The result code that indicates that the operation completed successfully.This result code corresponds to the LDAP result code value of
0.
-
OPERATIONS_ERROR
public static final ResultCode OPERATIONS_ERROR
The result code that indicates that the operation is not properly sequenced with relation to other operations (of same or different type).For example, this code is returned if the client attempts to StartTLS [RFC4346] while there are other uncompleted operations or if a TLS layer was already installed.
This result code corresponds to the LDAP result code value of
1.
-
PROTOCOL_ERROR
public static final ResultCode PROTOCOL_ERROR
The result code that indicates that the client sent a malformed or illegal request to the server.This result code corresponds to the LDAP result code value of
2.
-
TIME_LIMIT_EXCEEDED
public static final ResultCode TIME_LIMIT_EXCEEDED
The result code that indicates that a time limit was exceeded while attempting to process the request.This result code corresponds to the LDAP result code value of
3.
-
SIZE_LIMIT_EXCEEDED
public static final ResultCode SIZE_LIMIT_EXCEEDED
The result code that indicates that a size limit was exceeded while attempting to process the request.This result code corresponds to the LDAP result code value of
4.
-
COMPARE_FALSE
public static final ResultCode COMPARE_FALSE
The result code that indicates that the attribute value assertion included in a compare request did not match the targeted entry.This result code corresponds to the LDAP result code value of
5.
-
COMPARE_TRUE
public static final ResultCode COMPARE_TRUE
The result code that indicates that the attribute value assertion included in a compare request did match the targeted entry.This result code corresponds to the LDAP result code value of
6.
-
AUTH_METHOD_NOT_SUPPORTED
public static final ResultCode AUTH_METHOD_NOT_SUPPORTED
The result code that indicates that the requested authentication attempt failed because it referenced an invalid SASL mechanism.This result code corresponds to the LDAP result code value of
7.
-
STRONG_AUTH_REQUIRED
public static final ResultCode STRONG_AUTH_REQUIRED
The result code that indicates that the requested operation could not be processed because it requires that the client has completed a strong form of authentication.This result code corresponds to the LDAP result code value of
8.
-
REFERRAL
public static final ResultCode REFERRAL
The result code that indicates that a referral was encountered.Strictly speaking this result code should not be exceptional since it is considered as a "success" response. However, referrals should occur rarely in practice and, when they do occur, should not be ignored since the application may believe that a request has succeeded when, in fact, nothing was done.
This result code corresponds to the LDAP result code value of
10.
-
ADMIN_LIMIT_EXCEEDED
public static final ResultCode ADMIN_LIMIT_EXCEEDED
The result code that indicates that processing on the requested operation could not continue because an administrative limit was exceeded.This result code corresponds to the LDAP result code value of
11.
-
UNAVAILABLE_CRITICAL_EXTENSION
public static final ResultCode UNAVAILABLE_CRITICAL_EXTENSION
The result code that indicates that the requested operation failed because it included a critical extension that is unsupported or inappropriate for that request.This result code corresponds to the LDAP result code value of
12.
-
CONFIDENTIALITY_REQUIRED
public static final ResultCode CONFIDENTIALITY_REQUIRED
The result code that indicates that the requested operation could not be processed because it requires confidentiality for the communication between the client and the server.This result code corresponds to the LDAP result code value of
13.
-
SASL_BIND_IN_PROGRESS
public static final ResultCode SASL_BIND_IN_PROGRESS
The result code that should be used for intermediate responses in multi-stage SASL bind operations.This result code corresponds to the LDAP result code value of
14.
-
NO_SUCH_ATTRIBUTE
public static final ResultCode NO_SUCH_ATTRIBUTE
The result code that indicates that the requested operation failed because it targeted an attribute or attribute value that did not exist in the specified entry.This result code corresponds to the LDAP result code value of
16.
-
UNDEFINED_ATTRIBUTE_TYPE
public static final ResultCode UNDEFINED_ATTRIBUTE_TYPE
The result code that indicates that the requested operation failed because it referenced an attribute that is not defined in the server schema.This result code corresponds to the LDAP result code value of
17.
-
INAPPROPRIATE_MATCHING
public static final ResultCode INAPPROPRIATE_MATCHING
The result code that indicates that the requested operation failed because it attempted to perform an inappropriate type of matching against an attribute.This result code corresponds to the LDAP result code value of
18.
-
CONSTRAINT_VIOLATION
public static final ResultCode CONSTRAINT_VIOLATION
The result code that indicates that the requested operation failed because it would have violated some constraint defined in the server.This result code corresponds to the LDAP result code value of
19.
-
ATTRIBUTE_OR_VALUE_EXISTS
public static final ResultCode ATTRIBUTE_OR_VALUE_EXISTS
The result code that indicates that the requested operation failed because it would have resulted in a conflict with an existing attribute or attribute value in the target entry.This result code corresponds to the LDAP result code value of
20.
-
INVALID_ATTRIBUTE_SYNTAX
public static final ResultCode INVALID_ATTRIBUTE_SYNTAX
The result code that indicates that the requested operation failed because it violated the syntax for a specified attribute.This result code corresponds to the LDAP result code value of
21.
-
NO_SUCH_OBJECT
public static final ResultCode NO_SUCH_OBJECT
The result code that indicates that the requested operation failed because it referenced an entry that does not exist.This result code corresponds to the LDAP result code value of
32.
-
ALIAS_PROBLEM
public static final ResultCode ALIAS_PROBLEM
The result code that indicates that the requested operation failed because it attempted to perform an illegal operation on an alias.This result code corresponds to the LDAP result code value of
33.
-
INVALID_DN_SYNTAX
public static final ResultCode INVALID_DN_SYNTAX
The result code that indicates that the requested operation failed because it would have resulted in an entry with an invalid or malformed DN.This result code corresponds to the LDAP result code value of
34.
-
ALIAS_DEREFERENCING_PROBLEM
public static final ResultCode ALIAS_DEREFERENCING_PROBLEM
The result code that indicates that a problem was encountered while attempting to dereference an alias for a search operation.This result code corresponds to the LDAP result code value of
36.
-
INAPPROPRIATE_AUTHENTICATION
public static final ResultCode INAPPROPRIATE_AUTHENTICATION
The result code that indicates that an authentication attempt failed because the requested type of authentication was not appropriate for the targeted entry.This result code corresponds to the LDAP result code value of
48.
-
INVALID_CREDENTIALS
public static final ResultCode INVALID_CREDENTIALS
The result code that indicates that an authentication attempt failed because the user did not provide a valid set of credentials.This result code corresponds to the LDAP result code value of
49.
-
INSUFFICIENT_ACCESS_RIGHTS
public static final ResultCode INSUFFICIENT_ACCESS_RIGHTS
The result code that indicates that the client does not have sufficient permission to perform the requested operation.This result code corresponds to the LDAP result code value of
50.
-
BUSY
public static final ResultCode BUSY
The result code that indicates that the server is too busy to process the requested operation.This result code corresponds to the LDAP result code value of
51.This is a transient error which means the operation can safely be retried.
-
UNAVAILABLE
public static final ResultCode UNAVAILABLE
The result code that indicates that either the entire server or one or more required resources were not available for use in processing the request.This result code corresponds to the LDAP result code value of
52.This is a transient error which means the operation can safely be retried.
-
UNWILLING_TO_PERFORM
public static final ResultCode UNWILLING_TO_PERFORM
The result code that indicates that the server is unwilling to perform the requested operation.This result code corresponds to the LDAP result code value of
53.
-
LOOP_DETECT
public static final ResultCode LOOP_DETECT
The result code that indicates that a referral or chaining loop was detected while processing the request.This result code corresponds to the LDAP result code value of
54.
-
SORT_CONTROL_MISSING
public static final ResultCode SORT_CONTROL_MISSING
The result code that indicates that a search request included a VLV request control without a server-side sort control.This result code corresponds to the LDAP result code value of
60.
-
OFFSET_RANGE_ERROR
public static final ResultCode OFFSET_RANGE_ERROR
The result code that indicates that a search request included a VLV request control with an invalid offset.This result code corresponds to the LDAP result code value of
61.
-
NAMING_VIOLATION
public static final ResultCode NAMING_VIOLATION
The result code that indicates that the requested operation failed because it would have violated the server's naming configuration.This result code corresponds to the LDAP result code value of
64.
-
OBJECTCLASS_VIOLATION
public static final ResultCode OBJECTCLASS_VIOLATION
The result code that indicates that the requested operation failed because it would have resulted in an entry that violated the server schema.This result code corresponds to the LDAP result code value of
65.
-
NOT_ALLOWED_ON_NONLEAF
public static final ResultCode NOT_ALLOWED_ON_NONLEAF
The result code that indicates that the requested operation is not allowed for non-leaf entries.This result code corresponds to the LDAP result code value of
66.
-
NOT_ALLOWED_ON_RDN
public static final ResultCode NOT_ALLOWED_ON_RDN
The result code that indicates that the requested operation is not allowed on an RDN attribute.This result code corresponds to the LDAP result code value of
67.
-
ENTRY_ALREADY_EXISTS
public static final ResultCode ENTRY_ALREADY_EXISTS
The result code that indicates that the requested operation failed because it would have resulted in an entry that conflicts with an entry that already exists.This result code corresponds to the LDAP result code value of
68.
-
OBJECTCLASS_MODS_PROHIBITED
public static final ResultCode OBJECTCLASS_MODS_PROHIBITED
The result code that indicates that the operation could not be processed because it would have modified the objectclasses associated with an entry in an illegal manner.This result code corresponds to the LDAP result code value of
69.
-
AFFECTS_MULTIPLE_DSAS
public static final ResultCode AFFECTS_MULTIPLE_DSAS
The result code that indicates that the operation could not be processed because it would impact multiple DSAs or other repositories.This result code corresponds to the LDAP result code value of
71.
-
VIRTUAL_LIST_VIEW_ERROR
public static final ResultCode VIRTUAL_LIST_VIEW_ERROR
The result code that indicates that the operation could not be processed because there was an error while processing the virtual list view control.This result code corresponds to the LDAP result code value of
76.
-
OTHER
public static final ResultCode OTHER
The result code that should be used if no other result code is appropriate.This result code corresponds to the LDAP result code value of
80.
-
CLIENT_SIDE_SERVER_DOWN
public static final ResultCode CLIENT_SIDE_SERVER_DOWN
The client-side result code that indicates that the server is down. This is for client-side use only and should never be transferred over protocol.This result code corresponds to the LDAP result code value of
81.This is a transient error which means the operation can be retried.
-
CLIENT_SIDE_LOCAL_ERROR
public static final ResultCode CLIENT_SIDE_LOCAL_ERROR
The client-side result code that indicates that a local error occurred that had nothing to do with interaction with the server. This is for client-side use only and should never be transferred over protocol.This result code corresponds to the LDAP result code value of
82.
-
CLIENT_SIDE_ENCODING_ERROR
public static final ResultCode CLIENT_SIDE_ENCODING_ERROR
The client-side result code that indicates that an error occurred while encoding a request to send to the server. This is for client-side use only and should never be transferred over protocol.This result code corresponds to the LDAP result code value of
83.
-
CLIENT_SIDE_DECODING_ERROR
public static final ResultCode CLIENT_SIDE_DECODING_ERROR
The client-side result code that indicates that an error occurred while decoding a response from the server. This is for client-side use only and should never be transferred over protocol.This result code corresponds to the LDAP result code value of
84.
-
CLIENT_SIDE_TIMEOUT
public static final ResultCode CLIENT_SIDE_TIMEOUT
The client-side result code that indicates that the client did not receive an expected response in a timely manner. This is for client-side use only and should never be transferred over protocol.This result code corresponds to the LDAP result code value of
85.This is a transient error which means the operation can be retried.
-
CLIENT_SIDE_AUTH_UNKNOWN
public static final ResultCode CLIENT_SIDE_AUTH_UNKNOWN
The client-side result code that indicates that the user requested an unknown or unsupported authentication mechanism. This is for client-side use only and should never be transferred over protocol.This result code corresponds to the LDAP result code value of
86.
-
CLIENT_SIDE_FILTER_ERROR
public static final ResultCode CLIENT_SIDE_FILTER_ERROR
The client-side result code that indicates that the filter provided by the user was malformed and could not be parsed. This is for client-side use only and should never be transferred over protocol.This result code corresponds to the LDAP result code value of
87.
-
CLIENT_SIDE_USER_CANCELLED
public static final ResultCode CLIENT_SIDE_USER_CANCELLED
The client-side result code that indicates that the user cancelled an operation. This is for client-side use only and should never be transferred over protocol.This result code corresponds to the LDAP result code value of
88.
-
CLIENT_SIDE_PARAM_ERROR
public static final ResultCode CLIENT_SIDE_PARAM_ERROR
The client-side result code that indicates that there was a problem with one or more of the parameters provided by the user. This is for client-side use only and should never be transferred over protocol.This result code corresponds to the LDAP result code value of
89.
-
CLIENT_SIDE_NO_MEMORY
public static final ResultCode CLIENT_SIDE_NO_MEMORY
The client-side result code that indicates that the client application was not able to allocate enough memory for the requested operation. This is for client-side use only and should never be transferred over protocol.This result code corresponds to the LDAP result code value of
90.
-
CLIENT_SIDE_CONNECT_ERROR
public static final ResultCode CLIENT_SIDE_CONNECT_ERROR
The client-side result code that indicates that the client was not able to establish a connection to the server. This is for client-side use only and should never be transferred over protocol.This result code corresponds to the LDAP result code value of
91.This is a transient error which means the operation can be retried.
-
CLIENT_SIDE_NOT_SUPPORTED
public static final ResultCode CLIENT_SIDE_NOT_SUPPORTED
The client-side result code that indicates that the user requested an operation that is not supported. This is for client-side use only and should never be transferred over protocol.This result code corresponds to the LDAP result code value of
92.
-
CLIENT_SIDE_CONTROL_NOT_FOUND
public static final ResultCode CLIENT_SIDE_CONTROL_NOT_FOUND
The client-side result code that indicates that the client expected a control to be present in the response from the server but it was not included. This is for client-side use only and should never be transferred over protocol.This result code corresponds to the LDAP result code value of
93.
-
CLIENT_SIDE_NO_RESULTS_RETURNED
public static final ResultCode CLIENT_SIDE_NO_RESULTS_RETURNED
The client-side result code that indicates that the requested single entry search operation or read operation failed because the Directory Server did not return any matching entries. This is for client-side use only and should never be transferred over protocol.This result code corresponds to the LDAP result code value of
94.
-
CLIENT_SIDE_UNEXPECTED_RESULTS_RETURNED
public static final ResultCode CLIENT_SIDE_UNEXPECTED_RESULTS_RETURNED
The client-side result code that the requested single entry search operation or read operation failed because the Directory Server returned multiple matching entries (or search references) when only a single matching entry was expected. This is for client-side use only and should never be transferred over protocol.This result code corresponds to the LDAP result code value of
95.
-
CLIENT_SIDE_CLIENT_LOOP
public static final ResultCode CLIENT_SIDE_CLIENT_LOOP
The client-side result code that indicates that the client detected a referral loop caused by servers referencing each other in a circular manner. This is for client-side use only and should never be transferred over protocol.This result code corresponds to the LDAP result code value of
96.
-
CLIENT_SIDE_REFERRAL_LIMIT_EXCEEDED
public static final ResultCode CLIENT_SIDE_REFERRAL_LIMIT_EXCEEDED
The client-side result code that indicates that the client reached the maximum number of hops allowed when attempting to follow a referral (i.e., following one referral resulted in another referral which resulted in another referral and so on). This is for client-side use only and should never be transferred over protocol.This result code corresponds to the LDAP result code value of
97.
-
CANCELLED
public static final ResultCode CANCELLED
The result code that indicates that a request has been cancelled by a cancel request.This result code corresponds to the LDAP result code value of
118.
-
NO_SUCH_OPERATION
public static final ResultCode NO_SUCH_OPERATION
The result code that indicates that a cancel request was unsuccessful because the targeted operation did not exist or had already completed.This result code corresponds to the LDAP result code value of
119.
-
TOO_LATE
public static final ResultCode TOO_LATE
The result code that indicates that a cancel request was unsuccessful because processing on the targeted operation had already reached a point at which it could not be canceled.This result code corresponds to the LDAP result code value of
120.
-
CANNOT_CANCEL
public static final ResultCode CANNOT_CANCEL
The result code that indicates that a cancel request was unsuccessful because the targeted operation was one that could not be canceled.This result code corresponds to the LDAP result code value of
121.
-
ASSERTION_FAILED
public static final ResultCode ASSERTION_FAILED
The result code that indicates that the filter contained in an assertion control failed to match the target entry.This result code corresponds to the LDAP result code value of
122.
-
AUTHORIZATION_DENIED
public static final ResultCode AUTHORIZATION_DENIED
The result code that should be used if the server will not allow the client to use the requested authorization.This result code corresponds to the LDAP result code value of
123.
-
NO_OPERATION
public static final ResultCode NO_OPERATION
The result code that should be used if the server did not actually complete processing on the associated operation because the request included the LDAP No-Op control.This result code corresponds to the LDAP result code value of
16654.
-
-
Method Detail
-
valueOf
public static ResultCode valueOf(int intValue)
Returns the result code having the specified integer value as defined in RFC 4511 section 4.1.9. If there is no result code associated with the specified integer value then a temporary result code is automatically created in order to handle cases where unexpected result codes are returned from the server.- Parameters:
intValue- The integer value of the result code.- Returns:
- The result code.
-
values
public static List<ResultCode> values()
Returns an unmodifiable list containing the set of available result codes indexed on their integer value as defined in RFC 4511 section 4.1.9.- Returns:
- An unmodifiable list containing the set of available result codes.
-
getName
public LocalizableMessage getName()
Returns the short human-readable name of this result code.- Returns:
- The short human-readable name of this result code.
-
intValue
public int intValue()
Returns the integer value of this result code.- Returns:
- The integer value of this result code.
-
asEnum
public ResultCode.Enum asEnum()
Returns the enum equivalent for this result code.- Returns:
- The enum equivalent for this result code when a known mapping exists,
or
ResultCode.Enum.UNKNOWNif this is an unknown result code.
-
isExceptional
public boolean isExceptional()
Indicates whether this result code represents an error result.The following result codes are NOT interpreted as error results:
In order to make it easier for application to detect referrals, theREFERRALresult code is interpreted as an error result (the LDAP RFCs treat referrals as a success response).- Returns:
trueif this result code represents an error result, otherwisefalse.
-
isTransientError
public boolean isTransientError()
Returns whether an exceptional result code represents a transient error. Returnsfalsefor successful result codes.- Returns:
trueif exceptional result code represents a transient error,falsein all other cases
-
isClientError
public boolean isClientError()
Returnstrueif thisResultCodecorresponds to a client-side result code. See draft-ietf-ldapext-ldap-c-api-05.txt- Returns:
trueif result code represents a client side error,falsein all other cases
-
internalServerErrorResultCode
public static ResultCode internalServerErrorResultCode()
Returns the result code that should be used when the Directory Server encounters an internal server error.- Returns:
- The result code that should be used when the Directory Server encounters an internal server error.
-
toString
public String toString()
Returns the string representation of this result code.
-
isEqualTo
public boolean isEqualTo(int resultCode)
Returnstrueif the provided integer corresponds to thisResultCode.- Parameters:
resultCode- The integer to compare- Returns:
trueif the provided integer corresponds to thisResultCode.
-
-