Package org.objectweb.celtix.routing.configuration

Examples of org.objectweb.celtix.routing.configuration.RouteType


        QName sourceSrv = new QName("http://objectweb.org/HWRouter", "HTTPSoapServiceSource");
        String sourcePort = new String("HTTPSoapPortSource");
        QName destSrv = new QName("http://objectweb.org/HWRouter", "HTTPSoapServiceDestination");
        String destPort = new String("HTTPSoapPortDestination");

        RouteType rt =
            RouteTypeUtil.createRouteType("route_0",
                                           sourceSrv, sourcePort,
                                           destSrv, destPort);
        TestProvider tp = new TestProvider(def, rt);
View Full Code Here


        QName sourceSrv = new QName("http://objectweb.org/HWRouter", "HTTPXMLServiceSource");
        String sourcePort = new String("HTTPXMLPortSource");
        QName destSrv = new QName("http://objectweb.org/HWRouter", "HTTPSoapServiceDestination");
        String destPort = new String("HTTPSoapPortDestination");

        RouteType rt =
            RouteTypeUtil.createRouteType("normal_route",
                                           sourceSrv, sourcePort,
                                           destSrv, destPort);
       
        TestHandler th = new TestHandler(def, rt);
View Full Code Here

        QName sourceSrv = new QName("http://objectweb.org/HWRouter", "HTTPSoapServiceSource");
        String sourcePort = new String("HTTPSoapPortSource");
        QName destSrv = new QName("http://objectweb.org/HWRouter", "HTTPSoapServiceDestination");
        String destPort = new String("HTTPSoapPortDestination");

        RouteType rt =
            RouteTypeUtil.createRouteType("route_0",
                                           sourceSrv, sourcePort,
                                           destSrv, destPort);
       
        TestRouter router = new TestRouter(null, def, rt);
View Full Code Here

        QName sourceSrv = new QName("http://objectweb.org/HWRouter", "HTTPXMLServiceSource");
        String sourcePort = new String("HTTPXMLPortSource");
        QName destSrv = new QName("http://objectweb.org/HWRouter", "HTTPSoapServiceDestination");
        String destPort = new String("HTTPSoapPortDestination");

        RouteType rt =
            RouteTypeUtil.createRouteType("route_1",
                                           sourceSrv, sourcePort,
                                           destSrv, destPort);

        ClassLoader loader = new URLClassLoader(new URL[] {srcDir.toURL()}, null);
View Full Code Here

    private void testRouterSourceAndDestination(Definition def,
                                              QName sourceSrv, String sourcePort,
                                              QName destSrv, String destPort,
                                              boolean isSameBinding) {
        RouteType rt =
            RouteTypeUtil.createRouteType("route_0",
                                           sourceSrv, sourcePort,
                                           destSrv, destPort);
       
        TestRouter router = new TestRouter(null, def, rt);
View Full Code Here

    public List<Router> addRoutes(Definition def) {
        List<Router> routerList = new ArrayList<Router>();
        List<ExtensibilityElement> extList = def.getExtensibilityElements();
        for (ExtensibilityElement extEl : extList) {
            if (extEl instanceof RouteType) {
                RouteType rt = (RouteType)extEl;
                if (isValidRoute(def, rt)) {
                    Router router = createRouter(def, rt);
                    router.init();
                    routerList.add(router);
                } else {
                    //throw new WebServiceException(
                    //            new Message("UNSUPPORTED_ROUTE", LOG, rt.getName()).toString());
                    if (LOG.isLoggable(Level.SEVERE)) {
                        LOG.log(Level.SEVERE, "UNSUPPORTED_ROUTE", rt.getName());
                    }
                }
            }
        }
View Full Code Here

        DestinationType dt = new DestinationType();
        dt.setPort(destPort);
        dt.setService(destService);

        RouteType rt = new RouteType();
        rt.setName(routeName);

        List<SourceType> sList = rt.getSource();
        sList.add(st);
        List<DestinationType> dList = rt.getDestination();
        dList.add(dt);

        return rt;
    }
View Full Code Here

TOP

Related Classes of org.objectweb.celtix.routing.configuration.RouteType

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.