Package org.ldaptive.extended
Class ExtendedResponse
java.lang.Object
org.ldaptive.AbstractMessage
org.ldaptive.AbstractResult
org.ldaptive.extended.ExtendedResponse
- Direct Known Subclasses:
UnsolicitedNotification
LDAP extended response defined as:
ExtendedResponse ::= [APPLICATION 24] SEQUENCE {
COMPONENTS OF LDAPResult,
responseName [10] LDAPOID OPTIONAL,
responseValue [11] OCTET STRING OPTIONAL }
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classprotected static classParse handler implementation for the response name.protected static classParse handler implementation for the response value.Nested classes/interfaces inherited from class org.ldaptive.AbstractResult
AbstractResult.AbstractBuilder<B,T extends AbstractResult>, AbstractResult.DiagnosticMessageHandler, AbstractResult.MatchedDNHandler, AbstractResult.ReferralHandler, AbstractResult.ResultCodeHandler Nested classes/interfaces inherited from class org.ldaptive.AbstractMessage
AbstractMessage.ControlParser, AbstractMessage.ControlsHandler, AbstractMessage.MessageIDHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final DERPathDER path to diagnostic message.private static final inthash code seed.private static final DERPathDER path to matched DN.private static final DERPathDER path to name.static final intBER protocol number.private static final DERPathDER path to referral.private StringResponse name.private byte[]Response value.private static final DERPathDER path to result code.private static final DERPathDER path to value. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor.ExtendedResponse(DERBuffer buffer) Creates a new extended response. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExtendedResponse.Builderbuilder()Creates a builder for this class.booleanfinal Stringfinal byte[]inthashCode()Returns the hash code for this object.protected final voidsetResponseName(String name) protected final voidsetResponseValue(byte[] value) toString()Methods inherited from class org.ldaptive.AbstractResult
addReferralURLs, copyValues, equalsResult, getDiagnosticMessage, getMatchedDN, getReferralURLs, getResultCode, setDiagnosticMessage, setMatchedDN, setResultCodeMethods inherited from class org.ldaptive.AbstractMessage
addControls, copyValues, equalsMessage, getControls, getMessageID, setMessageIDMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.ldaptive.Message
getControl, getControls, getMessageIDMethods inherited from interface org.ldaptive.Result
getEncodedDiagnosticMessage, isSuccess
-
Field Details
-
PROTOCOL_OP
public static final int PROTOCOL_OPBER protocol number.- See Also:
-
HASH_CODE_SEED
private static final int HASH_CODE_SEEDhash code seed.- See Also:
-
RESULT_CODE_PATH
DER path to result code. -
MATCHED_DN_PATH
DER path to matched DN. -
DIAGNOSTIC_MESSAGE_PATH
DER path to diagnostic message. -
REFERRAL_PATH
DER path to referral. -
NAME_PATH
DER path to name. -
VALUE_PATH
DER path to value. -
responseName
Response name. -
responseValue
private byte[] responseValueResponse value.
-
-
Constructor Details
-
ExtendedResponse
protected ExtendedResponse()Default constructor. -
ExtendedResponse
Creates a new extended response.- Parameters:
buffer- to decode
-
-
Method Details
-
getResponseName
-
setResponseName
-
getResponseValue
public final byte[] getResponseValue() -
setResponseValue
protected final void setResponseValue(byte[] value) -
equals
- Overrides:
equalsin classAbstractResult
-
hashCode
public int hashCode()Description copied from class:AbstractMessageReturns the hash code for this object.- Specified by:
hashCodein classAbstractMessage- Returns:
- hash code
-
toString
- Overrides:
toStringin classAbstractResult
-
builder
Creates a builder for this class.- Returns:
- new builder
-