public class

AppTaskRequestContext

extends BaseTaskRequestContext
java.lang.Object
   ↳ com.microstrategy.web.tasks.BaseTaskRequestContext
     ↳ com.microstrategy.web.app.tasks.AppTaskRequestContext
Known Direct Subclasses

Class Overview

The class provides more application context for a Task which extends AbstractAppTask.

Summary

[Expand]
Inherited Constants
From class com.microstrategy.web.tasks.BaseTaskRequestContext
[Expand]
Inherited Fields
From class com.microstrategy.web.tasks.BaseTaskRequestContext
Public Constructors
AppTaskRequestContext()
Public Methods
AppContext getAppContext()
Returns the AppContext object associated with this request.
StyleCatalog getStyleCatalog()
Returns the StyleCatalog instance.
WebIServerSession getWebIServerSession(String sessionStateParamName, String sessionIDParamName)
This method extends the one in getWebIServerSession(String, String) by using the "active session" of the SessionManager if no WebIServerSession object could be provided from the base method.
ServletWebComponent getWebServletComponent()
Return an instance of a ServletWebComponent for use in performing MSTR Web system actions.
Protected Methods
BeanContext getBeanContext()
BlockContext getBlockContext(MarkupOutput markupOutput)
Returns the BlockContext object associated with this MarkupOutput.
WebIServerSession restoreSessionFromStateOrId(String sessionStateParamName, String sessionIDParamName)
[Expand]
Inherited Methods
From class com.microstrategy.web.tasks.BaseTaskRequestContext
From class java.lang.Object
From interface com.microstrategy.web.tasks.TaskRequestContext

Public Constructors

public AppTaskRequestContext ()

Public Methods

public AppContext getAppContext ()

Returns the AppContext object associated with this request.

Returns
  • The AppContext object associated with this request.

public StyleCatalog getStyleCatalog ()

Returns the StyleCatalog instance.

Returns

public WebIServerSession getWebIServerSession (String sessionStateParamName, String sessionIDParamName)

This method extends the one in getWebIServerSession(String, String) by using the "active session" of the SessionManager if no WebIServerSession object could be provided from the base method.

Parameters
sessionStateParamName The name of the incoming request key ("parameter name") that contains a session state.
sessionIDParamName The name of the incoming request key ("parameter name") that contains a session ID.
Returns
Throws
TaskRequestMalformedException If a previous state or session ID is supplied, but invalid, or if the session has timed out.
TaskException

public ServletWebComponent getWebServletComponent ()

Return an instance of a ServletWebComponent for use in performing MSTR Web system actions.

Returns

Protected Methods

protected BeanContext getBeanContext ()

protected BlockContext getBlockContext (MarkupOutput markupOutput)

Returns the BlockContext object associated with this MarkupOutput. If none exists, then one is created. It is automatically populated with the following fields:

  • Content Type
  • Container Services
  • Request Keys

Parameters
markupOutput The MarkupOutput object that hosts the BlockContext.
Returns

protected WebIServerSession restoreSessionFromStateOrId (String sessionStateParamName, String sessionIDParamName)