public class WebClientBuilderOptions extends ClientBuilderOptions
This class MUST NOT BE USED from client side, as it uses a direct access to the server. Also, this class can be instantiated only from threads with a P2J context for the running P2J server.
Modifier and Type | Field and Description |
---|---|
private static ClientBuilderOptions |
cbo
Copy of state used for initializing the superclass without reading the directory.
|
static java.lang.String |
DIRECTORY_NODE_ID
Directory node name in which our configuration can be found.
|
private static int |
MAX_BINARY_MESSAGE_SIZE
The default maximal binary message size excepted by the configured websocket
|
private static int |
MAX_IDLE_TIMEOUT
The default maximal idle time of the configured websocket
|
private static int |
MAX_TEXT_MESSAGE_SIZE
The default maximal text message size excepted by the configured websocket
|
private static java.util.Map<java.lang.String,java.lang.String> |
options
Options storage.
|
private boolean |
trusted
Enables trusted launch mode (no password is used and the OS account is forced).
|
accountIds
Constructor and Description |
---|
WebClientBuilderOptions(boolean trusted)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
getClientOptions()
Get web client driver options.
|
static void |
initialize(SecurityManager sm,
BootstrapConfig cfg)
Read the configuration from the directory and calculate certain runtime values that will
be used by web client launching.
|
protected boolean |
isPasswordAuthentication()
Get the authentication mode for this spawner.
|
private static void |
readOptions(SecurityManager sm,
BootstrapConfig cfg)
Read all web client driver options from the directory and store the defaults and any
overridden configuration in a map for configuration of both GUI and ChUI web drivers.
|
getBootstrapConfig, getClassPath, getCommand, getConfigFile, getJvmArguments, getLibPath, getMainClass, getNode, getNode, getNode, getSpawner, getWorkingDirectory, isSecure, quotedString
public static final java.lang.String DIRECTORY_NODE_ID
private static final int MAX_BINARY_MESSAGE_SIZE
private static final int MAX_TEXT_MESSAGE_SIZE
private static final int MAX_IDLE_TIMEOUT
private static final java.util.Map<java.lang.String,java.lang.String> options
private static ClientBuilderOptions cbo
private boolean trusted
public WebClientBuilderOptions(boolean trusted)
trusted
- If this instance will be used to launch clients in trusted mode.java.lang.IllegalStateException
- If this is called from P2J clients.public static void initialize(SecurityManager sm, BootstrapConfig cfg)
sm
- The initialized instance of SecurityManager
.cfg
- The bootstrap configuration information for this server.public java.util.Map<java.lang.String,java.lang.String> getClientOptions()
protected boolean isPasswordAuthentication()
isPasswordAuthentication
in class ClientBuilderOptions
true
if not in trusted mode.private static void readOptions(SecurityManager sm, BootstrapConfig cfg)
sm
- The initialized instance of SecurityManager
.cfg
- The bootstrap configuration information for this server.