public interface RequestItem
| Modifier and Type | Field and Description |
|---|---|
static String |
APP_ID |
static String |
APP_SUBSTITUTION_TOKEN |
static String |
COUNT |
static int |
DEFAULT_COUNT |
static int |
DEFAULT_START_INDEX |
static String |
FIELDS |
static String |
FILTER_BY |
static String |
FILTER_OPERATION |
static String |
FILTER_VALUE |
static String |
SORT_BY |
static String |
SORT_ORDER |
static String |
START_INDEX |
| Modifier and Type | Method and Description |
|---|---|
String |
getAppId()
Gets the Opensocial App ID for this request
|
Object |
getAttribute(String val)
Gets an attribute for this request.
|
int |
getCount()
Gets the value of the count parameter
|
Set<String> |
getFields()
Gets the unique set of fields from the request
|
Set<String> |
getFields(Set<String> defaultValue)
Get the unique set of fields from the request with defaults
|
String |
getFilterBy()
Gets the value of the filterBy parameter
|
FilterOperation |
getFilterOperation()
Gets the value of the filterOperation parameter
|
String |
getFilterValue()
Gets the value of the filterValue parameter
|
FormDataItem |
getFormMimePart(String partName)
Returns MIME content data for multipart/mixed form submissions
|
List<String> |
getListParameter(String paramName)
Tries to get a list of values for a specified parameter.
|
String |
getParameter(String paramName)
Gets the specified parameter as a string
|
String |
getParameter(String paramName,
String defaultValue)
Gets the specified parameter as a string, with a default value
|
String |
getSortBy()
Gets the value of the sortBy parameter
|
SortOrder |
getSortOrder()
Gets the value of the sortOrder parameter
|
int |
getStartIndex()
Gets the value of the startIndex parameter
|
SecurityToken |
getToken()
Returns the security token of this request
|
<T> T |
getTypedParameter(String parameterName,
Class<T> dataTypeClass)
Converts a parameter into an object using a converter
|
<T> T |
getTypedRequest(Class<T> dataTypeClass)
Assume that all the parameters in the request belong to single aggregate
type and convert to it.
|
Date |
getUpdatedSince()
Gets the value of the updatedSince parameter
|
void |
setAttribute(String val,
Object obj)
Sets an attribute on this request object
|
static final String APP_ID
static final String START_INDEX
static final String COUNT
static final String SORT_BY
static final String SORT_ORDER
static final String FILTER_BY
static final String FILTER_OPERATION
static final String FILTER_VALUE
static final String FIELDS
static final int DEFAULT_START_INDEX
static final int DEFAULT_COUNT
static final String APP_SUBSTITUTION_TOKEN
String getAppId()
Date getUpdatedSince()
int getStartIndex()
int getCount()
String getSortBy()
SortOrder getSortOrder()
String getFilterBy()
FilterOperation getFilterOperation()
String getFilterValue()
Set<String> getFields()
Set<String> getFields(Set<String> defaultValue)
defaultValue - returned if no fields are specified in the request.SecurityToken getToken()
<T> T getTypedParameter(String parameterName, Class<T> dataTypeClass)
T - The type of this objectparameterName - the name of the parameter with data to convertdataTypeClass - The class to make<T> T getTypedRequest(Class<T> dataTypeClass)
dataTypeClass - the class to convert toString getParameter(String paramName)
paramName - the param name to getString getParameter(String paramName, String defaultValue)
paramName - the param name to getdefaultValue - the default value of the parameterList<String> getListParameter(String paramName)
paramName - The parameterFormDataItem getFormMimePart(String partName)
partName - the part name to retrieveObject getAttribute(String val)
val - the localized string variable for this requestCopyright © 2007-2012. All Rights Reserved.