|
||||||||||
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.nucleus.servlet.ServletService
atg.nucleus.servlet.HttpServletService
atg.servlet.DynamoServlet
atg.projects.store.pricing.PriceShippingMethodDroplet
public class PriceShippingMethodDroplet
This Dynamo Servlet Bean is used to determine shipping costs for the shipping
group with specified shipping method. The class's service method calls into
the ShippingPricingEngine priceShippingGroup
method to get the
ShippingPriceInfo for the specified shipping group and the shipping method.
The determined shipping cost is put into the output parameter.
The following parameters are required:
The following output parameter is defined when the service method is invoked:
This is an example of using this droplet to provide a price for the shipping with the specified shipping method.
<dsp:droplet name="/atg/store/pricing/PriceShippingMethod""> <dsp:param name="shippingGroup" param="shippingGroup"/"> <dsp:param name="shippingMethod" param="shippingMethod"/"> <dsp:oparam name="output""> <dsp:getvalueof var="shippingPrice" param="shippingPrice" /"> <fmt:formatNumber value="${shippingPrice}" type="currency" /"> </dsp:oparam"> </dsp:droplet">
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Fields inherited from class atg.servlet.DynamoServlet |
---|
mAllowCleanupRequest, mParameters |
Fields inherited from class atg.nucleus.servlet.ServletService |
---|
SERVLET_INFO_KEY |
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 | |
---|---|
PriceShippingMethodDroplet()
|
Method Summary | |
---|---|
java.util.Locale |
getDefaultLocale()
the default locale for which shipping method should be priced |
atg.commerce.order.Order |
getOrder()
Return the Order property. |
atg.commerce.pricing.PricingTools |
getPricingTools()
|
atg.userprofiling.Profile |
getProfile()
Return the Profile property. |
protected atg.commerce.order.ShippingGroup |
getShippingGroup(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Get the shipping group from that we should price with the specified shipping method. |
protected java.util.Locale |
getUserLocale(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Returns the locale associated with the request. |
atg.commerce.pricing.PricingModelHolder |
getUserPricingModels()
Return the UserPricingModels property. |
void |
service(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Performs the pricing of specified shipping method. |
void |
setDefaultLocale(java.util.Locale pDefaultLocale)
the default locale for which shipping method should be priced |
void |
setOrder(atg.commerce.order.Order pOrder)
Set the Order property. |
void |
setPricingTools(atg.commerce.pricing.PricingTools pPricingTools)
|
void |
setProfile(atg.userprofiling.Profile pProfile)
Set the Profile property. |
void |
setUserPricingModels(atg.commerce.pricing.PricingModelHolder pUserPricingModels)
Set the UserPricingModels property. |
Methods inherited from class atg.servlet.DynamoServlet |
---|
doDelete, doGet, doPost, doPut, getParameter, getParameters, getServletContext, service, service, setParameter |
Methods inherited from class atg.nucleus.servlet.ServletService |
---|
destroy, getServletConfig, getServletInfo, init, setServletInfo |
Methods inherited from class atg.nucleus.TimedOperationService |
---|
getAverageRequestHandlingTime, getHandledRequestCount, getRequestStartTime, getTotalRequestHandlingTime, isKeepingStatistics, notifyHandledRequest, resetStatistics, setKeepingStatistics |
Methods inherited from class atg.nucleus.GenericService |
---|
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, 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 |
Field Detail |
---|
public static final java.lang.String CLASS_VERSION
Constructor Detail |
---|
public PriceShippingMethodDroplet()
Method Detail |
---|
public atg.commerce.pricing.PricingTools getPricingTools()
public void setPricingTools(atg.commerce.pricing.PricingTools pPricingTools)
pPricingTools
- sets new pricing tools componentpublic void setDefaultLocale(java.util.Locale pDefaultLocale)
pDefaultLocale
- new value to setpublic java.util.Locale getDefaultLocale()
public void setOrder(atg.commerce.order.Order pOrder)
pOrder
- an Order
valuepublic atg.commerce.order.Order getOrder()
Order
valuepublic void setProfile(atg.userprofiling.Profile pProfile)
pProfile
- a Profile
valuepublic atg.userprofiling.Profile getProfile()
Profile
valuepublic void setUserPricingModels(atg.commerce.pricing.PricingModelHolder pUserPricingModels)
pUserPricingModels
- a PricingModelHolder
valuepublic atg.commerce.pricing.PricingModelHolder getUserPricingModels()
PricingModelHolder
valuepublic void service(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
service
in class atg.servlet.DynamoServlet
pRequest
- the request to be processedpResponse
- the response object for this request
javax.servlet.ServletException
- an application specific error occurred processing this request
java.io.IOException
- an error occurred reading data from the request or writing
data to the response.protected atg.commerce.order.ShippingGroup getShippingGroup(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the request to be processedpResponse
- the response object for this request
javax.servlet.ServletException
- an application specific error occurred processing this request
java.io.IOException
- an error occurred reading data from the request or writing
data to the response.protected java.util.Locale getUserLocale(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
defaultLocale
property is used.
pRequest
- the request to be processedpResponse
- the response object for this request
javax.servlet.ServletException
- an application specific error occurred processing this request
java.io.IOException
- an error occurred reading data from the request or writing
data to the response.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |