Class IntermediateResponseImpl
- java.lang.Object
-
- org.apache.directory.api.ldap.model.message.AbstractMessage
-
- org.apache.directory.api.ldap.model.message.AbstractResponse
-
- org.apache.directory.api.ldap.model.message.AbstractResultResponse
-
- org.apache.directory.api.ldap.model.message.IntermediateResponseImpl
-
- All Implemented Interfaces:
IntermediateResponse,Message,Response,ResultResponse
- Direct Known Subclasses:
SyncInfoValueImpl
public class IntermediateResponseImpl extends AbstractResultResponse implements IntermediateResponse
IntermediateResponse implementation- Author:
- Apache Directory Project
-
-
Field Summary
Fields Modifier and Type Field Description protected StringresponseNameResponseName for the intermediate responseprotected byte[]responseValueResponse Value for the intermediate response(package private) static longserialVersionUID-
Fields inherited from class org.apache.directory.api.ldap.model.message.AbstractResultResponse
ldapResult
-
Fields inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage
controls
-
-
Constructor Summary
Constructors Constructor Description IntermediateResponseImpl(int id)Creates a new IntermediateResponseImpl instanceIntermediateResponseImpl(int id, String responseName)Creates an IntermediateResponseImpl instanceIntermediateResponseImpl(String responseName)Creates an IntermediateResponseImpl instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Checks to see if an object equals this IntemediateResponse.StringgetResponseName()Gets the OID uniquely identifying this Intermediate response (a.k.a.byte[]getResponseValue()Gets the reponseName specific encodedinthashCode()voidsetResponseName(String oid)Sets the OID uniquely identifying this Intermediate response (a.k.a.voidsetResponseValue(byte[] value)Sets the response valueStringtoString()Get a String representation of an IntermediateResponse-
Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractResultResponse
getLdapResult
-
Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.Message
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.ResultResponse
getLdapResult
-
-
-
-
Field Detail
-
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
-
responseName
protected String responseName
ResponseName for the intermediate response
-
responseValue
protected byte[] responseValue
Response Value for the intermediate response
-
-
Constructor Detail
-
IntermediateResponseImpl
public IntermediateResponseImpl(String responseName)
Creates an IntermediateResponseImpl instance- Parameters:
responseName- the IntermediateResponse's name
-
IntermediateResponseImpl
public IntermediateResponseImpl(int id, String responseName)Creates an IntermediateResponseImpl instance- Parameters:
id- the session unique message idresponseName- the IntermediateResponse's name
-
IntermediateResponseImpl
public IntermediateResponseImpl(int id)
Creates a new IntermediateResponseImpl instance- Parameters:
id- The request ID
-
-
Method Detail
-
getResponseValue
public byte[] getResponseValue()
Gets the reponseName specific encoded- Specified by:
getResponseValuein interfaceIntermediateResponse- Returns:
- the response value
-
setResponseValue
public void setResponseValue(byte[] value)
Sets the response value- Specified by:
setResponseValuein interfaceIntermediateResponse- Parameters:
value- the response value.
-
getResponseName
public String getResponseName()
Gets the OID uniquely identifying this Intermediate response (a.k.a. its name).- Specified by:
getResponseNamein interfaceIntermediateResponse- Returns:
- the OID of the Intermediate response type.
-
setResponseName
public void setResponseName(String oid)
Sets the OID uniquely identifying this Intermediate response (a.k.a. its name).- Specified by:
setResponseNamein interfaceIntermediateResponse- Parameters:
oid- the OID of the Intermediate response type.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractResultResponse- Returns:
- the instance's hash code
- See Also:
Object.hashCode()
-
equals
public boolean equals(Object obj)
Checks to see if an object equals this IntemediateResponse.- Overrides:
equalsin classAbstractResultResponse- Parameters:
obj- the object to be checked for equality- Returns:
- true if the obj equals this IntemediateResponse, false otherwise
-
toString
public String toString()
Get a String representation of an IntermediateResponse- Overrides:
toStringin classAbstractResultResponse- Returns:
- An IntermediateResponse String
-
-