public class ScheduledOrderInfo extends DynamoServlet
input params
output parameters
oparams
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
static ParameterName |
INPUT_PARAM_LOCALE
the input parameter name for the schdule item parameter
|
static ParameterName |
INPUT_PARAM_SCHEDULE_ITEM
the input parameter name for the schdule item parameter
|
static ParameterName |
INPUT_PARAM_SCHEDULE_ITEM_ID
the input parameter name for the schdule item id parameter
|
protected ScheduledOrderTools |
mScheduleOrderTools |
static java.lang.String |
OPARAM_OUTPUT
the name for the output oparam
|
static java.lang.String |
OUTPUT_PARAM_READABLEDULE_SCHEDULE
the name for the readableSchedule output parameter.
|
static java.lang.String |
OUTPUT_PARAM_SCHEDULE
the name for the schedule output parameter.
|
static java.lang.String |
OUTPUT_PARAM_SCHEDULE_CLASSNAME
the name for the readableSchedule output parameter.
|
static java.lang.String |
OUTPUT_PARAM_SCHEDULED_ORDER_ITEM
the name for the readableSchedule output parameter.
|
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 |
---|
ScheduledOrderInfo() |
Modifier and Type | Method and Description |
---|---|
java.util.Locale |
getDefaultLocale()
Returns property DefaultLocale.
|
protected java.lang.String |
getReadableSchedule(CalendarSchedule pSchedule,
java.util.Locale pLocale)
Generates the readable string representation of the CalendarSchedule.
|
protected java.lang.String |
getReadableSchedule(PeriodicSchedule pSchedule,
java.util.Locale pLocale)
Generates the readable string representation of the PeriodicSchedule.
|
protected java.lang.String |
getReadableSchedule(Schedule pSchedule,
java.util.Locale pLocale)
Generates the readable string representation of the Schedule.
|
ScheduledOrderTools |
getScheduledOrderTools()
returns a reference the scheduled order tools
|
java.util.Locale |
getUserLocale(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Returns the locale associated with the request.
|
boolean |
isUseRequestLocale()
Returns property UseRequestLocale
|
void |
service(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Looks up the scheduled order items in the repository
|
void |
setDefaultLocale(java.util.Locale pDefaultLocale)
Sets property DefaultLocale
|
void |
setInfoParametersForScheduledOrderItem(RepositoryItem pScheduledOrderItem,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Called once for each scheduled order item to set output parameters with related info
|
void |
setScheduledOrderTools(ScheduledOrderTools pScheduleOrderTools) |
void |
setUseRequestLocale(boolean pUseRequestLocale)
Sets property UseRequestLocale
|
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 ParameterName INPUT_PARAM_SCHEDULE_ITEM_ID
public static final ParameterName INPUT_PARAM_SCHEDULE_ITEM
public static final ParameterName INPUT_PARAM_LOCALE
public static final java.lang.String OUTPUT_PARAM_SCHEDULED_ORDER_ITEM
public static final java.lang.String OUTPUT_PARAM_READABLEDULE_SCHEDULE
public static final java.lang.String OUTPUT_PARAM_SCHEDULE
public static final java.lang.String OUTPUT_PARAM_SCHEDULE_CLASSNAME
public static final java.lang.String OPARAM_OUTPUT
protected ScheduledOrderTools mScheduleOrderTools
public ScheduledOrderTools getScheduledOrderTools()
public void setScheduledOrderTools(ScheduledOrderTools pScheduleOrderTools)
public void setDefaultLocale(java.util.Locale pDefaultLocale)
public java.util.Locale getDefaultLocale()
public void setUseRequestLocale(boolean pUseRequestLocale)
public boolean isUseRequestLocale()
public java.util.Locale getUserLocale(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
locale
. This value can be
either a java.util.Locale object or a String which represents the locale.
Next if the useRequestLocale
property is true, then the locale
of the request will be returned. Finally, if the locale cannot be determined,
the the defaultLocale
property is used.public void service(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
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.public void setInfoParametersForScheduledOrderItem(RepositoryItem pScheduledOrderItem, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
pScheduledOrderItem
- pRequest
- protected java.lang.String getReadableSchedule(Schedule pSchedule, java.util.Locale pLocale)
pSchedule
- the SchedulepLocale
- the locale to use for resourcing the readable value#getReadableSchedule(CalendarSchedule)
,
#getReadableSchedule(PeriodicSchedule)
protected java.lang.String getReadableSchedule(PeriodicSchedule pSchedule, java.util.Locale pLocale)
By default this method returns the toString implementation of the
PeriodicSchedule
object
pSchedule
- the PeriodicSchedulepLocale
- the locale to use for resourcing the readable valueprotected java.lang.String getReadableSchedule(CalendarSchedule pSchedule, java.util.Locale pLocale)
By default this method returns the toString implementation of the
CalendarSchedule
object
pSchedule
- the PeriodicSchedulepLocale
- the locale to use for resourcing the readable value