org.apache.directory.shared.ldap.message.internal
Class InternalAbstractResultResponse

java.lang.Object
  extended by org.apache.directory.shared.ldap.message.internal.InternalAbstractMessage
      extended by org.apache.directory.shared.ldap.message.internal.InternalAbstractResponse
          extended by org.apache.directory.shared.ldap.message.internal.InternalAbstractResultResponse
All Implemented Interfaces:
InternalMessage, InternalResponse, InternalResultResponse
Direct Known Subclasses:
AddResponseImpl, BindResponseImpl, CompareResponseImpl, DeleteResponseImpl, ExtendedResponseImpl, IntermediateResponseImpl, ModifyDnResponseImpl, ModifyResponseImpl, SearchResponseDoneImpl

public abstract class InternalAbstractResultResponse
extends InternalAbstractResponse
implements InternalResultResponse

Abstract base for a Lockable ResultResponse message.

Version:
$Revision: 910150 $
Author:
Apache Directory Project

Constructor Summary
protected InternalAbstractResultResponse(int id, MessageTypeEnum type)
          Allows subclasses based on the abstract type to create a response to a request.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Checks to see if an object is equal to this AbstractResultResponse.
 InternalLdapResult getLdapResult()
          Gets the LdapResult components of this Response.
 java.lang.String toString()
          Get a String representation of an Response
 
Methods inherited from class org.apache.directory.shared.ldap.message.internal.InternalAbstractMessage
add, addAll, get, getControls, getMessageId, getType, hasControl, hashCode, put, remove
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.directory.shared.ldap.message.internal.InternalMessage
add, addAll, get, getControls, getMessageId, getType, hasControl, put, remove
 

Constructor Detail

InternalAbstractResultResponse

protected InternalAbstractResultResponse(int id,
                                         MessageTypeEnum type)
Allows subclasses based on the abstract type to create a response to a request.

Parameters:
id - the response eliciting this Request
type - the message type of the response
Method Detail

getLdapResult

public InternalLdapResult getLdapResult()
Gets the LdapResult components of this Response.

Specified by:
getLdapResult in interface InternalResultResponse
Returns:
the LdapResult for this Response.

equals

public boolean equals(java.lang.Object obj)
Checks to see if an object is equal to this AbstractResultResponse. First the object is checked to see if it is this AbstractResultResponse instance if so it returns true. Next it checks if the super method returns false and if it does false is returned. It then checks if the LDAPResult's are equal. If not false is returned and if they match true is returned.

Overrides:
equals in class InternalAbstractMessage
Parameters:
obj - the object to compare to this LdapResult containing response
Returns:
true if they objects are equivalent false otherwise

toString

public java.lang.String toString()
Get a String representation of an Response

Overrides:
toString in class java.lang.Object
Returns:
An Response String


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