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, UnbindRequestImpl
The base request message class.
- Author:
- Apache Directory Project
-
Field Summary
Fields inherited from class AbstractMessage
controls -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractRequest(int id, MessageTypeEnum type, boolean hasResponse) Subclasses must provide these parameters via a super constructor call. -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks to see if two messages are equivalent.inthashCode()booleanIndicator flag used to determine whether or not this type of request produces a reply.Methods inherited from class AbstractMessage
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId, toStringMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Message
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId
-
Constructor Details
-
AbstractRequest
Subclasses must provide these parameters via a super constructor call.- Parameters:
id- the sequential message identifiertype- the request type enumhasResponse- flag indicating if this request generates a response
-
-
Method Details
-
hasResponse
public boolean hasResponse()Indicator flag used to determine whether or not this type of request produces a reply.- Specified by:
hasResponsein interfaceRequest- Returns:
- true if any reply is generated, false if no response is generated
-
equals
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:
equalsin classAbstractMessage- Parameters:
obj- the object to compare this Message to for equality
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractMessage- Returns:
- the instance's hash code
- See Also:
-