Class AbandonRequestImpl
java.lang.Object
org.apache.directory.api.ldap.model.message.AbstractMessage
org.apache.directory.api.ldap.model.message.AbstractRequest
org.apache.directory.api.ldap.model.message.AbandonRequestImpl
- All Implemented Interfaces:
AbandonRequest, Message, Request
Implementation of an AbandonRequest message.
- Author:
- Apache Directory Project
-
Field Summary
Fields inherited from class AbstractMessage
controls -
Constructor Summary
ConstructorsConstructorDescriptionCreates an AbandonRequest implementation for an outstanding request.AbandonRequestImpl(int abdandonnedId) Creates an AbandonRequest implementation for an outstanding request. -
Method Summary
Modifier and TypeMethodDescriptionvoidabandon()RFC 2251 [Section 4.11]: Abandon, Bind, Unbind, and StartTLS operations cannot be abandoned.addAllControls(Control[] controls) Adds an array of controls to this Message.addControl(Control control) Adds a control to this Message.booleanChecks for equality first by asking the super method which should compare all but the Abandoned request's Id.intGets the id of the request operation to terminate.inthashCode()removeControl(Control control) Deletes a control removing it from this Message.setAbandoned(int abandonId) Sets the id of the request operation to terminate.setMessageId(int messageId) Sets the Message ID for this requesttoString()Return a String representing an AbandonRequestMethods inherited from class AbstractRequest
hasResponseMethods inherited from class AbstractMessage
get, getControl, getControls, getMessageId, getType, hasControl, put, toStringMethods inherited from interface Message
get, getControl, getControls, getMessageId, getType, hasControl, putMethods inherited from interface Request
hasResponse
-
Constructor Details
-
AbandonRequestImpl
public AbandonRequestImpl()Creates an AbandonRequest implementation for an outstanding request. -
AbandonRequestImpl
public AbandonRequestImpl(int abdandonnedId) Creates an AbandonRequest implementation for an outstanding request.- Parameters:
abdandonnedId- the sequence identifier of the AbandonRequest message.
-
-
Method Details
-
getAbandoned
public int getAbandoned()Gets the id of the request operation to terminate.- Specified by:
getAbandonedin interfaceAbandonRequest- Returns:
- the id of the request message to abandon
-
setAbandoned
Sets the id of the request operation to terminate.- Specified by:
setAbandonedin interfaceAbandonRequest- Parameters:
abandonId- the sequence id of the request message to abandon- Returns:
- The AbandonRequest instance
-
abandon
public void abandon()RFC 2251 [Section 4.11]: Abandon, Bind, Unbind, and StartTLS operations cannot be abandoned. -
setMessageId
Sets the Message ID for this request- Specified by:
setMessageIdin interfaceMessage- Overrides:
setMessageIdin classAbstractMessage- Parameters:
messageId- The message Id- Returns:
- A Message reference
-
addControl
Adds a control to this Message.- Specified by:
addControlin interfaceMessage- Overrides:
addControlin classAbstractMessage- Parameters:
control- the control to add.- Returns:
- A Message reference
-
addAllControls
Adds an array of controls to this Message.- Specified by:
addAllControlsin interfaceMessage- Overrides:
addAllControlsin classAbstractMessage- Parameters:
controls- the controls to add.- Returns:
- A Message reference
-
removeControl
Deletes a control removing it from this Message.- Specified by:
removeControlin interfaceMessage- Overrides:
removeControlin classAbstractMessage- Parameters:
control- the control to remove.- Returns:
- A Message reference
-
equals
Checks for equality first by asking the super method which should compare all but the Abandoned request's Id. It then compares this to determine equality.- Overrides:
equalsin classAbstractRequest- Parameters:
obj- the object to test for equality to this AbandonRequest- Returns:
- true if the obj equals this request, false otherwise
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractRequest- Returns:
- the instance's hash code
- See Also:
-
toString
-