Class AbstractExtendedResponse
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.AbstractExtendedResponse
- All Implemented Interfaces:
ExtendedResponse, Message, Response, ResultResponse
- Direct Known Subclasses:
ExtendedNoDResponse, NoticeOfDisconnect, OpaqueExtendedResponse
public abstract class AbstractExtendedResponse
extends AbstractResultResponse
implements ExtendedResponse
An Abstract ExtendedResponse implementation.
- Author:
- Apache Directory Project
-
Field Summary
FieldsFields inherited from class AbstractResultResponse
ldapResultFields inherited from class AbstractMessage
controls -
Constructor Summary
ConstructorsConstructorDescriptionAbstractExtendedResponse(int id) Creates an ExtendedResponse as a reply to an ExtendedRequest.AbstractExtendedResponse(int id, String responseName) Creates an ExtendedResponse as a reply to an ExtendedRequest.AbstractExtendedResponse(String responseName) Creates an ExtendedResponse as a reply to an ExtendedRequest. -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks to see if an object equals this ExtendedRequest.Gets the OID uniquely identifying this extended response (a.k.a. its name).inthashCode()voidsetResponseName(String responseName) Sets the OID uniquely identifying this extended response (a.k.a. its name).toString()Get a String representation of an ExtendedResponseMethods 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
Object identifier for the extended response
-
-
Constructor Details
-
AbstractExtendedResponse
Creates an ExtendedResponse as a reply to an ExtendedRequest.- Parameters:
responseName- the ExtendedResponse's name
-
AbstractExtendedResponse
Creates an ExtendedResponse as a reply to an ExtendedRequest.- Parameters:
id- the session unique message idresponseName- the ExtendedResponse's name
-
AbstractExtendedResponse
public AbstractExtendedResponse(int id) Creates an ExtendedResponse as a reply to an ExtendedRequest.- Parameters:
id- the session unique message id
-
-
Method Details
-
getResponseName
Gets the OID uniquely identifying this extended response (a.k.a. its name).- Specified by:
getResponseNamein interfaceExtendedResponse- Returns:
- the responseName of the extended response
-
setResponseName
Sets the OID uniquely identifying this extended response (a.k.a. its name).- Specified by:
setResponseNamein interfaceExtendedResponse- Parameters:
responseName- the OID of the extended 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 ExtendedRequest.- Overrides:
equalsin classAbstractResultResponse- Parameters:
obj- the object to be checked for equality- Returns:
- true if the obj equals this ExtendedRequest, false otherwise
-
toString
Get a String representation of an ExtendedResponse- Overrides:
toStringin classAbstractResultResponse- Returns:
- An ExtendedResponse String
-