public abstract class LogonExitServletBase
extends javax.servlet.http.HttpServlet
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EBASE_SESSION |
Constructor and Description |
---|
LogonExitServletBase() |
Modifier and Type | Method and Description |
---|---|
void |
clearCallingParameters(javax.servlet.http.HttpServletRequest req)
Clears all URL parameters - used in cleanup only
|
void |
clearEbaseSession(javax.servlet.http.HttpServletRequest req)
Removes the Ebase session object from session state - cleanup only
|
void |
clearInitialCallFlag(javax.servlet.http.HttpServletRequest req)
Clears the flag used by method isInitialCall()
|
void |
displayErrorPage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String message)
Displays an error page to the end user containing the passed error message
|
void |
displayIllegalCallPage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Displays an error page to the end user with text "Illegal request"
|
com.ebasetech.ufs.kernel.EbaseSession |
getEbaseSession(javax.servlet.http.HttpServletRequest req)
Returns the Ebase session object
|
boolean |
isInitialCall(javax.servlet.http.HttpServletRequest req)
Answers the question is this the first call to this servlet for this http session
|
boolean |
isRequestLegal(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Check the request is legal.
|
void |
linkToPage(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
java.lang.String page)
Displays the page to the end user as specified by the passed URL
|
void |
returnToEbase(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Returns to Ebase by forwarding the URL to the ufsmain servlet and re-attaching
all parameters attached to the original URL.
|
void |
saveCallingParameters(javax.servlet.http.HttpServletRequest req)
Saves all parameters attached to the initial URL.
|
static void |
saveEbaseSession(javax.servlet.http.HttpServletRequest req)
Saves the Ebase session in session state
|
static void |
saveSubjectInEbaseSession(javax.servlet.http.HttpServletRequest req,
javax.security.auth.Subject subject)
Saves the subject in the Ebase session object
|
void |
setHTTPResponseHeader(javax.servlet.http.HttpServletResponse response)
Sets response headers to ensure that no caching takes place
|
public static final java.lang.String EBASE_SESSION
public boolean isInitialCall(javax.servlet.http.HttpServletRequest req)
public void clearInitialCallFlag(javax.servlet.http.HttpServletRequest req)
public void saveCallingParameters(javax.servlet.http.HttpServletRequest req)
public void clearCallingParameters(javax.servlet.http.HttpServletRequest req)
public void returnToEbase(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletException
java.io.IOException
public boolean isRequestLegal(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
public com.ebasetech.ufs.kernel.EbaseSession getEbaseSession(javax.servlet.http.HttpServletRequest req)
public void clearEbaseSession(javax.servlet.http.HttpServletRequest req)
public void setHTTPResponseHeader(javax.servlet.http.HttpServletResponse response)
public void linkToPage(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, java.lang.String page) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletException
java.io.IOException
public void displayErrorPage(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String message) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletException
java.io.IOException
public void displayIllegalCallPage(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletException
java.io.IOException
public static void saveSubjectInEbaseSession(javax.servlet.http.HttpServletRequest req, javax.security.auth.Subject subject)
public static void saveEbaseSession(javax.servlet.http.HttpServletRequest req)