public class

WebServerAdminTask

extends AbstractAppTask
java.lang.Object
   ↳ com.microstrategy.web.tasks.AbstractBaseTask
     ↳ com.microstrategy.web.app.tasks.AbstractAppTask
       ↳ com.microstrategy.web.app.tasks.WebServerAdminTask

Summary

Constants
String ACTION_CONNECT
String ACTION_DISCONNECT
String NODE_NAME
String PARAM_NAME_ACTION
String PARAM_NAME_AUTHMODE
String PARAM_NAME_PASSWORD
String PARAM_NAME_PORT
String PARAM_NAME_SERVER The name of the server parameter.
String PARAM_NAME_USERNAME
String PARAM_NAME_WEBAPP
String ROOT_NAME
String SERVER_CONNECTED
String SERVER_ERR_MSG
String SERVER_ID
String SERVER_NAME
String SERVER_PORT
String SERVER_TOKEN
String TASK_ID
String TASK_PARA_ACTION
String TASK_PARA_AUTHMODE
String TASK_PARA_PASSWORD
String TASK_PARA_PORT
String TASK_PARA_SERVER
String TASK_PARA_USERNAME
String TASK_PARA_WEBAPP
[Expand]
Inherited Constants
From class com.microstrategy.web.tasks.AbstractBaseTask
[Expand]
Inherited Fields
From class com.microstrategy.web.tasks.AbstractBaseTask
Public Constructors
WebServerAdminTask()
Public Methods
static void connectServer(String name, String portValue, int iLocale)
synchronized static void disConnectServer(String name)
disconnect I-Server with local web server
File getTokenFile(AppContext appcontext, String serverName)
boolean isTokenExists(AppContext appcontext, String servername)
void processRequest(TaskRequestContext context, TaskOutput taskOutput)
The default implementation of this method of processRequest gets the Primary Content from the TaskOutput and invokes the processRequest(TaskRequestContext, MarkupOutput) version.
Protected Methods
static Map<String, String> getParas(String iServer, String iPort, String iAction, String iUsername, String iPassword, String iAuthmode, String iWebapp)
[Expand]
Inherited Methods
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

public static final String ACTION_CONNECT

Constant Value: "CONNECT"

public static final String ACTION_DISCONNECT

Constant Value: "DISCONNECT"

public static final String NODE_NAME

Constant Value: "server"

protected static final String PARAM_NAME_ACTION

Constant Value: "action"

protected static final String PARAM_NAME_AUTHMODE

Constant Value: "authmode"

protected static final String PARAM_NAME_PASSWORD

Constant Value: "password"

protected static final String PARAM_NAME_PORT

Constant Value: "port"

protected static final String PARAM_NAME_SERVER

The name of the server parameter.

Constant Value: "server"

protected static final String PARAM_NAME_USERNAME

Constant Value: "username"

protected static final String PARAM_NAME_WEBAPP

Constant Value: "webapp"

public static final String ROOT_NAME

Constant Value: "servers"

public static final String SERVER_CONNECTED

Constant Value: "connected"

public static final String SERVER_ERR_MSG

Constant Value: "errorMsg"

public static final String SERVER_ID

Constant Value: "id"

public static final String SERVER_NAME

Constant Value: "name"

public static final String SERVER_PORT

Constant Value: "port"

public static final String SERVER_TOKEN

Constant Value: "tr"

public static final String TASK_ID

Constant Value: "webServerAdmin"

public static final String TASK_PARA_ACTION

Constant Value: "action"

public static final String TASK_PARA_AUTHMODE

Constant Value: "authmode"

public static final String TASK_PARA_PASSWORD

Constant Value: "password"

public static final String TASK_PARA_PORT

Constant Value: "port"

public static final String TASK_PARA_SERVER

Constant Value: "server"

public static final String TASK_PARA_USERNAME

Constant Value: "username"

public static final String TASK_PARA_WEBAPP

Constant Value: "webapp"

Public Constructors

public WebServerAdminTask ()

Public Methods

public static void connectServer (String name, String portValue, int iLocale)

Throws
WebException

public static synchronized void disConnectServer (String name)

disconnect I-Server with local web server

Throws
WebException

public File getTokenFile (AppContext appcontext, String serverName)

public boolean isTokenExists (AppContext appcontext, String servername)

public void processRequest (TaskRequestContext context, TaskOutput taskOutput)

The default implementation of this method of processRequest gets the Primary Content from the TaskOutput and invokes the processRequest(TaskRequestContext, MarkupOutput) version.

Parameters
context The TaskRequestContext object that maintains the state of the request.
taskOutput The TaskOutput that contains the output generated by the Task.
Throws
TaskException

Protected Methods

protected static Map<String, String> getParas (String iServer, String iPort, String iAction, String iUsername, String iPassword, String iAuthmode, String iWebapp)