|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.app.xmlui.utils.RequestUtils
public class RequestUtils
General utilities for common operations on Request objects.
| Constructor Summary | |
|---|---|
RequestUtils()
|
|
| Method Summary | |
|---|---|
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" untill 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" untill 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RequestUtils()
| Method Detail |
|---|
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 field.componentFieldName - The fieldName of the component field
public static List<String> getFieldValues(org.apache.cocoon.environment.Request request,
String fieldName)
request - the request containing the form informationfieldName - The fieldName of the composite field.
public 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 parameter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||