public abstract class MasterServlet
extends HttpServlet
Window and to provide l10n data.| Modifier and Type | Field and Description |
|---|---|
static String |
ALREADYINITIALIZE |
static String |
EVENT_TRANSLATION_FOOTER |
static String |
EVENT_TRANSLATION_HEADER |
static long |
firstContact |
static String |
LOG_TOPIC |
static String |
MONITOR |
static String |
PRGREQUEST |
static String |
PRGREQUESTPAIR |
static long |
requestCount |
static int |
STARTUP_MAX_USERS |
static int |
STARTUP_WAIT_TIME |
static String |
STATE |
static int |
step |
static String |
UPTODATE_CHECK |
static String |
WINDOW_ID |
| Constructor and Description |
|---|
MasterServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected DisplayState |
createDisplayState(HttpServletRequest request,
JaloSession jaloSession) |
void |
doGet(HttpServletRequest request,
HttpServletResponse response) |
void |
doPost(HttpServletRequest request,
HttpServletResponse response) |
static void |
flush(HttpServletResponse resp) |
protected String |
getChipPrefix() |
protected String |
getChipSuffix() |
protected Map |
getDefaultAttributes()
Creates the default attributes for a new DisplayState/Session In subclasses you can use this to set specific
attributes.
|
protected JaloSession |
getJaloSession(HttpServletRequest request) |
protected long |
getNextCounterValue() |
protected DisplayState |
getSessionDisplayState(HttpServletRequest request,
JaloSession jaloSession) |
protected String |
getWindowIdFromRequest(HttpServletRequest request) |
protected void |
initializeCustomProcessEnd(HttpServletRequest request,
HttpServletResponse response)
callback methods that is executed just before the process method returns.
|
protected boolean |
initializeCustomProcessStart(HttpServletRequest request,
HttpServletResponse response)
callback methods that is executed just after the process method starts.
|
protected void |
initializeCustomProperties(JaloSession jaloSession,
HttpServletRequest request)
The implementation of this method is called right after the JaloSession is created.
|
protected HttpServletRequest |
initializeRequest(HttpServletRequest request) |
protected HttpServletResponse |
initializeResponse(HttpServletResponse response,
HttpServletRequest req) |
protected boolean |
isValidWindowId(String windowId) |
static void |
print(HttpServletResponse resp,
byte[] byteArray) |
static void |
print(HttpServletResponse resp,
String string) |
static void |
println(HttpServletResponse resp,
String string) |
protected void |
processException(HttpServletRequest request,
HttpServletResponse response,
Exception exception)
callback methods that is executed if an exception occurs in the MasterServlet.
|
protected void |
setResponseHeader(HttpServletResponse response) |
public static final String WINDOW_ID
public static final String STATE
public static final String LOG_TOPIC
public static final String UPTODATE_CHECK
public static final String MONITOR
public static final String PRGREQUEST
public static final String PRGREQUESTPAIR
public static final String EVENT_TRANSLATION_HEADER
public static final String EVENT_TRANSLATION_FOOTER
public static final String ALREADYINITIALIZE
public static final int STARTUP_MAX_USERS
public static final int STARTUP_WAIT_TIME
public static int step
public static long requestCount
public static long firstContact
protected JaloSession getJaloSession(HttpServletRequest request) throws JaloSystemNotInitializedException
public final void doPost(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
ServletExceptionIOExceptionpublic final void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
ServletExceptionIOExceptionprotected HttpServletRequest initializeRequest(HttpServletRequest request)
protected HttpServletResponse initializeResponse(HttpServletResponse response,
HttpServletRequest req)
protected void setResponseHeader(HttpServletResponse response)
protected String getWindowIdFromRequest(HttpServletRequest request)
protected DisplayState getSessionDisplayState(HttpServletRequest request, JaloSession jaloSession)
protected Map getDefaultAttributes()
HashMapprotected void initializeCustomProperties(JaloSession jaloSession, HttpServletRequest request)
protected boolean initializeCustomProcessStart(HttpServletRequest request,
HttpServletResponse response)
throws IOException
return false if you want to stop the request
IOExceptionprotected void initializeCustomProcessEnd(HttpServletRequest request,
HttpServletResponse response)
protected void processException(HttpServletRequest request,
HttpServletResponse response,
Exception exception)
protected DisplayState createDisplayState(HttpServletRequest request, JaloSession jaloSession)
protected boolean isValidWindowId(String windowId)
protected String getChipPrefix()
protected String getChipSuffix()
protected long getNextCounterValue()
public static void println(HttpServletResponse resp,
String string)
throws IOException
IOExceptionpublic static void print(HttpServletResponse resp,
String string)
throws IOException
IOExceptionpublic static void print(HttpServletResponse resp,
byte[] byteArray)
throws IOException
IOExceptionpublic static void flush(HttpServletResponse resp)
throws IOException
IOExceptionCopyright © 2017 SAP SE. All Rights Reserved.