public class

MobileChunkedRWResultsTask

extends BeanTask
java.lang.Object
   ↳ com.microstrategy.web.tasks.AbstractBaseTask
     ↳ com.microstrategy.web.app.tasks.AbstractAppTask
       ↳ com.microstrategy.web.app.tasks.WebComponentTask
         ↳ com.microstrategy.web.app.tasks.BeanTask
           ↳ com.microstrategy.web.app.tasks.MobileChunkedRWResultsTask

Summary

Constants
String PARAM_NAME_COMPRESSION_VERSION
[Expand]
Inherited Constants
From class com.microstrategy.web.app.tasks.WebComponentTask
From class com.microstrategy.web.tasks.AbstractBaseTask
[Expand]
Inherited Fields
From class com.microstrategy.web.app.tasks.WebComponentTask
From class com.microstrategy.web.tasks.AbstractBaseTask
Public Constructors
MobileChunkedRWResultsTask()
Public Methods
TaskRequestContext newRequestContext()
Returns a BeanTaskRequestContext object to use for the duration of this request.
Protected Methods
void collectData(BeanTaskRequestContext bsrContext)
This method calls the 'collectData' method on the WebBean instance.
WebResultSetInstance duplicateMessageAndWaitForResult(String messageID, int stateID, WebObjectsFactory factory, RequestKeys rk)
WebResultSetInstance getInitialInstance(String messageID, int stateID, WebObjectsFactory factory)
WebResultSetInstance getNewInstanceForDuplicatedMessage(String messageID, int stateID, WebObjectsFactory factory, RequestKeys rk)
int getParameter(RequestKeys keys, String name, int defaultValue)
boolean hasMobileState(RequestKeys rk)
void prepareBean(BeanTaskRequestContext bsrContext)
This method prepares the WebBean for execution.
void serializeResult(BeanTaskRequestContext btrContext, TaskOutput markupOutput)
This method attempts to serialize the results to the supplied TaskOutput object.
void setBeanContext(BeanTaskRequestContext btrContext)
Set the BeanContext associated with the Bean.
void transformBean(BeanTaskRequestContext btrContext, TaskOutput markupOutput)
This method wraps a call to transform().
[Expand]
Inherited Methods
From class com.microstrategy.web.app.tasks.BeanTask
From class com.microstrategy.web.app.tasks.WebComponentTask
From class com.microstrategy.web.app.tasks.AbstractAppTask
From class com.microstrategy.web.tasks.AbstractBaseTask
From class java.lang.Object
From interface com.microstrategy.web.tasks.Task

Constants

protected static final String PARAM_NAME_COMPRESSION_VERSION

Constant Value: "compressionVersion"

Public Constructors

public MobileChunkedRWResultsTask ()

Public Methods

public TaskRequestContext newRequestContext ()

Returns a BeanTaskRequestContext object to use for the duration of this request.

Returns

Protected Methods

protected void collectData (BeanTaskRequestContext bsrContext)

This method calls the 'collectData' method on the WebBean instance. This method is called by processRequest(TaskRequestContext, TaskOutput).

Parameters
bsrContext The BeanTaskRequestContext object.
Throws
TaskException

protected WebResultSetInstance duplicateMessageAndWaitForResult (String messageID, int stateID, WebObjectsFactory factory, RequestKeys rk)

protected WebResultSetInstance getInitialInstance (String messageID, int stateID, WebObjectsFactory factory)

protected WebResultSetInstance getNewInstanceForDuplicatedMessage (String messageID, int stateID, WebObjectsFactory factory, RequestKeys rk)

protected int getParameter (RequestKeys keys, String name, int defaultValue)

protected boolean hasMobileState (RequestKeys rk)

protected void prepareBean (BeanTaskRequestContext bsrContext)

This method prepares the WebBean for execution. It is called by the processRequest(TaskRequestContext, TaskOutput) method. It performs the following actions:

  1. Creates a new WebBean instance and adds it to the context. (calls createWebBean(BeanTaskRequestContext))
  2. Sets any bean properties. (calls setBeanProperties(BeanTaskRequestContext))
  3. Restores any bean state. (calls restoreBeanState(BeanTaskRequestContext))

Parameters
bsrContext The BeanTaskRequestContext to use.
Throws
TaskException

protected void serializeResult (BeanTaskRequestContext btrContext, TaskOutput markupOutput)

This method attempts to serialize the results to the supplied TaskOutput object. This method is called by processRequest(TaskRequestContext, TaskOutput) and in turn does the following:

  1. Add the Transform. If there is no transform specified, an empty MarkupOutput is returned. (calls addTransform(BeanTaskRequestContext))
  2. Override any actual parameters specified in the Bean Task XML. (calls overrideActualParameters(BeanTaskRequestContext, TransformInstance))
  3. Transforms the WebBean using the Transform. (calls transformBean(BeanTaskRequestContext, TaskOutput))

Parameters
btrContext The BeanTaskRequestContext object.
markupOutput The TaskOutput object to populate.
Throws
TaskException

protected void setBeanContext (BeanTaskRequestContext btrContext)

Set the BeanContext associated with the Bean. This method is called by the setBeanProperties(BeanTaskRequestContext) method.

Parameters
btrContext The BeanTaskRequestContext object to use.

protected void transformBean (BeanTaskRequestContext btrContext, TaskOutput markupOutput)

This method wraps a call to transform(). It is called by the serializeResult(BeanTaskRequestContext, TaskOutput) method and simply calls the 'transform' method.

Parameters
btrContext The BeanTaskRequestContext object.
markupOutput The TaskOutput instance to generate into.