abstract class RequestArguments extends ServiceArgumentsParser
| Constructor and Description |
|---|
RequestArguments() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assignArgument(int idx,
BaseDataType bdt,
java.lang.String sval)
Assign the given argument to the specified value.
|
(package private) <T> T |
getProperty(java.lang.Object ref,
java.lang.String property,
java.lang.Class<T> type)
Gets the object's property of the given type.
|
protected java.lang.String |
parseArgumentInt(java.lang.String body,
java.lang.String source,
javax.servlet.http.HttpServletRequest request)
Parse the argument, by interpreting the request.
|
protected java.lang.Object[] |
parseExtentArgument(java.lang.String body,
javax.servlet.http.HttpServletRequest request,
int idx,
java.lang.String source,
java.lang.String type,
int extent)
Parse an extent argument.
|
private java.lang.String |
readAttributes(java.lang.Object ref)
Read the fields from the specified instance.
|
private java.lang.String |
readHeaders(javax.servlet.http.HttpServletRequest request)
Read the headers from the request.
|
createDataset, createTable, loadDataSet, loadTable, notAValue, parseArguments, parseArguments, parseArguments, unknownInstanceprotected java.lang.Object[] parseExtentArgument(java.lang.String body,
javax.servlet.http.HttpServletRequest request,
int idx,
java.lang.String source,
java.lang.String type,
int extent)
parseExtentArgument in class ServiceArgumentsParserbody - The HTTP body.request - The request payload.idx - The argument's index.source - The arguments's source.type - The arguments's type.extent - The arguments's length.protected void assignArgument(int idx,
BaseDataType bdt,
java.lang.String sval)
throws RequestArgumentError
assignArgument in class ServiceArgumentsParseridx - The argument's index.bdt - The argument's BaseDataType instance (may be null).sval - The string representation of this argument.RequestArgumentErrorprotected java.lang.String parseArgumentInt(java.lang.String body,
java.lang.String source,
javax.servlet.http.HttpServletRequest request)
throws java.io.IOException
parseArgumentInt in class ServiceArgumentsParserbody - The request body.source - The parameter's encoded source.request - The request payload.java.io.IOExceptionprivate java.lang.String readHeaders(javax.servlet.http.HttpServletRequest request)
request - The request payload.private java.lang.String readAttributes(java.lang.Object ref)
ref - The instance to resolve fields from.String fields which have a getter.<T> T getProperty(java.lang.Object ref,
java.lang.String property,
java.lang.Class<T> type)
ref - The given objectproperty - The target property's nametype - The target property's type