public static boolean isUsingTransport(AxisService service, String transportName) { boolean process = service.isEnableAllTransports(); if (process) { return true; } else { List transports = service.getExposedTransports(); for (Object transport : transports) { if (transportName.equals(transport)) { return true; } } } return false; }
public static boolean isUsingTransport(AxisService service, String transportName) { boolean process = service.isEnableAllTransports(); if (process) { return true; } else { List transports = service.getExposedTransports(); for (Object transport : transports) { if (transportName.equals(transport)) { return true; } } } return false; }
/** * Should this service be enabled over the JMS transport? * * @param service the Axis service * @return true if JMS should be enabled */ public static boolean isJMSService(AxisService service) { if (service.isEnableAllTransports()) { return true; } else { for (String transport : service.getExposedTransports()) { if (JMSListener.TRANSPORT_NAME.equals(transport)) { return true; } } } return false; }
/** * Should this service be enabled over the JMS transport? * * @param service the Axis service * @return true if JMS should be enabled */ public static boolean isJMSService(AxisService service) { if (service.isEnableAllTransports()) { return true; } else { for (String transport : service.getExposedTransports()) { if (JMSListener.TRANSPORT_NAME.equals(transport)) { return true; } } } return false; }
public boolean isActive() { if (transportInDescName != null && parent != null) { AxisConfiguration axisConfiguration = getAxisConfiguration(); if (axisConfiguration != null) { AxisService service = (AxisService)parent; if (service.isEnableAllTransports()) { return axisConfiguration.getTransportsIn().containsKey(transportInDescName); } else { return service.getExposedTransports().contains(transportInDescName); } } } return false; }
public boolean isActive() { if (transportInDescName != null && parent != null) { AxisConfiguration axisConfiguration = getAxisConfiguration(); if (axisConfiguration != null) { AxisService service = (AxisService)parent; if (service.isEnableAllTransports()) { return axisConfiguration.getTransportsIn().containsKey(transportInDescName); } else { return service.getExposedTransports().contains(transportInDescName); } } } return false; }
public String[] getExposedTransports(String serviceId) throws AxisFault { AxisService axisService = getAxisConfig().getService(serviceId); if (!axisService.isEnableAllTransports()) { List exposedTransports = axisService.getExposedTransports(); return (String[]) exposedTransports.toArray(new String[exposedTransports.size()]); } else { HashMap transportsIn = getConfigContext().getAxisConfiguration() .getTransportsIn(); String[] transports = new String[transportsIn.size()]; int i = 0; for (Iterator transportsIter = transportsIn.values().iterator(); transportsIter.hasNext();) { TransportInDescription tiDesc = (TransportInDescription) transportsIter.next(); transports[i++] = tiDesc.getName(); } return transports; } }
if (service.isEnableAllTransports()) { return; } else {
if (service.isEnableAllTransports()) { return; } else {
public void disableTransportForService(AxisService service) { log.warn("Disabling the " + getTransportName() + " transport for the service " + service.getName() + ", because it is not configured properly for the service"); if (service.isEnableAllTransports()) { ArrayList<String> exposedTransports = new ArrayList<String>(); for(Object obj: cfgCtx.getAxisConfiguration().getTransportsIn().values()) { String transportName = ((TransportInDescription) obj).getName(); if (!transportName.equals(getTransportName())) { exposedTransports.add(transportName); } } service.setEnableAllTransports(false); service.setExposedTransports(exposedTransports); } else { service.removeExposedTransport(getTransportName()); } }
public void disableTransportForService(AxisService service) { log.warn("Disabling the " + getTransportName() + " transport for the service " + service.getName() + ", because it is not configured properly for the service"); if (service.isEnableAllTransports()) { ArrayList<String> exposedTransports = new ArrayList<String>(); for(Object obj: cfgCtx.getAxisConfiguration().getTransportsIn().values()) { String transportName = ((TransportInDescription) obj).getName(); if (!transportName.equals(getTransportName())) { exposedTransports.add(transportName); } } service.setEnableAllTransports(false); service.setExposedTransports(exposedTransports); } else { service.removeExposedTransport(getTransportName()); } }
throw new AxisFault(Messages.getMessage("servicenotfoundinthesystem", serviceName)); if (service.isEnableAllTransports()) { Iterator<TransportListener> itr_st = startedTransports.values().iterator(); while (itr_st.hasNext()) {
throw new AxisFault(Messages.getMessage("servicenotfoundinthesystem", serviceName)); if (service.isEnableAllTransports()) { Iterator<TransportListener> itr_st = startedTransports.values().iterator(); while (itr_st.hasNext()) {
if (axisService.isEnableAllTransports()) { AxisConfiguration axisConfiguration = axisService.getAxisConfiguration(); for (TransportInDescription transportIn : axisConfiguration.getTransportsIn().values()) {
if (!axisService.isEnableAllTransports()) { axisService.addExposedTransport(transportProtocol); } else {
if (axisService.isEnableAllTransports()) { AxisConfiguration axisConfiguration = axisService.getAxisConfiguration(); for (TransportInDescription transportIn : axisConfiguration.getTransportsIn().values()) {
Iterator transportInValues = null; if (axisService.isEnableAllTransports()) { AxisConfiguration axisConfiguration = axisService .getAxisConfiguration();
if (!axisService.isEnableAllTransports()) { if (axisService.getExposedTransports().size() == 1) { return SERVICE_MUST_CONTAIN_AT_LEAST_ONE_TRANSPORT;
axisService.isEnableAllTransports(); ConfigurationContext configctx = this.configContext; if (configctx != null) {
axisService.isEnableAllTransports(); ConfigurationContext configctx = this.configContext; if (configctx != null) {