public class WebClientBuilder extends ClientBuilder
ProcessBuilder
instance. A special small tools are designed for Linux / Windows OS in order to spawn the
process on the OS user account. Both tools are written in C using specific OS API and are
build as executable using ant native target. The source code and the make file for this tools
are available in the /src/native process directory. The password is provided vis stdin
redirection on both platforms. The command line parameters for the spawned process are
constructed from default parameters stored in directory and some specific parameters stored
inside a WebClientBuilderParameters structure.| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
WebClientBuilder.PostInitOptions
A wrapper class for all configurations applicable to the specific request for client spawn, that
need to be applied after the client is initialized.
|
| Modifier and Type | Field and Description |
|---|---|
private WebClientBuilderParameters |
params
A Java Bean containing specific parameters
|
(package private) static java.util.Map<java.lang.String,WebClientBuilder.PostInitOptions> |
UUID_OPTIONS
Map of client uuid and options.
|
command, remote| Constructor and Description |
|---|
WebClientBuilder(WebClientBuilderParameters params)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addClientOptions()
Prepares options to be sent to the client after a session is established.
|
WebClientBuilderParameters |
getParams()
Returns the
WebClientBuilderParameters used for building the client. |
protected java.util.List<java.lang.String> |
getSpawnArguments()
Get the spawn arguments.
|
getCommand, initNativeSecureConnection, localStart, remoteStart, remoteStart, removeCommandstatic final java.util.Map<java.lang.String,WebClientBuilder.PostInitOptions> UUID_OPTIONS
private final WebClientBuilderParameters params
public WebClientBuilder(WebClientBuilderParameters params)
params - The specific parameters for this client.public WebClientBuilderParameters getParams()
WebClientBuilderParameters used for building the client.getParams in class ClientBuilderprotected void addClientOptions()
addClientOptions in class ClientBuilderprotected java.util.List<java.lang.String> getSpawnArguments()
spawn tool using the
spawn 0 <user> <workdir> <command> [args] syntax.
As these arguments are already built into the ClientBuilder.command list, it just
returns the already build list with a "1" prefix.
getSpawnArguments in class ClientBuilder