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
public class AbandonRequestImpl extends AbstractRequest implements AbandonRequest
Implementation of an AbandonRequest message.- Author:
- Apache Directory Project
-
-
Field Summary
-
Fields inherited from class org.apache.directory.api.ldap.model.message.AbstractRequest
serialVersionUID
-
Fields inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage
controls
-
-
Constructor Summary
Constructors Constructor Description AbandonRequestImpl()Creates an AbandonRequest implementation for an outstanding request.AbandonRequestImpl(int abdandonnedId)Creates an AbandonRequest implementation for an outstanding request.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidabandon()RFC 2251 [Section 4.11]: Abandon, Bind, Unbind, and StartTLS operations cannot be abandoned.AbandonRequestaddAllControls(Control[] controls)Adds an array of controls to this Message.AbandonRequestaddControl(Control control)Adds a control to this Message.booleanequals(Object obj)Checks for equality first by asking the super method which should compare all but the Abandoned request's Id.intgetAbandoned()Gets the id of the request operation to terminate.inthashCode()AbandonRequestremoveControl(Control control)Deletes a control removing it from this Message.AbandonRequestsetAbandoned(int abandonId)Sets the id of the request operation to terminate.AbandonRequestsetMessageId(int messageId)Sets the Message ID for this requestStringtoString()Return a String representing an AbandonRequest-
Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractRequest
hasResponse
-
Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage
get, getControl, getControls, getMessageId, getType, hasControl, put, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.Message
get, getControl, getControls, getMessageId, getType, hasControl, put
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.Request
hasResponse
-
-
-
-
Constructor Detail
-
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 Detail
-
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
public AbandonRequest setAbandoned(int abandonId)
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
public AbandonRequest setMessageId(int messageId)
Sets the Message ID for this request- Specified by:
setMessageIdin interfaceMessage- Overrides:
setMessageIdin classAbstractMessage- Parameters:
messageId- The message Id- Returns:
- A Message reference
-
addControl
public AbandonRequest addControl(Control control)
Adds a control to this Message.- Specified by:
addControlin interfaceMessage- Overrides:
addControlin classAbstractMessage- Parameters:
control- the control to add.- Returns:
- A Message reference
-
addAllControls
public AbandonRequest addAllControls(Control[] controls)
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
public AbandonRequest removeControl(Control control)
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
public boolean equals(Object obj)
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:
Object.hashCode()
-
-