Package org.apache.synapse.processors.mediatortypes.axis2

Examples of org.apache.synapse.processors.mediatortypes.axis2.ServiceMediatorProcessor


public class ServiceMediatorProcessorTest extends TestCase {
    public void testServiceMediatorProcessor() throws Exception {
        SynapseMessage sm = new Axis2SynapseMessage(
                Axis2EnvSetup.axis2Deployment("target/synapse-repository-sendonAxis2"));
        ServiceMediatorProcessor pro = new ServiceMediatorProcessor();
        pro.setServiceName("test-mediator");
        boolean result = pro.process(null,sm);
        assertTrue(result);
    }
View Full Code Here


public class ServiceMediatorProcessorConfigurator extends AbstractProcessorConfigurator {
  private static final QName tagName = new QName(Constants.SYNAPSE_NAMESPACE,
      "servicemediator");
  public Processor createProcessor(SynapseEnvironment se, OMElement el) {
    ServiceMediatorProcessor smp = new ServiceMediatorProcessor();
    super.setNameOnProcessor(se,el,smp);
   
    OMAttribute attr = el.getAttribute(new QName("service"));
    if (attr == null)
      throw new SynapseException(
          "<servicemediator> must have <service> attribute");
    smp.setServiceName(attr.getAttributeValue());
    return smp;
  }
View Full Code Here

TOP

Related Classes of org.apache.synapse.processors.mediatortypes.axis2.ServiceMediatorProcessor

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.