Package com.microstrategy.web.controller
Class TaskProcessor
- java.lang.Object
-
- com.microstrategy.web.controller.TaskProcessor
-
public class TaskProcessor extends java.lang.Object- Since:
- MicroStrategy Web 8.1.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTaskProcessor.TaskInvokerEnumeration that indicates the task Invoker in the incoming request.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPARAM_NAME_SESSION_STATEThe name of the task parameter that identifies the IServer session state.static java.lang.StringPARAM_NAME_TASK_IDThe URL parameter that specifies the Task to invoke.
-
Constructor Summary
Constructors Constructor Description TaskProcessor()Creates a new TaskProcessor object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetConfigurationError()Returns the configuration error, if any, associated with the initialization of this task processor instance.TaskFactorygetRootFactory()Return the root levelTaskFactoryassociated with this configuration.protected TaskgetTaskInstance(java.lang.String taskId, ContainerServices containerServices)voidinitializeApp(ContainerServices cs)Initialize the application.protected voidinitializeTaskFactory(ContainerServices cs)protected java.lang.StringlocateTaskId(RequestKeys requestKeys)booleanprocessRequest(TaskProcessorRequestState tpReqState)Process the incoming request.voidterminateApp()Terminate the application.
-
-
-
Field Detail
-
PARAM_NAME_TASK_ID
public static final java.lang.String PARAM_NAME_TASK_ID
The URL parameter that specifies the Task to invoke.- See Also:
- Constant Field Values
-
PARAM_NAME_SESSION_STATE
public static final java.lang.String PARAM_NAME_SESSION_STATE
The name of the task parameter that identifies the IServer session state.- See Also:
- Constant Field Values
-
-
Method Detail
-
initializeApp
public void initializeApp(ContainerServices cs)
Initialize the application.- Parameters:
cs- TheContainerServicesobject to use to complete the initialization.
-
processRequest
public boolean processRequest(TaskProcessorRequestState tpReqState)
Process the incoming request.- Parameters:
tpReqState- TheTaskProcessorRequestStateobject that holds per-request data.- Returns:
- True, if the request was handled; otherwise, false.
-
terminateApp
public void terminateApp()
Terminate the application.
-
getRootFactory
public TaskFactory getRootFactory()
Return the root levelTaskFactoryassociated with this configuration.- Returns:
- A TaskFactory object instance that corresponds to the root task factory.
-
getConfigurationError
public java.lang.String getConfigurationError()
Returns the configuration error, if any, associated with the initialization of this task processor instance.- Returns:
- A String containing a configuration error.
-
getTaskInstance
protected Task getTaskInstance(java.lang.String taskId, ContainerServices containerServices) throws TaskException
- Throws:
TaskException
-
locateTaskId
protected java.lang.String locateTaskId(RequestKeys requestKeys) throws TaskException
- Throws:
TaskException
-
initializeTaskFactory
protected void initializeTaskFactory(ContainerServices cs)
-
-