Class AgentArguments
- java.lang.Object
-
- org.glassfish.appclient.client.acc.AgentArguments
-
public class AgentArguments extends Object
Self-contained scanner for an agent argument string.The agent arguments are a comma-separated sequence of
[keyword=]quoted-or-unquoted-string
. The "keyword=" part is optional. A given keyword can appear multiple times, so after analysis each keyword can map to potentially multiple values (as a List). This class organizes the agent arguments into named and anonymous values.
-
-
Constructor Summary
Constructors Constructor Description AgentArguments()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
namedValues(String keyword)
Returns the list of values associated with the specified keyword.static AgentArguments
newInstance(String args)
List<String>
unnamedValues()
Returns the unnamed values as a list of strings.
-
-
-
Method Detail
-
newInstance
public static AgentArguments newInstance(String args)
-
namedValues
public List<String> namedValues(String keyword)
Returns the list of values associated with the specified keyword.- Parameters:
keyword
- the keyword whose values are needed- Returns:
- the values associated with the keyword; null if the keyword never appeared in the input
-
-