|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatg.nucleus.logging.VariableArgumentApplicationLoggingImpl
atg.nucleus.GenericService
atg.nucleus.TimedOperationService
atg.servlet.pipeline.PipelineableServletImpl
atg.servlet.pipeline.InsertableServletImpl
atg.projects.store.servlet.pipeline.ShoppingContextServlet
public class ShoppingContextServlet
This servlet sets shopping context for the user. By this we mean the servlet sets up the correct catalog, price list, and sale price list on the profile.
This servlet obtains the values of the catalog and price lists from the
catalogTools
and priceListManager
components.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string. |
static java.lang.String |
COMPONENT_PATH_PROFILE
Component path profile. |
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
---|
DEFAULT_LOG_TRACE_STATUS |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
ShoppingContextServlet()
|
Method Summary | |
---|---|
StoreCatalogTools |
getCatalogTools()
|
StorePriceListManager |
getPriceListManager()
|
StoreProfileTools |
getProfileTools()
|
protected boolean |
hasProperty(java.lang.String pPropertyName,
atg.userprofiling.Profile pProfile)
Checks if profile has given property |
void |
service(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Based on the url context, this servlet pipeline component sets the catalog and pricelist. |
void |
setCatalogTools(StoreCatalogTools tools)
|
void |
setPriceListManager(StorePriceListManager manager)
|
void |
setProfileTools(StoreProfileTools tools)
|
protected void |
setShoppingContext(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse,
atg.userprofiling.Profile pProfile)
Given the profile and the context path this method sets up the appropriate shopping context for the user. |
Methods inherited from class atg.servlet.pipeline.InsertableServletImpl |
---|
doStartService, getInsertAfterServlet, setInsertAfterServlet |
Methods inherited from class atg.servlet.pipeline.PipelineableServletImpl |
---|
createAdminServlet, destroy, getAdminServlet, getNextServlet, getServletConfig, getServletInfo, init, isUsePathInfo, passRequest, passRequest, service, service, setNextServlet, setServletInfo, setUsePathInfo |
Methods inherited from class atg.nucleus.TimedOperationService |
---|
getAverageRequestHandlingTime, getHandledRequestCount, getRequestStartTime, getTotalRequestHandlingTime, isKeepingStatistics, notifyHandledRequest, resetStatistics, setKeepingStatistics |
Methods inherited from class atg.nucleus.GenericService |
---|
addLogListener, doStopService, getAbsoluteName, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface atg.servlet.pipeline.PipelineableServlet |
---|
getNextServlet, passRequest, setNextServlet |
Methods inherited from interface javax.servlet.Servlet |
---|
destroy, getServletConfig, getServletInfo, init, service |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
public static java.lang.String COMPONENT_PATH_PROFILE
Constructor Detail |
---|
public ShoppingContextServlet()
Method Detail |
---|
public void service(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws java.io.IOException, javax.servlet.ServletException
service
in class atg.servlet.pipeline.PipelineableServletImpl
pRequest
- - http requestpResponse
- - http response
java.io.IOException
- if an error occurred while reading or writing the
servlet request
javax.servlet.ServletException
- if an error occurred while processing the
servlet requestprotected void setShoppingContext(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse, atg.userprofiling.Profile pProfile) throws java.io.IOException, javax.servlet.ServletException, atg.repository.RepositoryException
catalog
, priceList
, and salePriceList
properties.
pRequest
- - http requestpResponse
- - http responsepProfile
- - profile
java.io.IOException
- if IO error occurs
javax.servlet.ServletException
- if servlet error occurs
atg.repository.RepositoryException
- if repository error occursprotected boolean hasProperty(java.lang.String pPropertyName, atg.userprofiling.Profile pProfile) throws atg.repository.RepositoryException
pPropertyName
- - property namepProfile
- - profile
atg.repository.RepositoryException
- if repository exception occurpublic StoreCatalogTools getCatalogTools()
public StorePriceListManager getPriceListManager()
public StoreProfileTools getProfileTools()
public void setCatalogTools(StoreCatalogTools tools)
tools
- - store catalog toolspublic void setPriceListManager(StorePriceListManager manager)
manager
- - store price list manager.public void setProfileTools(StoreProfileTools tools)
tools
- - store profile tools.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |