Interface ExtendedOperationFactory

    • Method Detail

      • getOid

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

        ExtendedRequest decorate​(ExtendedRequest modelRequest)
        Decorates a non-decorated request.
        Parameters:
        modelRequest - the non decorated model request
        Returns:
        the decorated model request
      • 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
      • decorate

        ExtendedResponse decorate​(ExtendedResponse decoratedMessage)
        Decorates an ExtendedResponse which may or may not be of the expected type. The factory implementor must check and handle appropriately.
        Parameters:
        decoratedMessage - the message to be decorated.
        Returns:
        The decorated message