Interface PrivilegedAction


  • public interface PrivilegedAction
    In order to write a PrivilegedActionExtension this class needs to be implemented
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean doesHandle​(org.apache.axis2.context.MessageContext msgContext)
      Checks if this extension should be executed for the Axis2 operation in the MessageContext
      void execute​(org.apache.axis2.context.MessageContext inMessageContext, org.apache.axis2.context.MessageContext outMessageContext)
      The extension logic must be implemented here.
      String getExtensionName()
      Returns the extension name
      int getPriority()
      Returns the priority of the extension in the framework
      boolean isDisabled()
      Checks if extension is disabled
      boolean skipLowerPriorityExtensions()
      Extensions can skip lower priority extensions if supported by MessageReceiver
      boolean skipServiceInvocation()
      Extensions can skip service invocation if supported by MessageReceiver
    • Method Detail

      • execute

        void execute​(org.apache.axis2.context.MessageContext inMessageContext,
                     org.apache.axis2.context.MessageContext outMessageContext)
              throws PrivilegedActionException
        The extension logic must be implemented here.
        Parameters:
        inMessageContext - Axis2 MessageContext
        outMessageContext - Axis2 MessageContext
        Throws:
        PrivilegedActionException
      • getPriority

        int getPriority()
        Returns the priority of the extension in the framework
        Returns:
        priority
      • doesHandle

        boolean doesHandle​(org.apache.axis2.context.MessageContext msgContext)
        Checks if this extension should be executed for the Axis2 operation in the MessageContext
        Parameters:
        msgContext -
        Returns:
        true - This extension should be invoked for this operation false - This extension should not be invoked for this operation
      • isDisabled

        boolean isDisabled()
        Checks if extension is disabled
        Returns:
        true - extension is disabled false - extension is enabled
      • getExtensionName

        String getExtensionName()
        Returns the extension name
        Returns:
        extension name
      • skipServiceInvocation

        boolean skipServiceInvocation()
        Extensions can skip service invocation if supported by MessageReceiver
        Returns:
        true - skip service invocation false - continue with service invocation
      • skipLowerPriorityExtensions

        boolean skipLowerPriorityExtensions()
        Extensions can skip lower priority extensions if supported by MessageReceiver
        Returns:
        true - skip lower priority extensions false - continue with lower priority extensions