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
public abstract class AbstractResultResponse extends AbstractResponse implements ResultResponse
Abstract base for a ResultResponse message.- Author:
- Apache Directory Project
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Checks to see if an object is equal to this AbstractResultResponse.LdapResult
getLdapResult()
Gets the LdapResult components of this Response.int
hashCode()
String
toString()
Get a String representation of an Response-
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
-
-
-
-
Method Detail
-
getLdapResult
public LdapResult getLdapResult()
Gets the LdapResult components of this Response.- Specified by:
getLdapResult
in interfaceResultResponse
- Returns:
- the LdapResult for this Response.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractMessage
- Returns:
- the instance's hash code
- See Also:
Object.hashCode()
-
equals
public boolean equals(Object obj)
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:
equals
in classAbstractMessage
- Parameters:
obj
- the object to compare to this LdapResult containing response- Returns:
- true if they objects are equivalent false otherwise
-
-