Interface PrivilegedAction
-
public interface PrivilegedActionIn order to write a PrivilegedActionExtension this class needs to be implemented
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleandoesHandle(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.StringgetExtensionName()Returns the extension nameintgetPriority()Returns the priority of the extension in the frameworkbooleanisDisabled()Checks if extension is disabledbooleanskipLowerPriorityExtensions()Extensions can skip lower priority extensions if supported by MessageReceiverbooleanskipServiceInvocation()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 PrivilegedActionExceptionThe 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
-
-