Package org.apache.servicemix.common.packaging

Examples of org.apache.servicemix.common.packaging.Consumes


      writer.endElement();
    }

    // Put in the consumes
    for (Iterator iterator = consumes.iterator(); iterator.hasNext();) {
      Consumes consumesEntry = (Consumes) iterator.next();
      writer.startElement("consumes");
      addQNameAttribute(writer, "interface-name", consumesEntry
          .getInterfaceName(), namespaceMap);
      addQNameAttribute(writer, "service-name", consumesEntry
          .getServiceName(), namespaceMap);
      addStringAttribute(writer, "endpoint-name", consumesEntry
          .getEndpointName());

      // TODO Handling of LinkType?

      writer.endElement();
View Full Code Here


public class JmsServiceUnitAnalyzer extends AbstractXBeanServiceUnitAnalyzer {

  protected List getConsumes(Endpoint endpoint) {
    List consumesList = new ArrayList();
    Consumes consumes;
    if (endpoint.getRole().equals(MessageExchange.Role.CONSUMER)) {
      consumes = new Consumes();
      JmsEndpoint httpEndpoint = (JmsEndpoint) endpoint;
      consumes.setEndpointName(httpEndpoint.getTargetEndpoint());
      consumes.setInterfaceName(httpEndpoint.getTargetInterfaceName());
      consumes.setServiceName(httpEndpoint.getTargetService());
      if (consumes.isValid())
        consumesList.add(consumes);
      else {
        consumes = new Consumes();
        consumes.setEndpointName(endpoint.getEndpoint());
        consumes.setInterfaceName(endpoint.getInterfaceName());
        consumes.setServiceName(endpoint.getService());
        consumesList.add(consumes);
      }
    }   

    return consumesList;
View Full Code Here

TOP

Related Classes of org.apache.servicemix.common.packaging.Consumes

Copyright © 2018 www.massapicom. 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.