|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RequestItem
A request to pass to a bound service handler
| Field Summary | |
|---|---|
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
|
| Method Summary | ||
|---|---|---|
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 |
|
|
getTypedParameter(String parameterName,
Class<T> dataTypeClass)
Converts a parameter into an object using a converter |
|
|
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 |
|
| Field Detail |
|---|
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
| Method Detail |
|---|
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 to
String getParameter(String paramName)
paramName - the param name to get
String getParameter(String paramName,
String defaultValue)
paramName - the param name to getdefaultValue - the default value of the parameter
List<String> getListParameter(String paramName)
paramName - The parameter
FormDataItem getFormMimePart(String partName)
partName - the part name to retrieve
Object getAttribute(String val)
val - the localized string variable for this request
void setAttribute(String val,
Object obj)
val - string valueobj - an object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||