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

java.lang.Object
  extended by org.apache.directory.shared.ldap.message.internal.InternalAbstractMessage
      extended by org.apache.directory.shared.ldap.message.internal.InternalAbstractRequest
          extended by org.apache.directory.shared.ldap.message.AbandonRequestImpl
All Implemented Interfaces:
InternalAbandonRequest, InternalMessage, InternalRequest

public class AbandonRequestImpl
extends InternalAbstractRequest
implements InternalAbandonRequest

Implementation of an AbandonRequest.

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

Field Summary
 
Fields inherited from interface org.apache.directory.shared.ldap.message.internal.InternalAbandonRequest
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.
 int hashCode()
           
 void setAbandoned(int abandonId)
          Sets the id of the request operation to terminate.
 
Methods inherited from class org.apache.directory.shared.ldap.message.internal.InternalAbstractRequest
hasResponse
 
Methods inherited from class org.apache.directory.shared.ldap.message.internal.InternalAbstractMessage
add, addAll, get, getControls, getMessageId, getType, hasControl, put, remove
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.directory.shared.ldap.message.internal.InternalRequest
hasResponse
 
Methods inherited from interface org.apache.directory.shared.ldap.message.internal.InternalMessage
add, addAll, get, getControls, getMessageId, getType, hasControl, 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 InternalAbandonRequest
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 InternalAbandonRequest
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 InternalAbstractMessage
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:
hashCode in class InternalAbstractRequest
Returns:
the instance's hash code
See Also:
Object.hashCode()

abandon

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



Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.