atg.projects.store.servlet.pipeline
Class InternationalizationShoppingContextServlet

java.lang.Object
  extended by atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
      extended by atg.nucleus.GenericService
          extended by atg.nucleus.TimedOperationService
              extended by atg.servlet.pipeline.PipelineableServletImpl
                  extended by atg.servlet.pipeline.InsertableServletImpl
                      extended by atg.projects.store.servlet.pipeline.ShoppingContextServlet
                          extended by atg.projects.store.servlet.pipeline.InternationalizationShoppingContextServlet
All Implemented Interfaces:
atg.naming.NameContextBindingListener, atg.naming.NameContextElement, atg.naming.NameResolver, atg.nucleus.AdminableService, atg.nucleus.logging.ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging, atg.nucleus.logging.VariableArgumentApplicationLogging, atg.nucleus.naming.ComponentNameResolver, atg.nucleus.Service, atg.nucleus.ServiceListener, atg.servlet.pipeline.InsertableServlet, atg.servlet.pipeline.PipelineableServlet, java.util.EventListener, javax.servlet.Servlet

public class InternationalizationShoppingContextServlet
extends ShoppingContextServlet

The extensions to eStore.ShoppingContextServlet.


Field Summary
static java.lang.String CLASS_VERSION
          Class version string
static java.lang.String SESSION_BEAN_PATH
           
static java.lang.String STORE_ID_COOKIE_NAME
           
 
Fields inherited from class atg.projects.store.servlet.pipeline.ShoppingContextServlet
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
InternationalizationShoppingContextServlet()
           
 
Method Summary
protected  void createStoreIdCookie(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse, java.lang.String pStoreId)
          Creates cookie from the store id and stores in pResponse
 InternationalizationPropertyManager getInternationalizationPropertyManager()
           
 InternationalizationStoreConfigurationContainer getInternationalizationStoreConfigurationContainer()
           
protected  void setCatalogAndPricelists(atg.userprofiling.Profile pProfile, InternationalizationStoreConfiguration pStoreConfiguration)
          Sets catalog and price lists.
 void setInternationalizationPropertyManager(InternationalizationPropertyManager pInternationalizationPropertyManager)
           
 void setInternationalizationStoreConfigurationContainer(InternationalizationStoreConfigurationContainer pInternationalizationStoreConfigurationContainer)
           
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.projects.store.servlet.pipeline.ShoppingContextServlet
getCatalogTools, getPriceListManager, getProfileTools, hasProperty, service, setCatalogTools, setPriceListManager, setProfileTools
 
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

CLASS_VERSION

public static final java.lang.String CLASS_VERSION
Class version string

See Also:
Constant Field Values

STORE_ID_COOKIE_NAME

public static final java.lang.String STORE_ID_COOKIE_NAME
See Also:
Constant Field Values

SESSION_BEAN_PATH

public static final java.lang.String SESSION_BEAN_PATH
See Also:
Constant Field Values
Constructor Detail

InternationalizationShoppingContextServlet

public InternationalizationShoppingContextServlet()
Method Detail

getInternationalizationStoreConfigurationContainer

public InternationalizationStoreConfigurationContainer getInternationalizationStoreConfigurationContainer()
Returns:
i18ned store configuration container

setInternationalizationStoreConfigurationContainer

public void setInternationalizationStoreConfigurationContainer(InternationalizationStoreConfigurationContainer pInternationalizationStoreConfigurationContainer)
Parameters:
pInternationalizationStoreConfigurationContainer - i18ned store configuration container

getInternationalizationPropertyManager

public InternationalizationPropertyManager getInternationalizationPropertyManager()
Returns:
i18n property manager

setInternationalizationPropertyManager

public void setInternationalizationPropertyManager(InternationalizationPropertyManager pInternationalizationPropertyManager)
Parameters:
pInternationalizationPropertyManager - i18n property manager

setShoppingContext

protected void setShoppingContext(atg.servlet.DynamoHttpServletRequest pRequest,
                                  atg.servlet.DynamoHttpServletResponse pResponse,
                                  atg.userprofiling.Profile pProfile)
                           throws java.io.IOException,
                                  javax.servlet.ServletException,
                                  atg.repository.RepositoryException
Given the profile and the context path this method sets up the appropriate shopping context for the user. It sets the user's catalog, priceList, and salePriceList properties.

Overrides:
setShoppingContext in class ShoppingContextServlet
Parameters:
pRequest - - http request
pResponse - - http response
pProfile - - profile
Throws:
java.io.IOException - if IO error occurs
javax.servlet.ServletException - if servlet error occurs
atg.repository.RepositoryException - if repository error occurs

setCatalogAndPricelists

protected void setCatalogAndPricelists(atg.userprofiling.Profile pProfile,
                                       InternationalizationStoreConfiguration pStoreConfiguration)
                                throws javax.servlet.ServletException
Sets catalog and price lists.

Parameters:
pProfile - Profile
pStoreConfiguration - i18n store configuration
Throws:
javax.servlet.ServletException - if error occures

createStoreIdCookie

protected void createStoreIdCookie(atg.servlet.DynamoHttpServletRequest pRequest,
                                   atg.servlet.DynamoHttpServletResponse pResponse,
                                   java.lang.String pStoreId)
Creates cookie from the store id and stores in pResponse

Parameters:
pRequest - DynamoHttpServletRequest
pResponse - DynamoHttpServletResponse
pStoreId - store id