Author: rsearls
Date: 2014-05-16 08:58:13 -0400 (Fri, 16 May 2014)
New Revision: 18666
Modified:
container/wildfly80/branches/rsearls/server-integration/src/main/java/org/jboss/as/webservices/dmr/Attributes.java
container/wildfly80/branches/rsearls/server-integration/src/main/java/org/jboss/as/webservices/dmr/WSServerConfigAttributeHandler.java
Log:
removed a couple of attr for path def and added code to set the attr.
Modified:
container/wildfly80/branches/rsearls/server-integration/src/main/java/org/jboss/as/webservices/dmr/Attributes.java
===================================================================
---
container/wildfly80/branches/rsearls/server-integration/src/main/java/org/jboss/as/webservices/dmr/Attributes.java 2014-05-16
12:41:40 UTC (rev 18665)
+++
container/wildfly80/branches/rsearls/server-integration/src/main/java/org/jboss/as/webservices/dmr/Attributes.java 2014-05-16
12:58:13 UTC (rev 18666)
@@ -27,7 +27,6 @@
import org.jboss.as.controller.SimpleAttributeDefinition;
import org.jboss.as.controller.SimpleAttributeDefinitionBuilder;
import org.jboss.as.controller.operations.validation.IntRangeValidator;
-import org.jboss.as.controller.operations.validation.StringLengthValidator;
import org.jboss.dmr.ModelNode;
import org.jboss.dmr.ModelType;
@@ -65,9 +64,7 @@
SimpleAttributeDefinition PATH = new SimpleAttributeDefinitionBuilder(Constants.PATH,
ModelType.STRING)
.setAllowNull(true)
- .setMinSize(1)
.setAllowExpression(false)
- .setValidator(new StringLengthValidator(1, Integer.MAX_VALUE, true, true))
.build();
SimpleAttributeDefinition[] SUBSYSTEM_ATTRIBUTES = {MODIFY_WSDL_ADDRESS, WSDL_HOST,
WSDL_PORT, WSDL_SECURE_PORT, PATH};
Modified:
container/wildfly80/branches/rsearls/server-integration/src/main/java/org/jboss/as/webservices/dmr/WSServerConfigAttributeHandler.java
===================================================================
---
container/wildfly80/branches/rsearls/server-integration/src/main/java/org/jboss/as/webservices/dmr/WSServerConfigAttributeHandler.java 2014-05-16
12:41:40 UTC (rev 18665)
+++
container/wildfly80/branches/rsearls/server-integration/src/main/java/org/jboss/as/webservices/dmr/WSServerConfigAttributeHandler.java 2014-05-16
12:58:13 UTC (rev 18666)
@@ -21,11 +21,6 @@
*/
package org.jboss.as.webservices.dmr;
-import static org.jboss.as.webservices.dmr.Constants.MODIFY_WSDL_ADDRESS;
-import static org.jboss.as.webservices.dmr.Constants.WSDL_HOST;
-import static org.jboss.as.webservices.dmr.Constants.WSDL_PORT;
-import static org.jboss.as.webservices.dmr.Constants.WSDL_SECURE_PORT;
-
import java.net.UnknownHostException;
import org.jboss.as.controller.AbstractWriteAttributeHandler;
@@ -37,6 +32,8 @@
import org.jboss.as.webservices.util.WSServices;
import org.jboss.dmr.ModelNode;
+import static org.jboss.as.webservices.dmr.Constants.*;
+
/**
* An AbstractWriteAttributeHandler extension for updating basic WS server config
attributes
*
@@ -107,6 +104,9 @@
} else if (WSDL_SECURE_PORT.equals(attributeName)) {
final int securePort = value != null ? Integer.parseInt(value) : -1;
config.setWebServiceSecurePort(securePort, isRevert);
+ } else if (PATH.equals(attributeName)) {
+ final String path = value != null ? value : null;
+ config.setWebServicePath(path, isRevert);
} else {
throw new IllegalArgumentException(attributeName);
}
Show replies by date