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
-
-
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 boolean
equals(Object obj)
Checks to see if an object equals this IntemediateResponse.String
getResponseName()
Gets the OID uniquely identifying this Intermediate response (a.k.a. its name).byte[]
getResponseValue()
Gets the reponseName specific encodedint
hashCode()
void
setResponseName(String oid)
Sets the OID uniquely identifying this Intermediate response (a.k.a. its name).void
setResponseValue(byte[] value)
Sets the response valueString
toString()
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 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
-
-
-
-
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:
getResponseValue
in interfaceIntermediateResponse
- Returns:
- the response value
-
setResponseValue
public void setResponseValue(byte[] value)
Sets the response value- Specified by:
setResponseValue
in 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:
getResponseName
in 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:
setResponseName
in interfaceIntermediateResponse
- Parameters:
oid
- the OID of the Intermediate response type.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in 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:
equals
in 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:
toString
in classAbstractResultResponse
- Returns:
- An IntermediateResponse String
-
-