public class GoBack extends BaseServlet
BaseServlet.Context| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID
The class' serialization version id.
|
BROWSER_IE, BROWSER_NN, BROWSER_XX, RESP_NULL, RESP_REDIRECTED, RQST_AJAX, RQST_NULL| Constructor and Description |
|---|
GoBack() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createNewSessionImpl(BaseServlet.Context baseCtx)
Provides additional application-specific functionality for creating a new
session.
|
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles HTTP GET requests.
|
protected boolean |
editFormFields(BaseServlet.Context baseCtx)
Edits the values from the html template's form fields.
|
protected java.lang.String |
getNextURL(BaseServlet.Context baseCtx)
Returns the next URL (including parameters) to be processed when this
servlet's processing has been successfully completed (no edit errors, etc.).
|
protected java.lang.String |
getTemplateName(BaseServlet.Context baseCtx)
Returns the name of the html template file used by the servlet.
|
protected void |
initTemplateDataImpl(BaseServlet.Context baseCtx,
org.apache.velocity.VelocityContext vc,
boolean cookies)
Provides additional application-specific functionality for initializing
a new set of Velocity template data.
|
protected void |
readParameters(BaseServlet.Context baseCtx,
boolean post)
Reads the parameters passed to the servlet via the http request object.
|
protected void |
removeFromStack(BaseServlet.Context ctx)
Redirects to the appropriate servlet in the history stack and then removes
the servlet from the stack.
|
protected boolean |
requiresLogon(BaseServlet.Context baseCtx)
Answers if the servlet requires a valid non-default user in order to
continue processing.
|
protected void |
resetFormFields(BaseServlet.Context baseCtx)
Resets the values for the html template's form fields.
|
protected void |
setCookieValues(BaseServlet.Context baseCtx)
Adds one or more values to the http session cookies.
|
protected void |
setSessionValues(BaseServlet.Context baseCtx)
Adds one or more values to the http session object.
|
protected void |
setTemplateData(BaseServlet.Context baseCtx)
Sets the various data required by the html template.
|
protected void |
useExistingSessionImpl(BaseServlet.Context baseCtx)
Provides additional application-specific functionality for using an
existing session.
|
protected void |
writePageImpl(BaseServlet.Context baseCtx)
Provides additional application-specific functionality for writing a page.
|
confirmSession, createContext, createNewSession, determineBrowser, doPost, getCookie, getInvokerName, getInvokerName, getInvokerParams, getInvokerParams, getInvokerPath, getInvokerPath, getInvokerURL, getPageParams, getPageTitle, getRequestURL, getServletName, getServletName, getServletParams, getServletParams, getServletPath, getServletPath, getServletURL, getServletURL, getTemplateMessage, getTemplateMessage, getTemplateMessage, getTemplateMessage, getTemplateMessage, initTemplateData, isPrintable, isServerTomcat, log, qualifyURL, redirectURL, requestComplete, setP3PCompactPolicy, showSiteError, showSiteError, showSiteError, useExistingSession, writeCookie, writeCookie, writeTempCookiedoDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, serviceprivate static final long serialVersionUID
public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
doGet in BaseServlet.doGet in class BaseServletrequest - (HttpServletRequest) The servlet's incoming request.response - (HttpServletResponse) The servlet's outgoing response.java.io.IOException - - if an error occurs while processing the
request or response.javax.servlet.ServletException - - if an error occurs while
processing the request or response.protected void createNewSessionImpl(BaseServlet.Context baseCtx)
createNewSession method.
Overrides createNewSessionImpl in BaseServlet.createNewSessionImpl in class BaseServletbaseCtx - (Context) The current servlet context.protected void initTemplateDataImpl(BaseServlet.Context baseCtx, org.apache.velocity.VelocityContext vc, boolean cookies)
initTemplateData method.
Overrides initTemplateDataImpl in BaseServlet.initTemplateDataImpl in class BaseServletbaseCtx - (Context) The current servlet context.vc - (VelocityContext) The current set of Velocity template data.cookies - (boolean) true if any relevant cookies
are to be written, otherwise false.protected boolean requiresLogon(BaseServlet.Context baseCtx)
requiresLogon in BaseServlet.requiresLogon in class BaseServletbaseCtx - (Context) The current servlet context.true if the servlet requires a non-default
user, otherwise false.protected void useExistingSessionImpl(BaseServlet.Context baseCtx)
useExistingSession method.
Overrides useExistingSessionImpl in BaseServlet.useExistingSessionImpl in class BaseServletbaseCtx - (Context) The current servlet context.protected void writePageImpl(BaseServlet.Context baseCtx)
writePage method.
Overrides writePageImpl in BaseServlet.writePageImpl in class BaseServletbaseCtx - (Context) The current servlet context.protected boolean editFormFields(BaseServlet.Context baseCtx)
doPost method.
Overrides editFormFields in BaseServlet.editFormFields in class BaseServletbaseCtx - (Context) The current servlet context.true if all the edits are successful,
otherwise false.protected java.lang.String getNextURL(BaseServlet.Context baseCtx)
writeURL method.
Overrides getNextURL in BaseServlet.getNextURL in class BaseServletbaseCtx - (Context) The current servlet context.protected java.lang.String getTemplateName(BaseServlet.Context baseCtx)
writePage method.
Overrides getTemplateName in BaseServlet.getTemplateName in class BaseServletbaseCtx - (Context) The current servlet context.protected void readParameters(BaseServlet.Context baseCtx, boolean post)
doGet and doPost method.
Overrides readParameters in BaseServlet.readParameters in class BaseServletbaseCtx - (Context) The current servlet context.post - (boolean) true if the method is invoked from
doPost, otherwise false.protected void resetFormFields(BaseServlet.Context baseCtx)
doGet and doPost methods.
Overrides resetFormFields in BaseServlet.resetFormFields in class BaseServletbaseCtx - (Context) The current servlet context.protected void setCookieValues(BaseServlet.Context baseCtx) throws java.io.IOException
writeURL method. Calls should be made to writeCookie for each cookie that needs to be set.
Overrides setCookieValues in BaseServlet.setCookieValues in class BaseServletbaseCtx - (Context) The current servlet context.java.io.IOException - - if an error occurs when adding the
cookie to the response header.protected void setSessionValues(BaseServlet.Context baseCtx)
writeURL method.
Overrides setSessionValues in BaseServlet.setSessionValues in class BaseServletbaseCtx - (Context) The current servlet context.protected void setTemplateData(BaseServlet.Context baseCtx)
writePage method.
Overrides setTemplateData in BaseServlet.setTemplateData in class BaseServletbaseCtx - (Context) The current servlet context.protected void removeFromStack(BaseServlet.Context ctx) throws java.io.IOException
ctx - (Context) The current servlet context.java.io.IOException - - if an error occurs while processing the
URL redirection.