Interface ExtendedOperationFactory

    • Method Detail

      • getOid

        String getOid()
        Gets the OID of the extended requests this factory generates.
        Returns:
        the extended request OID
      • newResponse

        ExtendedResponse newResponse​(byte[] encodedValue)
                              throws DecoderException
        Creates a new ExtendedResponse, for the ExtendedRequest with a specific encoded value.
        Parameters:
        encodedValue - The encoded value for the ExtendedResponse instance.
        Returns:
        The new ExtendedResponse.
        Throws:
        DecoderException - If we can't decode the response
      • encodeValue

        void encodeValue​(Asn1Buffer buffer,
                         ExtendedRequest extendedRequest)
        Encode the value part of the extended request operation.
        Parameters:
        buffer - The buffer into which to put the encoded value
        extendedRequest - The ExtendedRequest Operation to encode
      • decodeValue

        void decodeValue​(ExtendedRequest extendedRequest,
                         byte[] requestValue)
                  throws DecoderException
        Decode the value part of the extended request operation.
        Parameters:
        extendedRequest - The ExtendedRequest Operation to feed
        requestValue - The request value to decode
        Throws:
        DecoderException - If the value cannot be decoded
      • encodeValue

        void encodeValue​(Asn1Buffer buffer,
                         ExtendedResponse extendedResponse)
        Encode the value part of the extended response operation.
        Parameters:
        buffer - The buffer into which to put the encoded value
        extendedResponse - The ExtendedResponse Operation to encode
      • decodeValue

        void decodeValue​(ExtendedResponse extendedResponse,
                         byte[] responseValue)
                  throws DecoderException
        Decode the value part of the extended response operation.
        Parameters:
        extendedResponse - The ExtendedResponse Operation to feed
        responseValue - The response value to decode
        Throws:
        DecoderException - If the value cannot be decoded