Class AbstractResultResponse
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
- All Implemented Interfaces:
Message, Response, ResultResponse
- Direct Known Subclasses:
AbstractExtendedResponse, AddResponseImpl, BindResponseImpl, CompareResponseImpl, DeleteResponseImpl, IntermediateResponseImpl, ModifyDnResponseImpl, ModifyResponseImpl, SearchResultDoneImpl
Abstract base for a ResultResponse message.
- Author:
- Apache Directory Project
-
Field Summary
FieldsFields inherited from class AbstractMessage
controls -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractResultResponse(int id, MessageTypeEnum type) Allows subclasses based on the abstract type to create a response to a request. -
Method Summary
Methods 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, setMessageId
-
Field Details
-
ldapResult
Response result components
-
-
Constructor Details
-
AbstractResultResponse
Allows subclasses based on the abstract type to create a response to a request.- Parameters:
id- the response eliciting this Requesttype- the message type of the response
-
-
Method Details
-
getLdapResult
Gets the LdapResult components of this Response.- Specified by:
getLdapResultin interfaceResultResponse- Returns:
- the LdapResult for this Response.
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractMessage- Returns:
- the instance's hash code
- See Also:
-
equals
Checks to see if an object is equal to this AbstractResultResponse. First the object is checked to see if it is this AbstractResultResponse instance if so it returns true. Next it checks if the super method returns false and if it does false is returned. It then checks if the LDAPResult's are equal. If not false is returned and if they match true is returned.- Overrides:
equalsin classAbstractMessage- Parameters:
obj- the object to compare to this LdapResult containing response- Returns:
- true if they objects are equivalent false otherwise
-
toString
-