public class TableForEach extends DynamoServlet
The output parameter is rendered for each "cell" in the table. Note that if the array size is not a multiple of the number of columns, output is rendered with a null element parameter for the remaining columns in the last row. A Switch droplet can be used to conditionally "fill in" the missing items.
A complete description of the parameters to the TableForEach droplet are:
ForEach
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ARRAY |
static java.lang.String |
CLASS_VERSION
Class version string
|
static java.lang.String |
COLUMN_INDEX |
static java.lang.String |
COUNT |
static java.lang.String |
ELEMENT |
static java.lang.String |
ELEMENT_NAME |
static java.lang.String |
EMPTY |
static java.lang.String |
INDEX |
static java.lang.String |
INDEX_NAME |
static java.lang.String |
KEY |
static java.lang.String |
NUM_COLUMNS |
static java.lang.String |
OUTPUT |
static java.lang.String |
OUTPUT_END |
static java.lang.String |
OUTPUT_ROW_END |
static java.lang.String |
OUTPUT_ROW_START |
static java.lang.String |
OUTPUT_START |
static java.lang.String |
ROW_INDEX |
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 |
---|
TableForEach() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getArray(DynamoHttpServletRequest pRequest)
Gets the array-like value (e.g., array, Vector, Enumeration)
to be used by this droplet from the request.
|
void |
service(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Called when a request needs to be processed.
|
protected void |
serviceArray(java.lang.Object pArray,
int pNumColumns,
java.lang.String pIndexName,
java.lang.String pElementName,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse,
java.lang.Class pOriginalClass)
Renders the range operation for array objects
|
protected void |
serviceCollection(java.util.Collection pCollection,
int pNumColumns,
java.lang.String pIndexName,
java.lang.String pElementName,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Renders the range operation for Collection objects
|
protected void |
serviceDictionary(java.util.Dictionary pDictionary,
int pNumColumns,
java.lang.String pIndexName,
java.lang.String pElementName,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Renders the range operation for Dictionary objects
|
protected void |
serviceEnumeration(java.util.Enumeration pEnumeration,
int pNumColumns,
java.lang.String pIndexName,
java.lang.String pElementName,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Renders the range operation for Enumeration objects
|
protected void |
serviceIterator(java.util.Iterator pIterator,
int pNumColumns,
java.lang.String pIndexName,
java.lang.String pElementName,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Renders the range operation for Iterator objects
|
protected void |
serviceList(java.util.List pList,
int pNumColumns,
java.lang.String pIndexName,
java.lang.String pElementName,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Renders the range operation for List objects
|
protected void |
serviceMap(java.util.Map pMap,
int pNumColumns,
java.lang.String pIndexName,
java.lang.String pElementName,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Renders the range operation for Map objects
|
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 ARRAY
public static final java.lang.String NUM_COLUMNS
public static final java.lang.String INDEX_NAME
public static final java.lang.String ELEMENT_NAME
public static final java.lang.String OUTPUT_START
public static final java.lang.String OUTPUT_END
public static final java.lang.String OUTPUT_ROW_START
public static final java.lang.String OUTPUT_ROW_END
public static final java.lang.String OUTPUT
public static final java.lang.String EMPTY
public static final java.lang.String ROW_INDEX
public static final java.lang.String COLUMN_INDEX
public static final java.lang.String INDEX
public static final java.lang.String COUNT
public static final java.lang.String ELEMENT
public static final java.lang.String KEY
public java.lang.Object getArray(DynamoHttpServletRequest pRequest)
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
- if an application specific error
occurred processing this requestjava.io.IOException
- if an error occurred reading data from
the request or writing data to the responseprotected void serviceArray(java.lang.Object pArray, int pNumColumns, java.lang.String pIndexName, java.lang.String pElementName, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse, java.lang.Class pOriginalClass) throws javax.servlet.ServletException, java.io.IOException
pArray
- the object to iteratepNumColumns
- Specifies the number of columns to partition the array into.pIndexName
- the parameter name to use for the indexpElementName
- the parameter name to use for the elementpRequest
- the request to be processedpResponse
- the response object for this requestjavax.servlet.ServletException
- if an application specific error occurred processing this requestjava.io.IOException
- if an error occurred reading data from the request or writing data to the responseprotected void serviceList(java.util.List pList, int pNumColumns, java.lang.String pIndexName, java.lang.String pElementName, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pList
- the object to iteratepNumColumns
- Specifies the number of columns to partition the array into.pIndexName
- the parameter name to use for the indexpElementName
- the parameter name to use for the elementpRequest
- the request to be processedpResponse
- the response object for this requestjavax.servlet.ServletException
- if an application specific error occurred processing this requestjava.io.IOException
- if an error occurred reading data from the request or writing data to the responseprotected void serviceCollection(java.util.Collection pCollection, int pNumColumns, java.lang.String pIndexName, java.lang.String pElementName, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pCollection
- the object to iteratepNumColumns
- Specifies the number of columns to partition the array into.pIndexName
- the parameter name to use for the indexpElementName
- the parameter name to use for the elementpRequest
- the request to be processedpResponse
- the response object for this requestjavax.servlet.ServletException
- if an application specific error occurred processing this requestjava.io.IOException
- if an error occurred reading data from the request or writing data to the responseprotected void serviceIterator(java.util.Iterator pIterator, int pNumColumns, java.lang.String pIndexName, java.lang.String pElementName, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pIterator
- the object to iteratepNumColumns
- Specifies the number of columns to partition the array into.pIndexName
- the parameter name to use for the indexpElementName
- the parameter name to use for the elementpRequest
- the request to be processedpResponse
- the response object for this requestjavax.servlet.ServletException
- if an application specific error occurred processing this requestjava.io.IOException
- if an error occurred reading data from the request or writing data to the responseprotected void serviceEnumeration(java.util.Enumeration pEnumeration, int pNumColumns, java.lang.String pIndexName, java.lang.String pElementName, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pEnumeration
- the object to iteratepNumColumns
- Specifies the number of columns to partition the array into.pIndexName
- the parameter name to use for the indexpElementName
- the parameter name to use for the elementpRequest
- the request to be processedpResponse
- the response object for this requestjavax.servlet.ServletException
- if an application specific error occurred processing this requestjava.io.IOException
- if an error occurred reading data from the request or writing data to the responseprotected void serviceMap(java.util.Map pMap, int pNumColumns, java.lang.String pIndexName, java.lang.String pElementName, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pMap
- the object to iteratepNumColumns
- Specifies the number of columns to partition the array into.pIndexName
- the parameter name to use for the indexpElementName
- the parameter name to use for the elementpRequest
- the request to be processedpResponse
- the response object for this requestjavax.servlet.ServletException
- if an application specific error occurred processing this requestjava.io.IOException
- if an error occurred reading data from the request or writing data to the responseprotected void serviceDictionary(java.util.Dictionary pDictionary, int pNumColumns, java.lang.String pIndexName, java.lang.String pElementName, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pDictionary
- the object to iteratepNumColumns
- Specifies the number of columns to partition the array into.pIndexName
- the parameter name to use for the indexpElementName
- the parameter name to use for the elementpRequest
- the request to be processedpResponse
- the response object for this requestjavax.servlet.ServletException
- if an application specific error occurred processing this requestjava.io.IOException
- if an error occurred reading data from the request or writing data to the response