private AxisServletListener getAxisServletListener(String name) { TransportInDescription desc = axisConfiguration.getTransportIn(name); if (desc == null) { return null; } TransportListener receiver = desc.getReceiver(); if (receiver instanceof AxisServletListener) { return (AxisServletListener)receiver; } else { return null; } }
private AxisServletListener getAxisServletListener(String name) { TransportInDescription desc = axisConfiguration.getTransportIn(name); if (desc == null) { return null; } TransportListener receiver = desc.getReceiver(); if (receiver instanceof AxisServletListener) { return (AxisServletListener)receiver; } else { return null; } }
private String getWsdlInformation(String serviceName, AxisConfiguration axisConfig) throws AxisFault { String ip; try { ip = NetworkUtils.getLocalHostname(); } catch (SocketException e) { throw new AxisFault("Cannot get local host name", e); } TransportInDescription http = axisConfig.getTransportIn("http"); if (http != null) { EndpointReference epr = ((HttpTransportListener) http.getReceiver()). getEPRForService(serviceName, ip); String wsdlUrlPrefix = epr.getAddress(); if (wsdlUrlPrefix.endsWith("/")) { wsdlUrlPrefix = wsdlUrlPrefix.substring(0, wsdlUrlPrefix.length() - 1); } return wsdlUrlPrefix + "?wsdl"; } return null; }
req.isSecure()? this.axisConfiguration.getTransportIn(Constants.TRANSPORT_HTTPS) : this.axisConfiguration.getTransportIn(Constants.TRANSPORT_HTTP);
private void setUpHTTPTransporters() throws AxisFault { final AxisConfiguration axisConfiguration = soapContext.getAxis2ConfigurationContext().getAxisConfiguration(); soapContext.getSoapServerConfig() .initTransportListenerForAxis(axisConfiguration.getTransportIn(Constants.TRANSPORT_HTTP)); soapContext.getSoapServerConfig() .initTransportListenerForAxis(axisConfiguration.getTransportIn(Constants.TRANSPORT_HTTPS)); }
req.isSecure()? this.axisConfiguration.getTransportIn(Constants.TRANSPORT_HTTPS) : this.axisConfiguration.getTransportIn(Constants.TRANSPORT_HTTP);
/** * Initialize the generic transport sender. * * @param cfgCtx the axis configuration context * @param transportOut the transport-out description * @throws AxisFault on error */ public void init(ConfigurationContext cfgCtx, TransportOutDescription transportOut) throws AxisFault { this.cfgCtx = cfgCtx; this.transportOut = transportOut; this.transportIn = cfgCtx.getAxisConfiguration().getTransportIn(getTransportName()); this.state = BaseConstants.STARTED; // register with JMX mbeanSupport = new TransportMBeanSupport(this, getTransportName()); mbeanSupport.register(); log.info(getTransportName().toUpperCase() + " Sender started"); }
/** * Initialize the generic transport sender. * * @param cfgCtx the axis configuration context * @param transportOut the transport-out description * @throws AxisFault on error */ public void init(ConfigurationContext cfgCtx, TransportOutDescription transportOut) throws AxisFault { this.cfgCtx = cfgCtx; this.transportOut = transportOut; this.transportIn = cfgCtx.getAxisConfiguration().getTransportIn(getTransportName()); this.state = BaseConstants.STARTED; // register with JMX mbeanSupport = new TransportMBeanSupport(this, getTransportName()); mbeanSupport.register(); log.info(getTransportName().toUpperCase() + " Sender started"); }
public TransportDetails getTransportDetails(String transportProtocol) throws AxisFault { TransportInDescription transportIn = getAxisConfig().getTransportIn(transportProtocol); TransportDetails details = new TransportDetails(); List params = new ArrayList(); details.setActive(true); // Transport parameters for (Iterator paramIter = transportIn.getParameters().iterator(); paramIter.hasNext();) { Parameter param = (Parameter) paramIter.next(); TransportParameter paramDO = new TransportParameter(); paramDO.setName(param.getName()); OMElement paramEle = param.getParameterElement(); if (paramEle != null) { paramDO.setValue(paramEle.toString()); } else { paramDO.setValue((String) param.getValue()); } params.add(paramDO); } details.setParameters((TransportParameter[]) params. toArray(new TransportParameter[params.size()])); return details; } }
.getTransportIn(transportName); TransportListener listener = trsIN.getReceiver(); EndpointReference[] eprsForService;
String serviceName = ((AxisService)parent).getName(); TransportInDescription in = axisConfiguration.getTransportIn(transportInDescName); TransportListener listener = in.getReceiver(); String ip;
String serviceName = ((AxisService)parent).getName(); TransportInDescription in = axisConfiguration.getTransportIn(transportInDescName); TransportListener listener = in.getReceiver(); String ip;
parameter.setValue(port); ((TransportInDescription) server.getConfigurationContext().getAxisConfiguration() .getTransportIn("http")).addParameter(parameter);
if (!lm.isListenerRunning(transport)) { TransportInDescription trsin = configctx.getAxisConfiguration().getTransportIn(transport); if (trsin != null) { lm.addListener(trsin, false);
if (!lm.isListenerRunning(transport)) { TransportInDescription trsin = configctx.getAxisConfiguration().getTransportIn(transport); if (trsin != null) { lm.addListener(trsin, false);
configContext.getAxisConfiguration().getTransportIn(MailConstants.TRANSPORT_NAME); if (mailTo == null) { handleException("Could not find the transport receiver for " +
/** * Create and configure a new HttpFactory */ public HttpFactory(ConfigurationContext configurationContext) throws AxisFault { this.configurationContext = configurationContext; httpConfiguration = configurationContext.getAxisConfiguration().getTransportIn(Constants.TRANSPORT_HTTP); port = getIntParam(PARAMETER_PORT, 6060); hostAddress = getStringParam(PARAMETER_HOST_ADDRESS, null); originServer = getStringParam(PARAMETER_ORIGIN_SERVER, "Simple-Server/1.1"); requestSocketTimeout = getIntParam(PARAMETER_REQUEST_SOCKET_TIMEOUT, 20000); requestTcpNoDelay = getBooleanParam(PARAMETER_REQUEST_TCP_NO_DELAY, true); requestCoreThreadPoolSize = getIntParam(PARAMETER_REQUEST_CORE_THREAD_POOL_SIZE, 100); requestMaxThreadPoolSize = getIntParam(PARAMETER_REQUEST_MAX_THREAD_POOL_SIZE, 150); threadKeepAliveTime = getLongParam(PARAMETER_THREAD_KEEP_ALIVE_TIME, 180L); threadKeepAliveTimeUnit = getTimeUnitParam(PARAMETER_THREAD_KEEP_ALIVE_TIME_UNIT, TimeUnit.SECONDS); }
configContext.getAxisConfiguration().getTransportIn(MailConstants.TRANSPORT_NAME); if (mailTo == null) { handleException("Could not find the transport receiver for " +
configContext.getAxisConfiguration().getTransportIn(MailConstants.TRANSPORT_NAME); if (mailTo == null) { handleException("Could not find the transport receiver for " +
/** * Create and configure a new HttpFactory */ public HttpFactory(ConfigurationContext configurationContext) throws AxisFault { this.configurationContext = configurationContext; httpConfiguration = configurationContext.getAxisConfiguration().getTransportIn(Constants.TRANSPORT_HTTP); port = getIntParam(PARAMETER_PORT, 6060); hostAddress = getStringParam(PARAMETER_HOST_ADDRESS, null); originServer = getStringParam(PARAMETER_ORIGIN_SERVER, "Simple-Server/1.1"); requestSocketTimeout = getIntParam(PARAMETER_REQUEST_SOCKET_TIMEOUT, 20000); requestTcpNoDelay = getBooleanParam(PARAMETER_REQUEST_TCP_NO_DELAY, true); requestCoreThreadPoolSize = getIntParam(PARAMETER_REQUEST_CORE_THREAD_POOL_SIZE, 100); requestMaxThreadPoolSize = getIntParam(PARAMETER_REQUEST_MAX_THREAD_POOL_SIZE, 150); threadKeepAliveTime = getLongParam(PARAMETER_THREAD_KEEP_ALIVE_TIME, 180L); threadKeepAliveTimeUnit = getTimeUnitParam(PARAMETER_THREAD_KEEP_ALIVE_TIME_UNIT, TimeUnit.SECONDS); }