public class ProductSpecial extends Products
Modifier and Type | Class and Description |
---|---|
protected class |
ProductSpecial.Context
Inner class used to store servlet context information.
|
Products.SelectableFilter
FlashServlet.Stack
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID
The class' serialization version id.
|
protected static java.lang.String |
SN_PSPRODUCTS
The session's key for the special's current list of products.
|
protected static java.lang.String |
SN_PSPRODUCTS_INSTOCK
The session's key for the special's current list of products with stock.
|
protected static java.lang.String |
SN_PSPRODUCTS_PAFILTERS
The session's key for the special's current list of product attribute filters.
|
protected static java.lang.String |
SN_PSPRODUCTS_PAGEHIST
The session's key for the special's current page history.
|
protected static java.lang.String |
SN_PSPRODUCTS_PAGENUM
The session's key for the special's current page number.
|
protected static java.lang.String |
SN_PSPRODUCTS_PAGEURL
The session's key for the special's current page url.
|
private static java.lang.String |
SN_PSTYPECODE
The session's key for the special's current type code.
|
SN_COMPARE_LIST, SN_PRODUCTS_ATTFILTERS, SN_PRODUCTS_INFILTERS, SN_PRODUCTS_PAGESTYLE, SN_PRODUCTS_PRCFILTERS, SN_PRODUCTS_SELNOSTOCK
MINIMUM_ROWS
DISPLAY_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_SPECIAL
SN_CART, SN_LOGON_STATUS, SN_SECPROFILE, SN_USER, SN_USERSFI
BROWSER_IE, BROWSER_NN, BROWSER_XX, RESP_NULL, RESP_REDIRECTED, RQST_AJAX, RQST_NULL
Constructor and Description |
---|
ProductSpecial() |
Modifier and Type | Method and Description |
---|---|
protected void |
ajaxResponse(ProductSpecial.Context ctx,
boolean realtime)
Handles sending a response for an AJAX request.
|
protected int |
confirmRequest(FlashServlet.Context baseCtx)
Determines if a servlet is being accessed with a valid request id.
|
protected Products.Context |
createContext(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Creates the servlet context inner class.
|
protected void |
readParameters(BaseServlet.Context baseCtx,
boolean post)
Reads the parameters passed to the servlet via the http request object.
|
protected void |
setProductList(Products.Context ctx)
Sets the current list of products based on the current omit no stock flag.
|
protected void |
setProductListFilteredAttrs(Products.Context ctx,
java.util.ArrayList<java.lang.String[]> searchattrs)
Sets the current list of products based on the current set of selected
attribute filters.
|
protected void |
setRealtimeInfo(Products.Context ctx,
int begindex,
int endindex)
Sets the realtime data for a given set of products within the current
list of products.
|
protected void |
setSessionValues(BaseServlet.Context baseCtx)
Adds one or more values to the http session object.
|
protected void |
setTemplateHeader(Products.Context ctx)
Invoked by this class' implementation of
setTemplateData to
retrieve and set the page header data required by the html template. |
protected void |
setTemplateListName(Products.Context ctx)
Invoked by this class' implementation of
setTemplateData to
retrieve and set the list name data required by the html template. |
addToCompares, editFormFields, getCompareProducts, getManyProducts, getNextURL, getOneProduct, getTemplateName, isPrintable, isProductFilteringActive, isProductFilteringAttrsActive, isProductFilteringPriceActive, resetFormFields, setCookieValues, setProductList, setProductListFiltered, setProductListFilteredPrice, setRealtimeInfo, setTemplateData, setTemplateError, setTemplateFavorites, setTemplateFilters, setTemplateProducts, setTemplateRelatedProducts, setTemplateSubcategories
setTemplateMode0, setTemplateMode1, setTemplateMode2, setTemplateSubcategories
setTemplatePagingBegIndex, setTemplatePagingEndIndex, setTemplatePagingLinks
confirmSession, getPreviousCategoryList, getPreviousCategoryPath, hasSubcategories, hasSubcategories, isOmitNoStock, isPreshopRequest, isUserHelpRequest, setTemplateCategoryPath, sortCategoryProductData, writePageImpl
confirmCart, confirmRetail, confirmWholesale, createNewCart, createNewSessionImpl, getPageTitle, getServletPath, getUser, initTemplateDataImpl, isLogonRequest, requestComplete, requiresLogon, resetCart, resetCategories, resetProducts, setDefaultUser, setSessionCart, setSFIShoppingUser, useExistingSessionImpl, writeCookie
createNewSession, 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, isServerTomcat, log, qualifyURL, redirectURL, setP3PCompactPolicy, showSiteError, showSiteError, showSiteError, useExistingSession, writeCookie, writeTempCookie
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
private static final long serialVersionUID
private static final java.lang.String SN_PSTYPECODE
protected static final java.lang.String SN_PSPRODUCTS
protected static final java.lang.String SN_PSPRODUCTS_INSTOCK
protected static final java.lang.String SN_PSPRODUCTS_PAFILTERS
protected static final java.lang.String SN_PSPRODUCTS_PAGENUM
protected static final java.lang.String SN_PSPRODUCTS_PAGEHIST
protected static final java.lang.String SN_PSPRODUCTS_PAGEURL
protected int confirmRequest(FlashServlet.Context baseCtx) throws java.io.IOException
confirmRequest
in FlashServlet
.confirmRequest
in class FlashServlet
baseCtx
- (Context) The current servlet context.java.io.IOException
- - if an error occurs while confirming the
request id.protected void readParameters(BaseServlet.Context baseCtx, boolean post)
doGet
and doPost
method.
Overrides readParameters
in Products
.readParameters
in class Products
baseCtx
- (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 Products
.setSessionValues
in class Products
baseCtx
- (Context) The current servlet context.protected void setTemplateHeader(Products.Context ctx)
setTemplateData
to
retrieve and set the page header data required by the html template.
Overrides setTemplateHeader
in Products
.setTemplateHeader
in class Products
ctx
- (Context) The current servlet context.protected void setTemplateListName(Products.Context ctx)
setTemplateData
to
retrieve and set the list name data required by the html template.
Overrides setTemplateListName
in Products
.setTemplateListName
in class Products
ctx
- (Context) The current servlet context.protected void setProductList(Products.Context ctx)
ctx.products
context variable.
Overrides setProductList
in Products
.setProductList
in class Products
ctx
- (Context) The current servlet context.protected void setProductListFilteredAttrs(Products.Context ctx, java.util.ArrayList<java.lang.String[]> searchattrs)
ctx.products
context variable.
Overrides setProductListFilteredAttrs
in Products
.setProductListFilteredAttrs
in class Products
ctx
- (Context) The current servlet context.searchattrs
- (ArrayList) The collection of search attributes
that will be sent to the configured product search interface.
product attribute filters.protected void setRealtimeInfo(Products.Context ctx, int begindex, int endindex)
setRealtimeInfo
in Products
.setRealtimeInfo
in class Products
ctx
- (Context) The current servlet context.begindex
- (int) The index of the first product within the list
for which realtime data is desired.endindex
- (int) The index of the last product within the list
for which realtime data is desired.protected void ajaxResponse(ProductSpecial.Context ctx, boolean realtime)
ctx
- (Context) The current servlet context.realtime
- (boolean) true
if realtime pricing and
availability should be retrieved, otherwise false
.protected Products.Context createContext(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
createContext
in Products
.
Invoked by doPost
and doGet
methods.createContext
in class Products
request
- (HttpServletRequest) The servlet's incoming request.response
- (HttpServletResponse) The servlet's outgoing response.