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 }
- Author:
- Middleware Services
-
-
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 static int
PROTOCOL_OP
BER protocol number.
-
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(java.lang.Object o)
java.lang.String
getResponseName()
byte[]
getResponseValue()
protected ParseHandler
getResponseValueParseHandler()
Returns the parse handler for the response value.int
hashCode()
Returns the hash code for this object.protected void
setResponseName(java.lang.String name)
protected void
setResponseValue(byte[] value)
java.lang.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
-
-
Constructor Detail
-
IntermediateResponse
protected IntermediateResponse()
Default constructor.
-
IntermediateResponse
public IntermediateResponse(DERBuffer buffer)
Creates a new intermediate response.- Parameters:
buffer
- to decode
-
-
Method Detail
-
getResponseValueParseHandler
protected ParseHandler getResponseValueParseHandler()
Returns the parse handler for the response value.- Returns:
- parse handler
-
getResponseName
public java.lang.String getResponseName()
-
setResponseName
protected void setResponseName(java.lang.String name)
-
getResponseValue
public byte[] getResponseValue()
-
setResponseValue
protected void setResponseValue(byte[] value)
-
equals
public boolean equals(java.lang.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 java.lang.String toString()
- Overrides:
toString
in classAbstractMessage
-
builder
public static IntermediateResponse.Builder builder()
Creates a builder for this class.- Returns:
- new builder
-
-