Class ExtendedResponse

All Implemented Interfaces:
Message, Result
Direct Known Subclasses:
UnsolicitedNotification

public class ExtendedResponse extends AbstractResult
LDAP extended response defined as:
   ExtendedResponse ::= [APPLICATION 24] SEQUENCE {
     COMPONENTS OF LDAPResult,
     responseName     [10] LDAPOID OPTIONAL,
     responseValue    [11] OCTET STRING OPTIONAL }
 
  • Field Details

    • PROTOCOL_OP

      public static final int PROTOCOL_OP
      BER protocol number.
      See Also:
    • HASH_CODE_SEED

      private static final int HASH_CODE_SEED
      hash code seed.
      See Also:
    • RESULT_CODE_PATH

      private static final DERPath RESULT_CODE_PATH
      DER path to result code.
    • MATCHED_DN_PATH

      private static final DERPath MATCHED_DN_PATH
      DER path to matched DN.
    • DIAGNOSTIC_MESSAGE_PATH

      private static final DERPath DIAGNOSTIC_MESSAGE_PATH
      DER path to diagnostic message.
    • REFERRAL_PATH

      private static final DERPath REFERRAL_PATH
      DER path to referral.
    • NAME_PATH

      private static final DERPath NAME_PATH
      DER path to name.
    • VALUE_PATH

      private static final DERPath VALUE_PATH
      DER path to value.
    • responseName

      private String responseName
      Response name.
    • responseValue

      private byte[] responseValue
      Response value.
  • Constructor Details

    • ExtendedResponse

      protected ExtendedResponse()
      Default constructor.
    • ExtendedResponse

      public ExtendedResponse(DERBuffer buffer)
      Creates a new extended response.
      Parameters:
      buffer - to decode
  • Method Details

    • getResponseName

      public String getResponseName()
    • setResponseName

      public void setResponseName(String name)
    • getResponseValue

      public byte[] getResponseValue()
    • setResponseValue

      public void setResponseValue(byte[] value)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class AbstractResult
    • hashCode

      public int hashCode()
      Description copied from class: AbstractMessage
      Returns the hash code for this object.
      Specified by:
      hashCode in class AbstractMessage
      Returns:
      hash code
    • toString

      public String toString()
      Overrides:
      toString in class AbstractResult
    • builder

      public static ExtendedResponse.Builder builder()
      Creates a builder for this class.
      Returns:
      new builder