public class ItemsSplitbyType extends DynamoServlet
order
and type
parameter
and returns whether the type
is split at the item level instead
of order level.
The parameters are:
-costCenter
-paymentGroup.
For costCenter this servlet checks whether Cost Centers are split at item level,
For paymentGroup this servlet checks whether Paymnet Groups are split at item level.
<DROPLET BEAN="ItemsSplitByType"> <PARAM NAME="order" VALUE="param:order"> <PARAM NAME="type" VALUE="paymentGroup"> <OPARAM NAME="true"> ............. </OPARAM> <OPARAM NAME="false"> ............ </OPARAM> </DROPLET>In the above case if the Payment Groups were split at Item level then the oparam of value
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
static java.lang.String |
COSTCENTER |
static java.lang.String |
FALSE |
static java.lang.String |
MISSING_ORDER |
static java.lang.String |
MISSING_SPLITTYPE |
static java.lang.String |
MY_RESOURCE_NAME |
static java.lang.String |
PAYMENTGROUP |
static java.lang.String |
TRUE |
static java.lang.String |
TYPE |
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 |
---|
ItemsSplitbyType() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkType(Order pOrder,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method finds whether order is split at item-level for cost centers
or payment groups.
|
void |
service(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method provides the default implementation of service,
by dispatching to conventionally named methods which begin
with "do".
|
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, toString
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 TRUE
public static final java.lang.String FALSE
public static final java.lang.String TYPE
public static final java.lang.String PAYMENTGROUP
public static final java.lang.String COSTCENTER
public static final java.lang.String MY_RESOURCE_NAME
public static final java.lang.String MISSING_ORDER
public static final java.lang.String MISSING_SPLITTYPE
public void service(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws java.io.IOException, javax.servlet.ServletException
DynamoServlet
service
in class DynamoServlet
pRequest
- the request to be processedpResponse
- the response object for this requestjava.io.IOException
- an error occurred reading data from the request
or writing data to the response.javax.servlet.ServletException
- an application specific error occurred
processing this requestprotected void checkType(Order pOrder, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws java.io.IOException, javax.servlet.ServletException
pOrder
- is the Order which contains items.pRequest
- pResponse
- java.io.IOException
javax.servlet.ServletException