Package org.ldaptive.extended
Class IntermediateResponse
- java.lang.Object
-
- org.ldaptive.AbstractMessage
-
- org.ldaptive.extended.IntermediateResponse
-
- All Implemented Interfaces:
Message
- Direct Known Subclasses:
SyncInfoMessage
public class IntermediateResponse extends AbstractMessage
LDAP extended response defined as:IntermediateResponse ::= [APPLICATION 25] SEQUENCE { responseName [0] LDAPOID OPTIONAL, responseValue [1] OCTET STRING OPTIONAL }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIntermediateResponse.Builderprotected static classIntermediateResponse.ResponseNameHandlerParse handler implementation for the response name.protected static classIntermediateResponse.ResponseValueHandlerParse 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 Modifier and Type Field Description private static intHASH_CODE_SEEDhash code seed.static intPROTOCOL_OPBER protocol number.private StringresponseNameResponse name.private byte[]responseValueResponse value.
-
Constructor Summary
Constructors Modifier Constructor Description protectedIntermediateResponse()Default constructor.IntermediateResponse(DERBuffer buffer)Creates a new intermediate response.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IntermediateResponse.Builderbuilder()Creates a builder for this class.booleanequals(Object o)StringgetResponseName()byte[]getResponseValue()inthashCode()Returns the hash code for this object.protected voidsetResponseName(String name)protected voidsetResponseValue(byte[] value)StringtoString()-
Methods inherited from class org.ldaptive.AbstractMessage
addControls, copyValues, equalsMessage, 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 Detail
-
PROTOCOL_OP
public static final int PROTOCOL_OP
BER protocol number.- See Also:
- Constant Field Values
-
HASH_CODE_SEED
private static final int HASH_CODE_SEED
hash code seed.- See Also:
- Constant Field Values
-
responseName
private String responseName
Response name.
-
responseValue
private byte[] responseValue
Response value.
-
-
Constructor Detail
-
IntermediateResponse
protected IntermediateResponse()
Default constructor.
-
IntermediateResponse
public IntermediateResponse(DERBuffer buffer)
Creates a new intermediate response.- Parameters:
buffer- to decode
-
-
Method Detail
-
getResponseName
public final String getResponseName()
-
setResponseName
protected final void setResponseName(String name)
-
getResponseValue
public final byte[] getResponseValue()
-
setResponseValue
protected final void setResponseValue(byte[] value)
-
equals
public boolean equals(Object o)
- 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
public String toString()
- Overrides:
toStringin classAbstractMessage
-
builder
public static IntermediateResponse.Builder builder()
Creates a builder for this class.- Returns:
- new builder
-
-