Interface IPreProcessor

  • All Superinterfaces:
    IProcessor

    public interface IPreProcessor
    extends IProcessor
    IPreProcessor is a service that is called directly before executing any operation. This can be used to do some pre-processing like authorization or request modification before the invocation of the operation
    • Method Detail

      • preprocess

        void preprocess​(ExecutionContext executionContext)
                 throws DermisException
        preprocess allow user to verify the dermis environments like inputs, operation details, request etc. and allow user to stop executing operation by throwing DermisException with code DermisExceptionCodes.OPERATION_ACCESS_DENIED. Apart from verification user can even modify client request like changing input, adding additional information etc.
        Parameters:
        executionContext - provides details regarding operation and argument.
        Throws:
        DermisException