public class RequestUtils
extends java.lang.Object
| Constructor and Description |
|---|
RequestUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<java.lang.String> |
getCompositeFieldValues(org.apache.cocoon.environment.Request request,
java.lang.String compositeFieldName,
java.lang.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 java.util.List<java.lang.String> |
getFieldValues(org.apache.cocoon.environment.Request request,
java.lang.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,
java.lang.String param)
Obtain a parameter from the given request as an int.
|
public static java.util.List<java.lang.String> getCompositeFieldValues(org.apache.cocoon.environment.Request request,
java.lang.String compositeFieldName,
java.lang.String componentFieldName)
request - The request containing the form informationcompositeFieldName - The fieldName of the composite fieldcomponentFieldName - The fieldName of the component fieldpublic static java.util.List<java.lang.String> getFieldValues(org.apache.cocoon.environment.Request request,
java.lang.String fieldName)
request - The request containing the form informationfieldName - The fieldName of the composite fieldpublic static int getIntParameter(org.apache.cocoon.environment.Request request,
java.lang.String param)
-1 is
returned if the parameter is garbled or does not exist.request - the HTTP requestparam - the name of the parameterCopyright © 2018 DuraSpace. All Rights Reserved.