org.apache.directory.shared.ldap.message
Class AbandonRequestImpl

java.lang.Object
  extended byorg.apache.directory.shared.ldap.message.AbstractMessage
      extended byorg.apache.directory.shared.ldap.message.AbstractRequest
          extended byorg.apache.directory.shared.ldap.message.AbandonRequestImpl
All Implemented Interfaces:
AbandonRequest, Message, Request

public class AbandonRequestImpl
extends AbstractRequest
implements AbandonRequest

Lockable implementation of an AbandonRequest.

Version:
$Rev: 379008 $
Author:
Apache Directory Project

Field Summary
 
Fields inherited from interface org.apache.directory.shared.ldap.message.AbandonRequest
TYPE
 
Constructor Summary
AbandonRequestImpl(int id)
          Creates an AbandonRequest implementation for an outstanding request.
 
Method Summary
 void abandon()
          RFC 2251 [Section 4.11]: Abandon, Bind, Unbind, and StartTLS operations cannot be abandoned.
 boolean equals(java.lang.Object obj)
          Checks for equality first by asking the super method which should compare all but the Abandoned request's Id.
 int getAbandoned()
          Gets the id of the request operation to terminate.
 void setAbandoned(int abandonId)
          Sets the id of the request operation to terminate.
 
Methods inherited from class org.apache.directory.shared.ldap.message.AbstractRequest
hasResponse
 
Methods inherited from class org.apache.directory.shared.ldap.message.AbstractMessage
add, get, getControls, getMessageId, getType, put, remove
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.directory.shared.ldap.message.Request
hasResponse
 
Methods inherited from interface org.apache.directory.shared.ldap.message.Message
add, get, getControls, getMessageId, getType, put, remove
 

Constructor Detail

AbandonRequestImpl

public AbandonRequestImpl(int id)
Creates an AbandonRequest implementation for an outstanding request.

Parameters:
id - the sequence identifier of the AbandonRequest message.
Method Detail

getAbandoned

public int getAbandoned()
Gets the id of the request operation to terminate.

Specified by:
getAbandoned in interface AbandonRequest
Returns:
the id of the request message to abandon

setAbandoned

public void setAbandoned(int abandonId)
Sets the id of the request operation to terminate.

Specified by:
setAbandoned in interface AbandonRequest
Parameters:
abandonId - the sequence id of the request message to abandon

equals

public boolean equals(java.lang.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:
equals in class AbstractMessage
Parameters:
obj - the object to test for equality to this AbandonRequest
Returns:
true if the obj equals this request false otherwise

abandon

public void abandon()
RFC 2251 [Section 4.11]: Abandon, Bind, Unbind, and StartTLS operations cannot be abandoned.



Copyright © 2003-2006 . All Rights Reserved.