public class WebClientBuilderOptions extends ClientBuilderOptions implements WebClientConstants, HttpConfigurationConstants
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.
|
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
CONNECTION_RESTORED_MESSAGE, DELAY_BETWEEN_CONNECT_TRIES, DELAY_BETWEEN_PING_TRIES, DIRECTORY_NODE_ID, ENABLE_DEBUG_LOGGING, MAX_BINARY_MESSAGE_SIZE, MAX_LOST_PINGS, MAX_TEXT_MESSAGE_SIZE, MAX_WEB_SOCKET_IDLE_TIMEOUT, PING_PONG_INTERVAL, SERVER_UNAVAILABLE_MESSAGE, TRY_TO_CONNECT_MESSAGE, WATCH_DOG_TIMEOUT
MAX_HTTP_IDLE_TIMEOUT, OUTPUT_AGGREGATION_SIZE, OUTPUT_BUFFER_SIZE, REQUEST_HEADER_SIZE, RESPONSE_HEADER_SIZE
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, getSpawnerDebugLevel, getWorkingDirectory, isSecure, quotedString, updatePortForJavaDebuggerAgent, updatePortForJMXAgent
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.