Examples of TransportListener


Examples of org.apache.axis2.transport.TransportListener

    if (enableAllTransports) {
      for (Iterator<TransportInDescription> transports = axisConfig.getTransportsIn().values()
          .iterator(); transports.hasNext();) {
        TransportInDescription transportIn = (TransportInDescription) transports
            .next();
        TransportListener listener = transportIn.getReceiver();
        if (listener != null) {
          try {
            EndpointReference[] eprsForService = listener
                .getEPRsForService(this.name, requestIP);
            if (eprsForService != null) {
              for (int i = 0; i < eprsForService.length; i++) {
                EndpointReference endpointReference = eprsForService[i];
                if (endpointReference != null) {
                  String address = endpointReference
                      .getAddress();
                  if (address != null) {
                    eprList.add(address);
                  }
                }
              }
            }
          } catch (AxisFault axisFault) {
            log.warn(axisFault.getMessage());
          }
        }
      }
    } else {
      List<String> trs = this.exposedTransports;
      for (int i = 0; i < trs.size(); i++) {
        String trsName = (String) trs.get(i);
        TransportInDescription transportIn = axisConfig
            .getTransportIn(trsName);
        if (transportIn != null) {
          TransportListener listener = transportIn.getReceiver();
          if (listener != null) {
            try {
              EndpointReference[] eprsForService = listener
                  .getEPRsForService(this.name, requestIP);
              if (eprsForService != null) {
                for (int j = 0; j < eprsForService.length; j++) {
                  EndpointReference endpointReference = eprsForService[j];
                  if (endpointReference != null) {
View Full Code Here

Examples of org.apache.axis2.transport.TransportListener

                    try {
                        String clasName = trsClas.getAttributeValue();
                        Class receiverClass;
                        receiverClass = Loader.loadClass(clasName);

                        TransportListener receiver =
                                (TransportListener) receiverClass.newInstance();
                        transportIN.setReceiver(receiver);
                    } catch (NoClassDefFoundError e) {
                        if(deploymentEngine != null){
                            throw new DeploymentException(e);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.