public class RequestUtils extends Object
| Constructor and Description |
|---|
RequestUtils() |
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
getCompositeFieldValues(org.apache.cocoon.environment.Request request,
String compositeFieldName,
String componentFieldName)
Get values for a field from a DRI multi value field, since a field may
have multiple values this method will check for fieldName + "_n" until
it does not find any more values.
|
static List<String> |
getFieldValues(org.apache.cocoon.environment.Request request,
String fieldName)
Get values from a DRI multi value field, since a field may have multiple
values this method will check for fieldName + "_n" until it does not
find any more values.
|
static int |
getIntParameter(org.apache.cocoon.environment.Request request,
String param)
Obtain a parameter from the given request as an int.
|
public static List<String> getCompositeFieldValues(org.apache.cocoon.environment.Request request, String compositeFieldName, String componentFieldName)
request - The request containing the form informationcompositeFieldName - The fieldName of the composite fieldcomponentFieldName - The fieldName of the component fieldpublic static List<String> getFieldValues(org.apache.cocoon.environment.Request request, String fieldName)
request - The request containing the form informationfieldName - The fieldName of the composite fieldpublic static int getIntParameter(org.apache.cocoon.environment.Request request,
String param)
-1 is
returned if the parameter is garbled or does not exist.request - the HTTP requestparam - the name of the parameterCopyright © 2014 DuraSpace. All Rights Reserved.