public class PunchOut extends Logon
| Modifier and Type | Class and Description |
|---|---|
protected class |
PunchOut.Context
Inner class used to store servlet context information.
|
FlashServlet.Stack| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID
The class' serialization version id.
|
static java.lang.String |
SN_OBJECT
The session's key for the punch-out session object.
|
static java.lang.String |
SN_PROCESS
The session's key for the punch-out process flag.
|
SN_CHANGEPWD, SN_SELSHIPTO, SN_SHIPTOCUSTDISPLAY_MODE, SN_ADMINMODE, SN_CATEGORIES, SN_CATEGORIES_LISTONLY, SN_CATEGORIES_PATH, SN_CATEGORY, SN_CONTINUE_PAGEURL, SN_PRODUCTS, SN_PRODUCTS_INSTOCK, SN_PRODUCTS_NOSTOCK, SN_PRODUCTS_PAFILTERS, SN_PRODUCTS_PAGEHIST, SN_PRODUCTS_PAGENUM, SN_PRODUCTS_PAGEURL, SOURCE_CATALOG, SOURCE_FAVORITES, SOURCE_SEARCH, SOURCE_SHOPCART, SOURCE_SPECIALSN_CART, SN_LOGON_STATUS, SN_SECPROFILE, SN_USER, SN_USERSFIBROWSER_IE, BROWSER_NN, BROWSER_XX, RESP_NULL, RESP_REDIRECTED, RQST_AJAX, RQST_NULL| Constructor and Description |
|---|
PunchOut() |
| Modifier and Type | Method and Description |
|---|---|
protected Logon.Context |
createContext(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Creates the servlet context inner class.
|
protected java.lang.String |
getTemplateName(BaseServlet.Context baseCtx)
Returns the name of the html template file used by the servlet.
|
protected boolean |
isPasswordValid(Logon.Context ctx)
Answers if the logon user password is valid.
|
protected boolean |
isPreshopRequest(MainServlet.Context ctx)
Answers if a request has been made that uses the preshop layout (no banner
links, no navigation bar options and no displayed categories).
|
protected boolean |
isSessionValid(PunchOut.Context ctx,
java.lang.String sessionId)
Answers if the given punch-out session id is valid.
|
protected boolean |
isUserValid(PunchOut.Context ctx,
java.lang.String userId)
Answers if the given punch-out user id is valid.
|
protected void |
readParameters(BaseServlet.Context baseCtx,
boolean post)
Reads the parameters passed to the servlet via the http request object.
|
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 |
showErrorPage(PunchOut.Context ctx,
int error)
Redirects to the punch-out error page for the given error code.
|
protected void |
showNextPage(PunchOut.Context ctx,
java.lang.String name)
Redirects to the given servlet name (Home or ReviewCart).
|
editFormFields, getNextURL, isPasswordNeeded, isShiptoNeeded, resetCategories, resetFormFields, retrieveShiptos, setCookieValues, setTemplateErrorconfirmSession, getPreviousCategoryList, getPreviousCategoryPath, hasSubcategories, hasSubcategories, isOmitNoStock, isUserHelpRequest, setTemplateCategoryPath, sortCategoryProductData, writePageImplconfirmCart, confirmRequest, confirmRetail, confirmWholesale, createNewCart, createNewSessionImpl, getPageTitle, getServletPath, getUser, initTemplateDataImpl, isLogonRequest, requestComplete, requiresLogon, resetCart, resetCategories, resetProducts, setDefaultUser, setSessionCart, setSFIShoppingUser, useExistingSessionImpl, writeCookiecreateNewSession, determineBrowser, doGet, doPost, getCookie, getInvokerName, getInvokerName, getInvokerParams, getInvokerParams, getInvokerPath, getInvokerPath, getInvokerURL, getPageParams, getRequestURL, getServletName, getServletName, getServletParams, getServletParams, getServletPath, getServletURL, getServletURL, getTemplateMessage, getTemplateMessage, getTemplateMessage, getTemplateMessage, getTemplateMessage, initTemplateData, isPrintable, isServerTomcat, log, qualifyURL, redirectURL, setP3PCompactPolicy, showSiteError, showSiteError, showSiteError, useExistingSession, writeCookie, writeTempCookiedoDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, serviceprivate static final long serialVersionUID
public static final java.lang.String SN_PROCESS
public static final java.lang.String SN_OBJECT
protected boolean isPreshopRequest(MainServlet.Context ctx)
false. This method should be overridden by a subclass if the
subclass requires something different than the default.
Overrides isPreshopRequest in Logon.isPreshopRequest in class Logonctx - (Context) The current servlet context.true if this is a request for preshop,
otherwise false.protected java.lang.String getTemplateName(BaseServlet.Context baseCtx)
writePage method.
Overrides getTemplateName in Logon.getTemplateName in class LogonbaseCtx - (Context) The current servlet context.protected void readParameters(BaseServlet.Context baseCtx, boolean post)
doGet and doPost method.
Overrides readParameters in Logon.readParameters in class LogonbaseCtx - (Context) The current servlet context.post - (boolean) true if the method is invoked from
doPost, otherwise false.protected void setSessionValues(BaseServlet.Context baseCtx)
writeURL method.
Overrides setSessionValues in Logon.setSessionValues in class LogonbaseCtx - (Context) The current servlet context.protected void setTemplateData(BaseServlet.Context baseCtx)
writePage method.
Overrides setTemplateData in Logon.setTemplateData in class LogonbaseCtx - (Context) The current servlet context.protected boolean isPasswordValid(Logon.Context ctx)
isPasswordValid in Logon.isPasswordValid in class Logonctx - (Context) The current servlet context.true if the password is valid,
otherwise false.protected boolean isSessionValid(PunchOut.Context ctx, java.lang.String sessionId)
ctx - (Context) The current servlet context.sessionId - (String) The id for the session to validate.true if the session id is valid,
otherwise false.protected boolean isUserValid(PunchOut.Context ctx, java.lang.String userId)
ctx - (Context) The current servlet context.userId - (String) The id for the user to validate.true if the user id is valid,
otherwise false.protected void showErrorPage(PunchOut.Context ctx, int error)
ctx - (Context) The current servlet context.error - (int) The error code for the page to display where 0 =
processing error, 1 = invalid session and 2 = invalid buyer id.protected void showNextPage(PunchOut.Context ctx, java.lang.String name)
ctx - (Context) The current servlet context.name - (String) The name of the servlet to display.protected Logon.Context createContext(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
createContext in Logon.
Invoked by doPost and doGet methods.createContext in class Logonrequest - (HttpServletRequest) The servlet's incoming request.response - (HttpServletResponse) The servlet's outgoing response.