public class

ServantRuntimeSupport

extends Object
java.lang.Object
   ↳ com.microstrategy.web.servant.ServantRuntimeSupport

Class Overview

This class provides support, at runtime, for the generated Servant/Service Endpoint class.

Summary

Public Methods
static void bindMethodToTask(TaskProcessorRequestState reqState, String taskID, String[] taskArgumentNames, Object[] taskArgumentValues)
Binds the web service method to the underlying task.
static Object fulfillResponseUsingBlocks(TaskProcessorRequestState reqState, String blockPathSpec)
static String fulfillResponseUsingMarkup(TaskProcessorRequestState reqState)
static Object fulfillResponseUsingUnserializedObject(TaskProcessorRequestState reqState)
static ServantRuntimeSupport getInstance()
Return the singleton instance associated with this class.
TaskProcessorRequestState getRequestState(ServantRuntimeContext servantRC)
Return a new TaskProcessorRequestState object which is already populated with a ContainerServices instance.
static void handleMainMethod(Object servantObject, Map<String, Object[]> webServiceMethodInfo, String[] args)
This method handles command line debugging of the Servant/Service Endpoint class.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static void bindMethodToTask (TaskProcessorRequestState reqState, String taskID, String[] taskArgumentNames, Object[] taskArgumentValues)

Binds the web service method to the underlying task.

Parameters
reqState The TaskProcessorRequestState object that holds information about the task request.
taskID The ID of the underlying task.
taskArgumentNames An array of task argument names that are being assigned by the values of the web service method parameters.
taskArgumentValues An array of task argument values that are associated with the above keys.
Throws
IllegalArgumentException If the Task ID is empty or null, task argument names is null, task argument values is null or the lengths of the two arrays do not match.

public static Object fulfillResponseUsingBlocks (TaskProcessorRequestState reqState, String blockPathSpec)

Throws
Exception

public static String fulfillResponseUsingMarkup (TaskProcessorRequestState reqState)

Throws
Exception

public static Object fulfillResponseUsingUnserializedObject (TaskProcessorRequestState reqState)

Throws
Exception

public static ServantRuntimeSupport getInstance ()

Return the singleton instance associated with this class.

Returns
  • The singleton instance associated with this class.

public TaskProcessorRequestState getRequestState (ServantRuntimeContext servantRC)

Return a new TaskProcessorRequestState object which is already populated with a ContainerServices instance.

Parameters
servantRC The ServantRuntimeContext object, used in case of one-time initialization.
Returns
  • A new TaskProcessorRequestState object.

public static void handleMainMethod (Object servantObject, Map<String, Object[]> webServiceMethodInfo, String[] args)

This method handles command line debugging of the Servant/Service Endpoint class. Users may invoke this generated class and invoke methods exposed.

Parameters
servantObject The underlying Servant/Service Endpoint class instance.
webServiceMethodInfo A Map of web service method names and information about the parameters.
args The command line arguments supplied by the user.