org.objectweb.telosys.rpl
Class ScreenRequestProcessor

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

public final class ScreenRequestProcessor
extends java.lang.Object


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
protected static void executeAction(ScreenSession screenSession, ScreenContext screenContext, ScreenRequest request, ScreenResponse response)
          Execute the ScreenRequest ACTION in a ScreenContext, and set the ScreenResponse.
protected static void executeSynchronizedAction(ScreenSession screenSession, ScreenContext screenContext, ScreenRequest request, ScreenResponse response)
          Execute the ScreenRequest ACTION in a ScreenContext, and set the ScreenResponse.
protected static ScreenContext getScreenContext(ScreenRequest request, ScreenSession screenSession)
          Return the current Screen Context corresponding to the Screen Id and Screen Name of the request
protected static ScreenResponse getScreenResponse(ScreenRequest request, javax.servlet.http.HttpServletResponse httpResponse)
          Returns a ScreenResponse instance created from the given ScreenRequest and HttpServletResponse
protected static ScreenSession getScreenSession(javax.servlet.http.HttpServletRequest httpRequest)
          Return the current ScreenSession for the HttpSession, throws a TelosysException if the session is not opened.
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:
input -
Returns:
Throws:
TelosysException

getScreenResponse

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

Parameters:
request -
httpResponse -
Returns:
Throws:
TelosysException

getScreenSession

protected static ScreenSession getScreenSession(javax.servlet.http.HttpServletRequest httpRequest)
                                         throws TelosysException
Return the current ScreenSession for the HttpSession, throws a TelosysException if the session is not opened.

Parameters:
httpRequest -
Returns:
Throws:
TelosysException

getScreenContext

protected static ScreenContext getScreenContext(ScreenRequest request,
                                                ScreenSession screenSession)
                                         throws TelosysException
Return the current Screen Context corresponding to the Screen Id and Screen Name of the request

Parameters:
request -
screenSession -
Returns:
Throws:
TelosysException

executeSynchronizedAction

protected static void executeSynchronizedAction(ScreenSession screenSession,
                                                ScreenContext screenContext,
                                                ScreenRequest request,
                                                ScreenResponse response)
                                         throws TelosysException
Execute the ScreenRequest ACTION in a ScreenContext, and set the ScreenResponse.

Parameters:
screenContext -
request -
response -
Throws:
TelosysException

executeAction

protected static void executeAction(ScreenSession screenSession,
                                    ScreenContext screenContext,
                                    ScreenRequest request,
                                    ScreenResponse response)
                             throws TelosysException
Execute the ScreenRequest ACTION in a ScreenContext, and set the ScreenResponse.

Parameters:
screenContext -
request -
response -
Throws:
TelosysException