|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwater.Iced
water.api.Constants
water.api.RequestStatics
water.api.RequestArguments
public class RequestArguments
All arguments related classes are defined in this guy. Argument is the base class for all arguments, which then branches to different still abstract subclasses that specify how are any given HTML input elements being drawn. From these a proper Arguments that define particular value types are then subclassed. When an argument is created, its pointer is stored in the _arguments array list so that the request knows how many arguments and in which order it has. Because request objects and therefore also argument objects one per application, while the codepath can be multithreaded (server decides this), the argument state is not preserved in the argument itself, but in the Record static object that is kept thread local and must be properly initialized at each iteration by calling reset() method on the argument. See the respective classes for more details. NOTE add more arguments to this class as they are needed and keep them here.
Nested classes/interfaces inherited from class water.api.RequestStatics |
---|
RequestStatics.RequestType |
Nested classes/interfaces inherited from class water.api.Constants |
---|
Constants.Extensions, Constants.Schemes, Constants.Suffixes |
Field Summary | |
---|---|
protected java.util.ArrayList<RequestArguments.Argument> |
_arguments
List of arguments for the request. |
protected static java.lang.String |
_queryHtml
|
Constructor Summary | |
---|---|
RequestArguments()
|
Method Summary | |
---|---|
java.util.ArrayList<RequestArguments.Argument> |
arguments()
|
protected com.google.gson.JsonObject |
argumentsToJson()
Returns a json object containing all arguments specified to the page. |
protected static int |
frameColumnNameToIndex(Frame fr,
java.lang.String input,
boolean namesOnly)
|
protected static java.lang.String[] |
vaCategoryNames(ValueArray.Column col,
int maxClasses)
|
protected static java.lang.String[] |
vaCategoryNames(ValueArray.Column modelCol,
ValueArray.Column dataCol,
int maxClasses)
Compute union of categories in model column and data column. |
protected static int |
vaColumnNameToIndex(ValueArray va,
java.lang.String input)
This rule of searching for matching names, and only if that fails do we attempt a number parse for a zero-based column id, is used exactly for defining selected columns in the JSON 'cols' argument. |
Methods inherited from class water.api.RequestStatics |
---|
checkJsonName, encodeRedirectArgs, JSON2HTML, jsonError, requestName, Str2JSON |
Methods inherited from class water.Iced |
---|
clone, frozenType, init, newInstance, read, toDocField, write, writeJSON, writeJSONFields |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected transient java.util.ArrayList<RequestArguments.Argument> _arguments
protected static final java.lang.String _queryHtml
Constructor Detail |
---|
public RequestArguments()
Method Detail |
---|
protected com.google.gson.JsonObject argumentsToJson()
protected static int vaColumnNameToIndex(ValueArray va, java.lang.String input)
protected static int frameColumnNameToIndex(Frame fr, java.lang.String input, boolean namesOnly)
protected static java.lang.String[] vaCategoryNames(ValueArray.Column modelCol, ValueArray.Column dataCol, int maxClasses) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
protected static java.lang.String[] vaCategoryNames(ValueArray.Column col, int maxClasses) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public java.util.ArrayList<RequestArguments.Argument> arguments()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |