public class WebJBossASClient extends JBossASClient
| Modifier and Type | Class and Description |
|---|---|
static class |
WebJBossASClient.ConnectorConfiguration |
static class |
WebJBossASClient.SSLConfiguration |
| Modifier and Type | Field and Description |
|---|---|
static String |
CONNECTOR |
static String |
DEFAULT_HOST |
static String |
SSL |
static String |
SUBSYSTEM_WEB |
static String |
VIRTUAL_SERVER |
ADD, ADDRESS, BATCH, BATCH_STEPS, FAILURE_DESCRIPTION, log, NAME, OPERATION, OUTCOME, OUTCOME_SUCCESS, PERSISTENT, READ_ATTRIBUTE, READ_RESOURCE, REMOVE, RESULT, SUBSYSTEM, SYSTEM_PROPERTY, VALUE, WRITE_ATTRIBUTE| Constructor and Description |
|---|
WebJBossASClient(org.jboss.as.controller.client.ModelControllerClient client) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConnector(String name,
WebJBossASClient.ConnectorConfiguration connectorConfig)
Add a new web connector, which may be a secure SSL connector (HTTPS) or not (HTTP).
|
void |
changeConnector(String connectorName,
String attribName,
String attribValue)
Use this to modify an attribute for an existing connector.
|
org.jboss.dmr.ModelNode |
getConnector(String name)
Returns the connector node with all its attributes.
|
boolean |
isConnector(String name)
Checks to see if there is already a connector with the given name.
|
boolean |
isWebSubsystem()
Checks to see if the web subsystem exists.
|
void |
removeConnector(String doomedConnectorName)
Removes the given web connector.
|
void |
setEnableWelcomeRoot(boolean enableFlag)
The enable-welcome-root setting controls whether or not to deploy JBoss' welcome-content application at root context.
|
createBatchRequest, createReadAttributeRequest, createReadAttributeRequest, createRequest, createWriteAttributeRequest, execute, findNodeInList, getFailureDescription, getModelControllerClient, getResultListAsStrings, getResults, getStringAttribute, getStringAttribute, isSuccess, readResource, readResource, remove, setPossibleExpressionpublic static final String SUBSYSTEM_WEB
public static final String VIRTUAL_SERVER
public static final String DEFAULT_HOST
public static final String CONNECTOR
public static final String SSL
public WebJBossASClient(org.jboss.as.controller.client.ModelControllerClient client)
public boolean isWebSubsystem()
throws Exception
Exceptionpublic void setEnableWelcomeRoot(boolean enableFlag)
throws Exception
enableFlag - true if the welcome screen at the root context should be enabled; false otherwiseExceptionpublic boolean isConnector(String name) throws Exception
name - the name to checkExceptionpublic org.jboss.dmr.ModelNode getConnector(String name) throws Exception
name - the name of the connector whose node is to be returnedExceptionpublic void changeConnector(String connectorName, String attribName, String attribValue) throws Exception
connectorName - the existing connector whose attribute is to be changedattribName - the attribute to get a new valueattribValue - the new value of the attributeException - if failed to change the attribute on the named connectorpublic void removeConnector(String doomedConnectorName) throws Exception
doomedConnectorName - the name of the web connector to remove.Exceptionpublic void addConnector(String name, WebJBossASClient.ConnectorConfiguration connectorConfig) throws Exception
name - connectorConfig - ExceptionCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.