/** * Reload SSL profiles and reset connections * * @param transportInDescription TransportInDescription of the configuration * @throws AxisFault */ public void reloadDynamicSSLConfig(TransportInDescription transportInDescription) throws AxisFault { log.info("HttpCoreNIOListener reloading SSL Config.."); Parameter oldParameter = transportInDescription.getParameter("SSLProfiles"); Parameter profilePathParam = transportInDescription.getParameter("dynamicSSLProfilesConfig"); if (oldParameter != null && profilePathParam != null) { transportInDescription.removeParameter(oldParameter); this.reloadSpecificEndpoints(transportInDescription); } }
/** * Reload SSL configurations from configurations and reset all connections * * @param transportInDescription TransportInDescription of the configuration * @throws AxisFault */ public void reloadDynamicSSLConfig(TransportInDescription transportInDescription) throws AxisFault { log.info("PassThroughHttpListener reloading SSL Config.."); Parameter oldParameter = transportInDescription.getParameter("SSLProfiles"); Parameter profilePathParam = transportInDescription.getParameter("dynamicSSLProfilesConfig"); if (oldParameter != null && profilePathParam != null) { transportInDescription.removeParameter(oldParameter); this.reloadSpecificEndPoints(transportInDescription); } }
public String reloadSSLProfileConfig() throws AxisFault { Parameter oldParameter = transportInDescription.getParameter("SSLProfiles"); Parameter profilePathParam = transportInDescription.getParameter("SSLProfilesConfigPath"); if(oldParameter!=null && profilePathParam!=null) { transportInDescription.removeParameter(oldParameter); ServerConnFactoryBuilder builder = new ServerConnFactoryBuilder(transportInDescription, null); TransportInDescription loadedTransportIn = builder.loadMultiProfileSSLConfig(); if (loadedTransportIn != null) { transportInDescription=loadedTransportIn; httpCoreNIOMultiSSLListener.reload(transportInDescription); return "SSLProfiles reloaded Successfully"; } //add old value back transportInDescription.addParameter(oldParameter); } return "Failed to reload SSLProfiles"; } }