Package org.mule.endpoint

Examples of org.mule.endpoint.DefaultInboundEndpoint


    {
        final Service service = muleContext.getRegistry().lookupService("CXFProxyService");
        ServiceCompositeMessageSource messageSource = (ServiceCompositeMessageSource) service.getMessageSource();

        List<InboundEndpoint> endpoints = messageSource.getEndpoints();
        DefaultInboundEndpoint inboundEndpoint = (DefaultInboundEndpoint) endpoints.get(0);
        List<MessageProcessor> processors = inboundEndpoint.getMessageProcessors();
        FlowConfiguringMessageProcessor wrapper = (FlowConfiguringMessageProcessor) processors.get(0);
        CxfInboundMessageProcessor cxfProcessor = (CxfInboundMessageProcessor) wrapper.getWrappedMessageProcessor();
        Server server = cxfProcessor.getServer();
        EndpointInfo endpointInfo = server.getEndpoint().getEndpointInfo();
View Full Code Here


        if (key != null)
        {
            properties.put(key, value);
        }
       
        return new DefaultInboundEndpoint(connector, null, null, properties, null,
            false, MessageExchangePattern.ONE_WAY, 42, null, null, null,
            muleContext, null, null, null, null, false, null);
    }
View Full Code Here

    }     

    @Test
    public void testThatTheCorrectSoapPortIsChosen() throws Exception
    {
        DefaultInboundEndpoint inboundEndpoint;
       
        if (variant.equals(ConfigVariant.FLOW))
        {
            final Flow flow = muleContext.getRegistry().lookupObject("CXFProxyService");
            inboundEndpoint = (DefaultInboundEndpoint) flow.getMessageSource();                       
        }
        else
        {
            final Service service = muleContext.getRegistry().lookupService("CXFProxyService");
            ServiceCompositeMessageSource messageSource = (ServiceCompositeMessageSource) service.getMessageSource();

            List<InboundEndpoint> endpoints = messageSource.getEndpoints();
            inboundEndpoint = (DefaultInboundEndpoint) endpoints.get(0);           
        }              
       
        List<MessageProcessor> processors = inboundEndpoint.getMessageProcessors();
        FlowConfiguringMessageProcessor wrapper = (FlowConfiguringMessageProcessor) processors.get(0);
        CxfInboundMessageProcessor cxfProcessor = (CxfInboundMessageProcessor) wrapper.getWrappedMessageProcessor();
        Server server = cxfProcessor.getServer();
        EndpointInfo endpointInfo = server.getEndpoint().getEndpointInfo();
View Full Code Here

        if (key != null)
        {
            properties.put(key, value);
        }
       
        return new DefaultInboundEndpoint(connector, null, null, properties, null,
            false, MessageExchangePattern.ONE_WAY, 42, null, null, null,
            muleContext, null, null, null, null, null, false, null);
    }
View Full Code Here

TOP

Related Classes of org.mule.endpoint.DefaultInboundEndpoint

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.