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

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

public class AbandonRequestImpl
extends AbstractRequest
implements AbandonRequest

Implementation of an AbandonRequest.

Version:
$Rev: 691847 $
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.
 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.AbstractRequest
hasResponse
 
Methods inherited from class org.apache.directory.shared.ldap.message.AbstractMessage
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.Request
hasResponse
 
Methods inherited from interface org.apache.directory.shared.ldap.message.Message
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 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

hashCode

public int hashCode()
Overrides:
hashCode in class AbstractRequest
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.