Class AbstractExtendedResponse

All Implemented Interfaces:
ExtendedResponse, Message, Response, ResultResponse
Direct Known Subclasses:
ExtendedNoDResponse, NoticeOfDisconnect, OpaqueExtendedResponse

public abstract class AbstractExtendedResponse extends AbstractResultResponse implements ExtendedResponse
An Abstract ExtendedResponse implementation.
Author:
Apache Directory Project
  • Field Details

    • responseName

      protected String responseName
      Object identifier for the extended response
  • Constructor Details

    • AbstractExtendedResponse

      public AbstractExtendedResponse(String responseName)
      Creates an ExtendedResponse as a reply to an ExtendedRequest.
      Parameters:
      responseName - the ExtendedResponse's name
    • AbstractExtendedResponse

      public AbstractExtendedResponse(int id, String responseName)
      Creates an ExtendedResponse as a reply to an ExtendedRequest.
      Parameters:
      id - the session unique message id
      responseName - the ExtendedResponse's name
    • AbstractExtendedResponse

      public AbstractExtendedResponse(int id)
      Creates an ExtendedResponse as a reply to an ExtendedRequest.
      Parameters:
      id - the session unique message id
  • Method Details

    • getResponseName

      public String getResponseName()
      Gets the OID uniquely identifying this extended response (a.k.a. its name).
      Specified by:
      getResponseName in interface ExtendedResponse
      Returns:
      the responseName of the extended response
    • setResponseName

      public void setResponseName(String responseName)
      Sets the OID uniquely identifying this extended response (a.k.a. its name).
      Specified by:
      setResponseName in interface ExtendedResponse
      Parameters:
      responseName - the OID of the extended response type.
    • hashCode

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

      public boolean equals(Object obj)
      Checks to see if an object equals this ExtendedRequest.
      Overrides:
      equals in class AbstractResultResponse
      Parameters:
      obj - the object to be checked for equality
      Returns:
      true if the obj equals this ExtendedRequest, false otherwise
    • toString

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