|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.thetransactioncompany.jsonrpc2.util.ParamsRetriever
public abstract class ParamsRetriever
Base abstract class for the JSON-RPC 2.0 parameter retrievers.
| Constructor Summary | |
|---|---|
ParamsRetriever()
|
|
| Method Summary | |
|---|---|
protected static void |
ensureEnumString(java.lang.String input,
java.lang.String[] enumStrings,
boolean ignoreCase)
Throws a JSONRPC2Error.INVALID_PARAMS exception if there the
specified string doesn't match the enumeration. |
abstract int |
size()
Returns the parameter count. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ParamsRetriever()
| Method Detail |
|---|
public abstract int size()
protected static void ensureEnumString(java.lang.String input,
java.lang.String[] enumStrings,
boolean ignoreCase)
throws JSONRPC2Error
JSONRPC2Error.INVALID_PARAMS exception if there the
specified string doesn't match the enumeration. You can also specify
whether to match the string case exactly.
You may use this method to fire the proper JSON-RPC 2.0 error on an invalid enumerated string parameter.
input - The string to check.enumStrings - The possible string values.ignoreCase - Specifies if the case of the checked string must
match the case of the expected strings.
JSONRPC2Error - With proper code and message if the input
string is unexpected.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||