| Constructor and Description |
|---|
CommandLine(java.util.Map opts,
java.util.List args)
テスト用に使用するコンストラクタ。
|
CommandLine(java.lang.String... commandline)
デフォルトコンストラクタ
与えられたコマンドライン文字列を
CommandLineParserで解析し保持する。 |
| Modifier and Type | Method and Description |
|---|---|
java.util.List |
getArgs()
コマンドライン引数のリストを返す。
|
java.lang.String |
getParam(java.lang.String name)
リクエストパラメータを取得する。
|
java.util.Map |
getParamMap()
リクエストパラメータのMapを取得する。
|
java.lang.String |
getRequestPath()
リクエストパスを取得する。
|
CommandLine |
setParamMap(java.util.Map opts)
コマンドラインオプションのMapを設定する。
|
CommandLine |
setRequestPath(java.lang.String requestPath)
リクエストパスを設定する。
|
public CommandLine(java.lang.String... commandline)
CommandLineParserで解析し保持する。commandline - コマンドライン文字列public CommandLine(java.util.Map opts,
java.util.List args)
opts - コマンドラインオプションのMapargs - コマンドラインオプションのListpublic java.lang.String getRequestPath()
getRequestPath in interface Requestpublic CommandLine setRequestPath(java.lang.String requestPath)
RequestsetRequestPath in interface RequestrequestPath - リクエストパス@Published public java.lang.String getParam(java.lang.String name)
例 -requestPath test.SampleAction/BC001 --> "test.SampleAction/BC001"を返す。 -server --> ""を返す。
getParam in interface Requestname - パラメータ名Request.getParamMap()@Published public java.util.Map getParamMap()
getParamMap in interface Requestpublic CommandLine setParamMap(java.util.Map opts)
opts - 名前付きコマンドライン引数のMap@Published public java.util.List getArgs()