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 class
IntermediateResponse.Builder
protected static class
IntermediateResponse.ResponseNameHandler
Parse handler implementation for the response name.protected static class
IntermediateResponse.ResponseValueHandler
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 Modifier and Type Field Description private static int
HASH_CODE_SEED
hash code seed.static int
PROTOCOL_OP
BER protocol number.private String
responseName
Response name.private byte[]
responseValue
Response value.
-
Constructor Summary
Constructors Modifier Constructor Description protected
IntermediateResponse()
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.Builder
builder()
Creates a builder for this class.boolean
equals(Object o)
String
getResponseName()
byte[]
getResponseValue()
int
hashCode()
Returns the hash code for this object.protected void
setResponseName(String name)
protected void
setResponseValue(byte[] value)
String
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 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 String getResponseName()
-
setResponseName
protected void setResponseName(String name)
-
getResponseValue
public byte[] getResponseValue()
-
setResponseValue
protected void setResponseValue(byte[] value)
-
equals
public boolean equals(Object o)
- 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
public String toString()
- Overrides:
toString
in classAbstractMessage
-
builder
public static IntermediateResponse.Builder builder()
Creates a builder for this class.- Returns:
- new builder
-
-