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
public class IntermediateResponseImpl
extends AbstractResultResponse
implements IntermediateResponse
IntermediateResponse implementation
- Author:
- Apache Directory Project
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringResponseName for the intermediate responseprotected byte[]Response Value for the intermediate responseFields inherited from class AbstractResultResponse
ldapResultFields inherited from class AbstractMessage
controls -
Constructor Summary
ConstructorsConstructorDescriptionIntermediateResponseImpl(int id) Creates a new IntermediateResponseImpl instanceIntermediateResponseImpl(int id, String responseName) Creates an IntermediateResponseImpl instanceIntermediateResponseImpl(String responseName) Creates an IntermediateResponseImpl instance -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks to see if an object equals this IntemediateResponse.Gets the OID uniquely identifying this Intermediate response (a.k.a. its name).byte[]Gets the reponseName specific encodedinthashCode()voidsetResponseName(String oid) Sets the OID uniquely identifying this Intermediate response (a.k.a. its name).voidsetResponseValue(byte[] value) Sets the response valuetoString()Get a String representation of an IntermediateResponseMethods inherited from class AbstractResultResponse
getLdapResultMethods inherited from class AbstractMessage
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId, toStringMethods inherited from interface Message
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageIdMethods inherited from interface ResultResponse
getLdapResult
-
Field Details
-
responseName
ResponseName for the intermediate response -
responseValue
protected byte[] responseValueResponse Value for the intermediate response
-
-
Constructor Details
-
IntermediateResponseImpl
Creates an IntermediateResponseImpl instance- Parameters:
responseName- the IntermediateResponse's name
-
IntermediateResponseImpl
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 Details
-
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
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
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:
-
equals
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
Get a String representation of an IntermediateResponse- Overrides:
toStringin classAbstractResultResponse- Returns:
- An IntermediateResponse String
-