Package com.sun.identity.cli
Class CLIRequest
- java.lang.Object
-
- com.sun.identity.cli.CLIRequest
-
public class CLIRequest extends Object
This class encapsulates the CLI request information. Upon creation of this object, it is added a queue where requests are processed one after another.
-
-
Constructor Summary
Constructors Constructor Description CLIRequest(CLIRequest parent, String[] argv)Constructs a CLI request object.CLIRequest(CLIRequest parent, String[] argv, SSOToken ssoToken)Constructs a CLI request object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]getOptions()Returns options for the request.CLIRequestgetParent()Returns parent request object.SSOTokengetSSOToken()Returns the single sign on token.voidprocess(CommandManager mgr)Processes the request.voidprocess(CommandManager mgr, SSOToken ssoToken)Processes the request.voidsetOptions(String[] argv)Sets options for the request.
-
-
-
Constructor Detail
-
CLIRequest
public CLIRequest(CLIRequest parent, String[] argv, SSOToken ssoToken)
Constructs a CLI request object.- Parameters:
parent- Parent request object. This can be null if the request is the root request.argv- Options for the request.ssoToken- Single Sign On token of the administrator.
-
CLIRequest
public CLIRequest(CLIRequest parent, String[] argv)
Constructs a CLI request object.- Parameters:
parent- Parent request object. This can be null if the request is the root request.argv- Options for the request.
-
-
Method Detail
-
getSSOToken
public SSOToken getSSOToken()
Returns the single sign on token.- Returns:
- the single sign on token.
-
getOptions
public String[] getOptions()
Returns options for the request.- Returns:
- options for the request.
-
setOptions
public void setOptions(String[] argv)
Sets options for the request.
-
getParent
public CLIRequest getParent()
Returns parent request object.- Returns:
- parent request object.
-
process
public void process(CommandManager mgr, SSOToken ssoToken) throws CLIException
Processes the request.- Parameters:
mgr- Command Manager instance.ssoToken- Single Sign On Token of the user.- Throws:
CLIException- if the request cannot be serviced.
-
process
public void process(CommandManager mgr) throws CLIException
Processes the request.- Parameters:
mgr- Command Manager instance.- Throws:
CLIException- if the request cannot be serviced.
-
-