Package org.ldaptive.extended
Class IntermediateResponse
java.lang.Object
org.ldaptive.AbstractMessage
org.ldaptive.extended.IntermediateResponse
- All Implemented Interfaces:
Message
- Direct Known Subclasses:
SyncInfoMessage
LDAP extended response defined as:
IntermediateResponse ::= [APPLICATION 25] SEQUENCE {
responseName [0] LDAPOID OPTIONAL,
responseValue [1] 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.AbstractMessage
AbstractMessage.AbstractBuilder<B,T extends AbstractMessage>, AbstractMessage.ControlParser, AbstractMessage.ControlsHandler, AbstractMessage.MessageIDHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final inthash code seed.static final intBER protocol number.private StringResponse name.private byte[]Response value. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor.IntermediateResponse(DERBuffer buffer) Creates a new intermediate response. -
Method Summary
Modifier and TypeMethodDescriptionstatic IntermediateResponse.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.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
-
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:
-
responseName
Response name. -
responseValue
private byte[] responseValueResponse value.
-
-
Constructor Details
-
IntermediateResponse
protected IntermediateResponse()Default constructor. -
IntermediateResponse
Creates a new intermediate response.- Parameters:
buffer- to decode
-
-
Method Details
-
getResponseName
-
setResponseName
-
getResponseValue
public final byte[] getResponseValue() -
setResponseValue
protected final void setResponseValue(byte[] value) -
equals
- Overrides:
equalsin classAbstractMessage
-
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 classAbstractMessage
-
builder
Creates a builder for this class.- Returns:
- new builder
-