public interface WebClientLauncher
Modifier and Type | Method and Description |
---|---|
java.lang.String |
spawn(java.lang.String user,
java.lang.String pw,
boolean gui,
java.lang.String[] options,
java.lang.String referrer,
java.lang.String[] requestParameters)
Spawn a new web client process, returning the redirect URL if successful.
|
java.lang.String spawn(java.lang.String user, java.lang.String pw, boolean gui, java.lang.String[] options, java.lang.String referrer, java.lang.String[] requestParameters)
user
- The OS userid to use for the new process.pw
- The OS password to authenticate the user.gui
- This specifies the UI mode (true
for GUI, false
for
ChUI).options
- List of caller-specified options to be passed on the client command line or
null
if no values are specified.referrer
- The referrer string to provide the web client. If the client gets disconnected
it will be redirected back to this URL.requestParameters
- Holds additional parameters if they are provided. It is expected that the first
requestParameters[0] holds the forwarded host of "X-Forwarded-Host" HTTP header,
requestParameters[1] holds the corresponding forwarded protocol that is provided
by "X-Forwarded-Proto" value and requestParameters[2] holds the client IP address.WebHandler.ERROR_PREFIX
and followed
by descriptive error text.