|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.nucleus.TimedOperationService atg.nucleus.servlet.ServletService atg.nucleus.servlet.HttpServletService atg.servlet.DynamoServlet atg.droplet.ArrayIncludesValue
public class ArrayIncludesValue
This servlet takes an array and a value, and renders the "true" open parameter if the value is in the array, and the "false" open parameter otherwise. The array parameter can be a general Collection (Vectors, Lists, Sets), Iterator, Enumeration, Map, Dictionary or an array.
A complete description of the parameters to the ArrayIncludesValue droplet are:
Field Summary | |
---|---|
static ParameterName |
ARRAY
|
static java.lang.String |
CLASS_VERSION
|
static ParameterName |
FALSE
|
static ParameterName |
TRUE
|
static ParameterName |
VALUE
|
Fields inherited from class atg.servlet.DynamoServlet |
---|
mAllowCleanupRequest, mParameters |
Fields inherited from class atg.nucleus.servlet.ServletService |
---|
SERVLET_INFO_KEY |
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
---|
DEFAULT_LOG_TRACE_STATUS |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
ArrayIncludesValue()
|
Method Summary | |
---|---|
java.lang.Object |
getArray(DynamoHttpServletRequest pReq)
Gets the array-like value (e.g., array, List, Enumeration) to be used by this droplet from the request. |
java.lang.Object |
getValue(DynamoHttpServletRequest pReq)
Gets the value to be used by this droplet from the request. |
protected void |
searchArray(java.lang.Object[] pArray,
java.lang.Object pValue,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Performs the search operation for array objects |
protected void |
searchCollection(java.util.Collection pArray,
java.lang.Object pValue,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Renders the search operation for Collection objects |
protected void |
searchDictionary(java.util.Dictionary pDictionary,
java.lang.Object pValue,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Renders the search operation for Dictionary objects |
protected void |
searchEnumeration(java.util.Enumeration pEnumeration,
java.lang.Object pValue,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Renders the search operation for Enumeration objects |
protected void |
searchIterator(java.util.Iterator pIterator,
java.lang.Object pValue,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Renders the search operation for Iterator objects |
protected void |
searchList(java.util.List pList,
java.lang.Object pValue,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Renders the search operation for List objects |
protected void |
searchMap(java.util.Map pMap,
java.lang.Object pValue,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Renders the search operation for Map objects |
protected void |
searchMapArray(java.util.Map.Entry[] pArray,
java.lang.Object pValue,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Performs the search operation for map array objects |
protected void |
searchPrimitiveArray(java.lang.Object pArray,
java.lang.Object pValue,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Performs the search operation for primitive array objects using the reflection methods to access values in the array. |
void |
service(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method provides the default implementation of service, by dispatching to conventionally named methods which begin with "do". |
Methods inherited from class atg.servlet.DynamoServlet |
---|
doDelete, doGet, doPost, doPut, getParameter, getParameters, getServletContext, service, service, setParameter |
Methods inherited from class atg.nucleus.servlet.ServletService |
---|
destroy, getServletConfig, getServletInfo, init, setServletInfo |
Methods inherited from class atg.nucleus.TimedOperationService |
---|
getAverageRequestHandlingTime, getHandledRequestCount, getRequestStartTime, getTotalRequestHandlingTime, isKeepingStatistics, notifyHandledRequest, resetStatistics, setKeepingStatistics |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
public static final ParameterName ARRAY
public static final ParameterName VALUE
public static final ParameterName TRUE
public static final ParameterName FALSE
Constructor Detail |
---|
public ArrayIncludesValue()
Method Detail |
---|
public java.lang.Object getArray(DynamoHttpServletRequest pReq)
public java.lang.Object getValue(DynamoHttpServletRequest pReq)
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 request
javax.servlet.ServletException
- an application specific error occurred
processing this request
java.io.IOException
- an error occurred reading data from the request
or writing data to the response.protected void searchMapArray(java.util.Map.Entry[] pArray, java.lang.Object pValue, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pArray
- the object to searchpValue
- the value to search forpRequest
- the request to be processedpResponse
- the response object for this request
javax.servlet.ServletException
- if an application specific error occurred processing this request
java.io.IOException
- if an error occurred reading data from the request or writing data to the responseprotected void searchArray(java.lang.Object[] pArray, java.lang.Object pValue, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pArray
- the object to searchpValue
- the value to search forpRequest
- the request to be processedpResponse
- the response object for this request
javax.servlet.ServletException
- if an application specific error occurred processing this request
java.io.IOException
- if an error occurred reading data from the request or writing data to the responseprotected void searchPrimitiveArray(java.lang.Object pArray, java.lang.Object pValue, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pArray
- the object to searchpValue
- the value to search forpRequest
- the request to be processedpResponse
- the response object for this request
javax.servlet.ServletException
- if an application specific error occurred processing this request
java.io.IOException
- if an error occurred reading data from the request or writing data to the responseprotected void searchList(java.util.List pList, java.lang.Object pValue, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pList
- the object to searchpValue
- the value to search forpRequest
- the request to be processedpResponse
- the response object for this request
javax.servlet.ServletException
- if an application specific error occurred processing this request
java.io.IOException
- if an error occurred reading data from the request or writing data to the responseprotected void searchCollection(java.util.Collection pArray, java.lang.Object pValue, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pArray
- the object to searchpValue
- the value to search forpRequest
- the request to be processedpResponse
- the response object for this request
javax.servlet.ServletException
- if an application specific error occurred processing this request
java.io.IOException
- if an error occurred reading data from the request or writing data to the responseprotected void searchIterator(java.util.Iterator pIterator, java.lang.Object pValue, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pIterator
- the object to searchpValue
- the value to search forpRequest
- the request to be processedpResponse
- the response object for this request
javax.servlet.ServletException
- if an application specific error occurred processing this request
java.io.IOException
- if an error occurred reading data from the request or writing data to the responseprotected void searchEnumeration(java.util.Enumeration pEnumeration, java.lang.Object pValue, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pEnumeration
- the object to searchpValue
- the value to search forpRequest
- the request to be processedpResponse
- the response object for this request
javax.servlet.ServletException
- if an application specific error occurred processing this request
java.io.IOException
- if an error occurred reading data from the request or writing data to the responseprotected void searchMap(java.util.Map pMap, java.lang.Object pValue, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pMap
- the object to searchpValue
- the value to search forpRequest
- the request to be processedpResponse
- the response object for this request
javax.servlet.ServletException
- if an application specific error occurred processing this request
java.io.IOException
- if an error occurred reading data from the request or writing data to the responseprotected void searchDictionary(java.util.Dictionary pDictionary, java.lang.Object pValue, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pDictionary
- the object to searchpValue
- the value to search forpRequest
- the request to be processedpResponse
- the response object for this request
javax.servlet.ServletException
- if an application specific error occurred processing this request
java.io.IOException
- if an error occurred reading data from the request or writing data to the response
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |