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

java.lang.Object
  extended by org.apache.directory.shared.ldap.message.AbstractMessage
      extended by org.apache.directory.shared.ldap.message.AbstractRequest
All Implemented Interfaces:
Message, Request
Direct Known Subclasses:
AbandonRequestImpl, AbstractAbandonableRequest, BindRequestImpl, ExtendedRequestImpl, UnbindRequestImpl

public class AbstractRequest
extends AbstractMessage
implements Request

The base request message class.

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

Constructor Summary
protected AbstractRequest(int id, MessageTypeEnum type, boolean hasResponse)
          Subclasses must provide these parameters via a super constructor call.
 
Method Summary
 int hashCode()
           
 boolean hasResponse()
          Indicator flag used to determine whether or not this type of request produces a reply.
 
Methods inherited from class org.apache.directory.shared.ldap.message.AbstractMessage
add, addAll, equals, 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.Message
add, addAll, get, getControls, getMessageId, getType, hasControl, put, remove
 

Constructor Detail

AbstractRequest

protected AbstractRequest(int id,
                          MessageTypeEnum type,
                          boolean hasResponse)
Subclasses must provide these parameters via a super constructor call.

Parameters:
id - the sequential message identifier
type - the request type enum
hasResponse - flag indicating if this request generates a response
Method Detail

hasResponse

public boolean hasResponse()
Indicator flag used to determine whether or not this type of request produces a reply.

Specified by:
hasResponse in interface Request
Returns:
true if any reply is generated, false if no response is generated

hashCode

public int hashCode()
Overrides:
hashCode in class AbstractMessage
Returns:
the instance's hash code
See Also:
Object.hashCode()


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