Class AbstractRequest
- java.lang.Object
-
- org.apache.directory.api.ldap.model.message.AbstractMessage
-
- org.apache.directory.api.ldap.model.message.AbstractRequest
-
- Direct Known Subclasses:
AbandonRequestImpl
,AbstractAbandonableRequest
,AbstractExtendedRequest
,OpaqueExtendedRequest
,UnbindRequestImpl
public abstract class AbstractRequest extends AbstractMessage implements Request
The base request message class.- 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 two messages are equivalent.int
hashCode()
boolean
hasResponse()
Indicator flag used to determine whether or not this type of request produces a reply.-
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 class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
-
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
-
hasResponse
public boolean hasResponse()
Indicator flag used to determine whether or not this type of request produces a reply.- Specified by:
hasResponse
in interfaceRequest
- Returns:
- true if any reply is generated, false if no response is generated
-
equals
public boolean equals(Object obj)
Checks to see if two messages are equivalent. Messages equivalence does not factor in parameters accessible through the get() and put() operations, nor do they factor in the Lockable properties of the Message. Only the type, controls, and the messageId are evaluated for equality.- Overrides:
equals
in classAbstractMessage
- Parameters:
obj
- the object to compare this Message to for equality
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractMessage
- Returns:
- the instance's hash code
- See Also:
Object.hashCode()
-
-