profileParam.setValue(profileEl); transportIn.addParameter(profileParam); log.info("SSLProfile configuration is loaded from path: " + fullPath);
String value = (String) propObj; Parameter param = new Parameter(key, value); txInDes.addParameter(param);
/** * Initialize the transport description for Axis * * @param transprtInDesc * the transport description * * @throws AxisFault */ public void initTransportListenerForAxis(TransportInDescription transprtInDesc) throws AxisFault { // These values are defined by the component and not by the Axis2 // configuration file so we set them if Axis2 do something with them... Parameter portParam = transprtInDesc.getParameter(PARAM_PORT); if (portParam == null) { int port = getPortForTransport(transprtInDesc.getName()); portParam = new Parameter(PARAM_PORT, Integer.toString(port)); } transprtInDesc.addParameter(portParam); Parameter hostParam = transprtInDesc.getParameter(HOST_ADDRESS); if (hostParam == null) { hostParam = new Parameter(HOST_ADDRESS, this.getHostAddress()); } transprtInDesc.addParameter(hostParam); ((SOAPTransportListener) transprtInDesc.getReceiver()).setServerConfig(this); }
defaultConnectionFactory.addChild(connectionFactoryName); transportIn.addParameter(new Parameter(JMSConstants.DEFAULT_CONFAC_NAME, defaultConnectionFactory)); } else {
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"; } }
parameter.setValue(port); ((TransportInDescription) server.getConfigurationContext().getAxisConfiguration() .getTransportIn("http")).addParameter(parameter);
public TransportInDescription createTransportInDescription() throws Exception { TransportInDescription desc = new TransportInDescription("http"); desc.setReceiver(new LifecycleFixTransportListenerProxy(new SimpleHTTPServer(), port)); desc.addParameter(new Parameter(SimpleHTTPServer.PARAM_PORT, String.valueOf(port))); return desc; }