public class RunnerHttpEnableDisable extends RunnerHttp
enable
and disable
administration command execution using HTTP interface.
Contains common code for enable and disable commands. Individual child
classes are not needed at this stage.
Class implements GlassFish server administration functionality trough HTTP
interface.
Modifier and Type | Field and Description |
---|---|
private static String |
DEFAULT_PARAM
Enable/Disable command
DEFAULT param name. |
private static String |
TARGET_PARAM
Enable/Disable command
target param name. |
LIBRARY_SEPARATOR, manifest, result
auth, command, FALSE_VALUE, HTTP_CONNECTION_TIMEOUT, HTTP_RETRY_DELAY, ITEM_SEPARATOR, PARAM_ASSIGN_VALUE, PARAM_SEPARATOR, path, query, QUERY_SEPARATOR, retry, server, silentFailureAllowed, stateListeners, TRUE_VALUE
Constructor and Description |
---|
RunnerHttpEnableDisable(GlassFishServer server,
Command command)
Constructs an instance of admin command executor using HTTP interface.
|
Modifier and Type | Method and Description |
---|---|
private static String |
query(Command command)
Builds enable/disable query string for given command.
|
acceptsGzip, constructCommandUrl, createResult, getDoOutput, getExtraProperties, getLastModified, getRequestMethod, handleSend, prepareHttpConnection, processResponse, queryLibrariesAppend, queryLibrariesLength, queryPropertiesAppend, queryPropertiesLength, readResponse
call, execute, execute, getCommand, getCommandWithQuery, getContentType, getQuery, getResult, handleReceive, handleSecureConnection, handleStateChange, isSilentFailureAllowed, parallelExecutor, serializedExecutor, setReadyState, setSilentFailureAllowed, setStateListeners, stateChangeArgs, stateChangeArgs, toBoolean, toString
private static final String DEFAULT_PARAM
DEFAULT
param name.private static final String TARGET_PARAM
target
param name.public RunnerHttpEnableDisable(GlassFishServer server, Command command)
server
- GlassFish server entity object.command
- GlassFish Server Admin Command Entity.private static String query(Command command)
QUERY :: "DEFAULT" '=' <name>
['&' "target" '=' <target> ]
command
- GlassFish Server Admin Command Entity.
CommandDisable
instance is expected.Copyright © 2013. All Rights Reserved.