public class GiftlistShoppingCartQuantityDroplet extends DynamoServlet
This servlet looks through handling instructions for a commerce item, it creates a map of giftlistId's and a sum of quantities for that giftlistId
This servlet is configurable using the properties file. For example: GiftlistShoppingCartQuantityDroplet.properties
$class=atg.commerce.gifts.GiftlistShoppingCartQuantityDroplet $scope=request shoppingCart=/atg/commerce/ShoppingCart handlingInstructionManager=/atg/commerce/order/HandlingInstructionManagerThe invocation of the droplet can then be invoked with the following parameters:
<DROPLET bean="/atg/commerce/gifts/GiftlistShoppingCartQuantityDroplet"> <PARAM NAME="commerceItemId" VALUE="param:commerceItemId"> <PARAM NAME="order" VALUE="param:order"> <OPARAM NAME="output"> Output </OPARAM> <OPARAM NAME="error"> Error </OPARAM> </DROPLET>The required input parameters for this servlet are:
The output parameters for this servlet are:
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
static java.lang.String |
COUNT |
static java.lang.String |
ELEMENT |
static ParameterName |
ELEMENT_NAME |
static ParameterName |
EMPTY |
static java.lang.String |
ERRORMESSAGE
The output parameter that includes the error message.
|
static java.lang.String |
INDEX |
static ParameterName |
INDEX_NAME |
static java.lang.String |
KEY |
static ParameterName |
KEY_NAME |
protected HandlingInstructionManager |
mHandlingInstructionManager |
protected static java.lang.String |
MSG_EXCEPTION |
protected static java.lang.String |
MSG_NO_COMMERCE_ITEM_ID |
static ParameterName |
OUTPUT_END |
static ParameterName |
OUTPUT_START |
static java.lang.String |
SIZE |
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 |
---|
GiftlistShoppingCartQuantityDroplet() |
Modifier and Type | Method and Description |
---|---|
HandlingInstructionManager |
getHandlingInstructionManager()
Returns property handlingInstructionManager
|
void |
service(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method provides the default implementation of service,
by dispatching to conventionally named methods which begin
with "do".
|
protected void |
setElementParameter(DynamoHttpServletRequest pReq,
java.lang.String pElementName,
java.lang.Object pValue)
This method can be overridden by sub-classes to customize how the element
parmeter is set.
|
void |
setHandlingInstructionManager(HandlingInstructionManager pHandlingInstructionManager)
Sets property handlingInstructionManager
|
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 java.lang.String KEY
public static final java.lang.String ELEMENT
public static final java.lang.String INDEX
public static final java.lang.String COUNT
public static final java.lang.String SIZE
public static final ParameterName OUTPUT_START
public static final ParameterName OUTPUT_END
public static final ParameterName EMPTY
public static final ParameterName ELEMENT_NAME
public static final ParameterName INDEX_NAME
public static final ParameterName KEY_NAME
public static final java.lang.String ERRORMESSAGE
protected static final java.lang.String MSG_NO_COMMERCE_ITEM_ID
protected static final java.lang.String MSG_EXCEPTION
protected HandlingInstructionManager mHandlingInstructionManager
public HandlingInstructionManager getHandlingInstructionManager()
public void setHandlingInstructionManager(HandlingInstructionManager pHandlingInstructionManager)
pHandlingInstructionManager
- the value to set for property handlingInstructionManagerprotected void setElementParameter(DynamoHttpServletRequest pReq, java.lang.String pElementName, java.lang.Object pValue)
public void service(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
DynamoServlet
service
in class DynamoServlet
pRequest
- the request to be processedpResponse
- the response object for this requestjavax.servlet.ServletException
- an application specific error occurred
processing this requestjava.io.IOException
- an error occurred reading data from the request
or writing data to the response.