newControllers.add(PortComponentLinkService.install(serviceTarget, defaultHost, verificationHandler));
}
}
private static ServerConfigImpl createServerConfig(ModelNode configuration, boolean appclient, OperationContext context) throws OperationFailedException {
final ServerConfigImpl config = ServerConfigImpl.newInstance();
try {
ModelNode wsdlHost = Attributes.WSDL_HOST.resolveModelAttribute(context, configuration);
config.setWebServiceHost(wsdlHost.isDefined() ? wsdlHost.asString() : null);
} catch (UnknownHostException e) {
throw new RuntimeException(e);
}
if (!appclient) {
config.setModifySOAPAddress(Attributes.MODIFY_WSDL_ADDRESS.resolveModelAttribute(context, configuration).asBoolean());
}
if (configuration.hasDefined(WSDL_PORT)) {
config.setWebServicePort(Attributes.WSDL_PORT.resolveModelAttribute(context, configuration).asInt());
}
if (configuration.hasDefined(WSDL_SECURE_PORT)) {
config.setWebServiceSecurePort(Attributes.WSDL_SECURE_PORT.resolveModelAttribute(context, configuration).asInt());
}
return config;
}