Class ExtendedResponseImpl
- 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.ExtendedResponseImpl
-
- All Implemented Interfaces:
ExtendedResponse
,Message
,Response
,ResultResponse
- Direct Known Subclasses:
CancelResponseImpl
,CertGenerationResponseImpl
,EndTransactionResponseImpl
,ExtendedNoDResponse
,GracefulDisconnectResponseImpl
,GracefulShutdownResponseImpl
,NoticeOfDisconnect
,PasswordModifyResponseImpl
,StartTlsResponseImpl
,StartTransactionResponseImpl
,StoredProcedureResponseImpl
,WhoAmIResponseImpl
public class ExtendedResponseImpl extends AbstractResultResponse implements ExtendedResponse
A simple ExtendedResponse implementation.- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Constructor Description ExtendedResponseImpl(int id)
Creates an ExtendedResponse as a reply to an ExtendedRequest.ExtendedResponseImpl(int id, String responseName)
Creates an ExtendedResponse as a reply to an ExtendedRequest.ExtendedResponseImpl(String responseName)
Creates an ExtendedResponse as a reply to an ExtendedRequest.
-
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 ExtendedRequest.String
getResponseName()
Gets the OID uniquely identifying this extended response (a.k.a. its name).int
hashCode()
void
setResponseName(String responseName)
Sets the OID uniquely identifying this extended response (a.k.a. its name).String
toString()
Get a String representation of an ExtendedResponse-
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
-
ExtendedResponseImpl
public ExtendedResponseImpl(String responseName)
Creates an ExtendedResponse as a reply to an ExtendedRequest.- Parameters:
responseName
- the ExtendedResponse's name
-
ExtendedResponseImpl
public ExtendedResponseImpl(int id, String responseName)
Creates an ExtendedResponse as a reply to an ExtendedRequest.- Parameters:
id
- the session unique message idresponseName
- the ExtendedResponse's name
-
ExtendedResponseImpl
public ExtendedResponseImpl(int id)
Creates an ExtendedResponse as a reply to an ExtendedRequest.- Parameters:
id
- the session unique message id
-
-
Method Detail
-
getResponseName
public String getResponseName()
Gets the OID uniquely identifying this extended response (a.k.a. its name).- Specified by:
getResponseName
in interfaceExtendedResponse
- Returns:
- the responseName of the extended response
-
setResponseName
public void setResponseName(String responseName)
Sets the OID uniquely identifying this extended response (a.k.a. its name).- Specified by:
setResponseName
in interfaceExtendedResponse
- Parameters:
responseName
- the OID of the extended 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 ExtendedRequest.- Overrides:
equals
in classAbstractResultResponse
- Parameters:
obj
- the object to be checked for equality- Returns:
- true if the obj equals this ExtendedRequest, false otherwise
-
toString
public String toString()
Get a String representation of an ExtendedResponse- Overrides:
toString
in classAbstractResultResponse
- Returns:
- An ExtendedResponse String
-
-