org.objectweb.telosys.rpl
Class ScreenRequestProcessor

java.lang.Object
  extended byorg.objectweb.telosys.rpl.ScreenRequestProcessor

public final class ScreenRequestProcessor
extends java.lang.Object

Set of methods used by the front servlet to process an "ACTION" Request


Field Summary
static java.lang.String ACTION_CLEAR
           
static java.lang.String ACTION_CLOSE
           
static java.lang.String ACTION_DELETE
           
static java.lang.String ACTION_DELETE_CURRENT
           
static java.lang.String ACTION_ECHO
           
static java.lang.String ACTION_EXEC
           
static java.lang.String ACTION_GET
           
static java.lang.String ACTION_INSERT
           
static java.lang.String ACTION_LIST_ADD
           
static java.lang.String ACTION_LIST_CLEAR
           
static java.lang.String ACTION_LIST_INSERT
           
static java.lang.String ACTION_LIST_REMOVE
           
static java.lang.String ACTION_LIST_SELECT
           
static java.lang.String ACTION_LIST_SORT
           
static java.lang.String ACTION_LOAD
           
static java.lang.String ACTION_OPEN
           
static java.lang.String ACTION_PING
           
static java.lang.String ACTION_SAVE
           
static java.lang.String ACTION_SAVE_CURRENT
           
static java.lang.String ACTION_SET
           
static java.lang.String ACTION_UPDATE
           
 
Method Summary
static void executeAction(ScreenSession screenSession, ScreenContext screenContext, ScreenRequest screenRequest, ScreenResponse screenResponse)
          Executes the ACTION in a ScreenContext using the ScreenRequest and populates the ScreenResponse.
static void executeSynchronizedAction(ScreenSession screenSession, ScreenContext screenContext, ScreenRequest screenRequest, ScreenResponse screenResponse)
          Executes the ACTION in a ScreenContext using the ScreenRequest and populates the ScreenResponse.
static ScreenContext getScreenContext(ScreenRequest screenRequest, ScreenSession screenSession)
          Returns the current ScreenContext corresponding to the "Screen Id" and "Screen Name" of the request
protected static ScreenResponse getScreenResponse(ScreenRequest screenRequest, javax.servlet.http.HttpServletResponse httpResponse)
          Returns a ScreenResponse instance created from the given ScreenRequest and HttpServletResponse
protected static ScreenRequest parseInputStream(ScreenRequest screenRequest, java.io.InputStream input, java.lang.String sCharset)
          Parse the XML input stream and return the resulting ScreenRequest instance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTION_OPEN

public static final java.lang.String ACTION_OPEN
See Also:
Constant Field Values

ACTION_CLOSE

public static final java.lang.String ACTION_CLOSE
See Also:
Constant Field Values

ACTION_GET

public static final java.lang.String ACTION_GET
See Also:
Constant Field Values

ACTION_SET

public static final java.lang.String ACTION_SET
See Also:
Constant Field Values

ACTION_CLEAR

public static final java.lang.String ACTION_CLEAR
See Also:
Constant Field Values

ACTION_LOAD

public static final java.lang.String ACTION_LOAD
See Also:
Constant Field Values

ACTION_SAVE

public static final java.lang.String ACTION_SAVE
See Also:
Constant Field Values

ACTION_SAVE_CURRENT

public static final java.lang.String ACTION_SAVE_CURRENT
See Also:
Constant Field Values

ACTION_INSERT

public static final java.lang.String ACTION_INSERT
See Also:
Constant Field Values

ACTION_UPDATE

public static final java.lang.String ACTION_UPDATE
See Also:
Constant Field Values

ACTION_DELETE

public static final java.lang.String ACTION_DELETE
See Also:
Constant Field Values

ACTION_DELETE_CURRENT

public static final java.lang.String ACTION_DELETE_CURRENT
See Also:
Constant Field Values

ACTION_EXEC

public static final java.lang.String ACTION_EXEC
See Also:
Constant Field Values

ACTION_PING

public static final java.lang.String ACTION_PING
See Also:
Constant Field Values

ACTION_ECHO

public static final java.lang.String ACTION_ECHO
See Also:
Constant Field Values

ACTION_LIST_SELECT

public static final java.lang.String ACTION_LIST_SELECT
See Also:
Constant Field Values

ACTION_LIST_INSERT

public static final java.lang.String ACTION_LIST_INSERT
See Also:
Constant Field Values

ACTION_LIST_ADD

public static final java.lang.String ACTION_LIST_ADD
See Also:
Constant Field Values

ACTION_LIST_REMOVE

public static final java.lang.String ACTION_LIST_REMOVE
See Also:
Constant Field Values

ACTION_LIST_CLEAR

public static final java.lang.String ACTION_LIST_CLEAR
See Also:
Constant Field Values

ACTION_LIST_SORT

public static final java.lang.String ACTION_LIST_SORT
See Also:
Constant Field Values
Method Detail

parseInputStream

protected static ScreenRequest parseInputStream(ScreenRequest screenRequest,
                                                java.io.InputStream input,
                                                java.lang.String sCharset)
                                         throws TelosysException
Parse the XML input stream and return the resulting ScreenRequest instance

Parameters:
screenRequest -
input -
sCharset -
Returns:
Throws:
TelosysException

getScreenResponse

protected static ScreenResponse getScreenResponse(ScreenRequest screenRequest,
                                                  javax.servlet.http.HttpServletResponse httpResponse)
                                           throws TelosysException
Returns a ScreenResponse instance created from the given ScreenRequest and HttpServletResponse

Parameters:
screenRequest -
httpResponse -
Returns:
Throws:
TelosysException

getScreenContext

public static ScreenContext getScreenContext(ScreenRequest screenRequest,
                                             ScreenSession screenSession)
                                      throws TelosysException
Returns the current ScreenContext corresponding to the "Screen Id" and "Screen Name" of the request

Parameters:
screenRequest -
screenSession -
Returns:
Throws:
TelosysException

executeSynchronizedAction

public static void executeSynchronizedAction(ScreenSession screenSession,
                                             ScreenContext screenContext,
                                             ScreenRequest screenRequest,
                                             ScreenResponse screenResponse)
                                      throws TelosysException
Executes the ACTION in a ScreenContext using the ScreenRequest and populates the ScreenResponse.
Same as "executeAction" but with synchronization on the ScreenSession instance.

Parameters:
screenSession -
screenContext -
screenRequest -
screenResponse -
Throws:
TelosysException

executeAction

public static void executeAction(ScreenSession screenSession,
                                 ScreenContext screenContext,
                                 ScreenRequest screenRequest,
                                 ScreenResponse screenResponse)
                          throws TelosysException
Executes the ACTION in a ScreenContext using the ScreenRequest and populates the ScreenResponse.

Parameters:
screenSession -
screenContext -
screenRequest -
screenResponse -
Throws:
TelosysException