for(Property prop : propList)
{
String name = prop.getName();
ModelNode propValue = prop.getValue();
HttpConnector connector = factory.httpConnector().as();
connector.setName(name);
// TODO: https://issues.jboss.org/browse/AS7-747
if(propValue.hasDefined("enabled"))
connector.setEnabled(propValue.get("enabled").asBoolean());
else
connector.setEnabled(true); // the default value
connector.setScheme(propValue.get("scheme").asString());
connector.setSocketBinding(propValue.get("socket-binding").asString());
connector.setProtocol(propValue.get("protocol").asString());
connectors.add(connector);
}
callback.onSuccess(connectors);