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 class
protected static class
Parse handler implementation for the response name.protected static class
Parse 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
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Default constructor.IntermediateResponse
(DERBuffer buffer) Creates a new intermediate response. -
Method Summary
Modifier and TypeMethodDescriptionstatic IntermediateResponse.Builder
builder()
Creates a builder for this class.boolean
byte[]
protected ParseHandler
Returns the parse handler for the response value.int
hashCode()
Returns the hash code for this object.protected void
setResponseName
(String name) protected void
setResponseValue
(byte[] value) toString()
Methods inherited from class org.ldaptive.AbstractMessage
addControls, copyValues, getControls, getMessageID, setMessageID
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:
-
RESPONSE_NAME_PATH
DER path to response name. -
RESPONSE_VALUE_PATH
DER path to response value. -
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
-
getResponseValueParseHandler
Returns the parse handler for the response value.- Returns:
- parse handler
-
getResponseName
-
setResponseName
-
getResponseValue
public byte[] getResponseValue() -
setResponseValue
protected void setResponseValue(byte[] value) -
equals
- Overrides:
equals
in classAbstractMessage
-
hashCode
public int hashCode()Description copied from class:AbstractMessage
Returns the hash code for this object.- Specified by:
hashCode
in classAbstractMessage
- Returns:
- hash code
-
toString
- Overrides:
toString
in classAbstractMessage
-
builder
Creates a builder for this class.- Returns:
- new builder
-