public class Call
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SEP |
static java.lang.String |
SEP2END |
static java.lang.String |
SEP2START |
Constructor and Description |
---|
Call(java.lang.String name,
Arg... args)
Create a call with name and parameters
|
Modifier and Type | Method and Description |
---|---|
void |
addArg(java.lang.String name,
java.lang.String value)
Add an argument
|
static Call |
decode(java.lang.String encoded)
Decode a call encoded as a string
|
java.lang.String |
encode()
Encode the call as a string
|
static java.lang.String |
encode(java.lang.String name,
Arg... args)
Encode a call as a string
|
static java.lang.String |
encode(java.lang.String name,
java.util.List<Arg> args)
Encode a call as a string
|
java.lang.String |
get(java.lang.String key)
Get the value of a parameter.
|
java.lang.String |
getName() |
java.lang.String |
getOnce(java.lang.String key)
Return the value of a parameter, then delete it (to be used only once)
|
java.lang.String[] |
keysLeft()
Keys left
|
java.lang.String |
toString() |
public static final java.lang.String SEP
public static final java.lang.String SEP2END
public static final java.lang.String SEP2START
public Call(java.lang.String name, Arg... args)
name
- args
- public java.lang.String getName()
public java.lang.String getOnce(java.lang.String key)
key
- public java.lang.String get(java.lang.String key)
public void addArg(java.lang.String name, java.lang.String value)
public java.lang.String[] keysLeft()
public static Call decode(java.lang.String encoded)
encoded
- public static java.lang.String encode(java.lang.String name, Arg... args)
name
- args
- public java.lang.String encode()
public static java.lang.String encode(java.lang.String name, java.util.List<Arg> args)
name
- args
- public java.lang.String toString()
toString
in class java.lang.Object