Interface PrivilegedAction
public interface PrivilegedAction
In order to write a PrivilegedActionExtension this class needs to be implemented
-
Method Summary
Modifier and TypeMethodDescriptionbooleandoesHandle(org.apache.axis2.context.MessageContext msgContext) Checks if this extension should be executed for the Axis2 operation in the MessageContextvoidexecute(org.apache.axis2.context.MessageContext inMessageContext, org.apache.axis2.context.MessageContext outMessageContext) The extension logic must be implemented here.Returns the extension nameintReturns the priority of the extension in the frameworkbooleanChecks if extension is disabledbooleanExtensions can skip lower priority extensions if supported by MessageReceiverbooleanExtensions can skip service invocation if supported by MessageReceiver
-
Method Details
-
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 MessageContextoutMessageContext- 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
-