Class AbstractResultResponse

All Implemented Interfaces:
Message, Response, ResultResponse
Direct Known Subclasses:
AbstractExtendedResponse, AddResponseImpl, BindResponseImpl, CompareResponseImpl, DeleteResponseImpl, IntermediateResponseImpl, ModifyDnResponseImpl, ModifyResponseImpl, SearchResultDoneImpl

public abstract class AbstractResultResponse extends AbstractResponse implements ResultResponse
Abstract base for a ResultResponse message.
Author:
Apache Directory Project
  • Field Details

    • ldapResult

      protected LdapResult ldapResult
      Response result components
  • Constructor Details

    • AbstractResultResponse

      protected AbstractResultResponse(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 Details

    • getLdapResult

      public LdapResult getLdapResult()
      Gets the LdapResult components of this Response.
      Specified by:
      getLdapResult in interface ResultResponse
      Returns:
      the LdapResult for this Response.
    • hashCode

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

      public boolean equals(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 AbstractMessage
      Parameters:
      obj - the object to compare to this LdapResult containing response
      Returns:
      true if they objects are equivalent false otherwise
    • toString

      public String toString()
      Get a String representation of an Response
      Overrides:
      toString in class Object
      Returns:
      An Response String