}
private void addSslToIIOPListener(Config config, ActionReport report) {
IiopService iiopService = config.getIiopService();
// ensure we have the specified listener
IiopListener iiopListener = null;
for (IiopListener listener : iiopService.getIiopListener()) {
if (listener.getId().equals(listenerId)) {
iiopListener = listener;
}
}
if (iiopListener == null) {
report.setMessage(
localStrings.getLocalString("create.ssl.iiop.notfound",
"IIOP Listener named {0} to which this ssl element is " +
"being added does not exist.", listenerId));
report.setActionExitCode(ActionReport.ExitCode.FAILURE);
return;
}
if (iiopListener.getSsl() != null) {
report.setMessage(
localStrings.getLocalString("create.ssl.iiop.alreadyExists",
"IIOP Listener named {0} to which this ssl element is " +
"being added already has an ssl element.", listenerId));
report.setActionExitCode(ActionReport.ExitCode.FAILURE);