"Network Listener named {0} does not exist. Creating or using the named protocol element instead.",
listenerId));
httpProtocol = findOrCreateProtocol(listenerId);
} else {
httpProtocol = listener.findHttpProtocol();
Ssl ssl = httpProtocol.getSsl();
if (ssl != null) {
report.setMessage(localStrings.getLocalString("create.ssl.http.alreadyExists",
"Network Listener named {0} to which this ssl element is being added already has an ssl element.",
listenerId));
report.setActionExitCode(ActionReport.ExitCode.FAILURE);
return;
}
}
ConfigSupport.apply(new SingleConfigCode<Protocol>() {
public Object run(Protocol param) throws TransactionFailure {
Ssl newSsl = param.createChild(Ssl.class);
populateSslElement(newSsl);
param.setSsl(newSsl);
return newSsl;
}
}, httpProtocol);