public class UnitPriceDetailDroplet extends DynamoServlet
Given a CommerceItem, this droplet will return its unit price details in the format of a UnitPriceBean.
This droplet takes the following input parameters:
The requested beans parameter works in conjunction with an order and will be ignored if no order is passed in. If both an item and an order are passed in, the droplet will generate beans for the order.
This droplet renders the following oparams:
This droplet sets the following output parameters:
Example:
<dsp:droplet bean="/atg/b2cblueprint/droplet/PriceDetailDroplet"> <dsp:param name="item" param="currentItem"> <dsp:oparam name="output"> <dsp:droplet name="ForEach"> <dsp:param name="array" param="unitPriceBeans"> <dsp:oparam name="output"> <dsp:valueof param="element.unitPrice"/> <dsp:valueof param="element.quantity"/> <dsp:valueof param="element.pricingModel"/> </dsp:oparam> </dsp:droplet name="ForEach"> </dsp:oparam> </dsp:droplet>
UnitPriceBean
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string.
|
static ParameterName |
ITEM
Item parameter name.
|
protected PricingTools |
mPricingTools
Pricing tools.
|
static ParameterName |
ORDER
Order parameter name.
|
static ParameterName |
OUTPUT
Output parameter name.
|
static java.lang.String |
PRICEBEANS
Unit price beans parameter name.
|
static ParameterName |
REQUESTED_BEANS
Requested beans parameter name.
|
mAllowCleanupRequest, mParameters
SERVLET_INFO_KEY
SERVICE_INFO_KEY
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
UnitPriceDetailDroplet() |
Modifier and Type | Method and Description |
---|---|
PricingTools |
getPricingTools() |
void |
service(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
See API definition.
|
void |
setPricingTools(PricingTools pPricingTools) |
doDelete, doGet, doPost, doPut, getParameter, getParameters, getServletContext, init, service, service, setParameter
destroy, getServletConfig, getServletInfo, setServletInfo
getAverageRequestHandlingTime, getHandledRequestCount, getRequestStartTime, getTotalRequestHandlingTime, isKeepingStatistics, notifyHandledRequest, resetStatistics, setKeepingStatistics
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
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public static java.lang.String CLASS_VERSION
public static final ParameterName ITEM
public static final ParameterName OUTPUT
public static final ParameterName ORDER
public static final ParameterName REQUESTED_BEANS
public static final java.lang.String PRICEBEANS
protected PricingTools mPricingTools
public PricingTools getPricingTools()
public void setPricingTools(PricingTools pPricingTools)
pPricingTools
- - the pricing tools to set.public void service(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
service
in class DynamoServlet
pRequest
- - http requestpResponse
- - http responsejavax.servlet.ServletException
- if an error occursjava.io.IOException
- if an error occurs