Examples of Route


Examples of org.apache.synapse.mediators.filters.router.Route

        }

        Iterator itr = elem.getChildrenWithName(ROUTE_Q);
        while (itr.hasNext()) {
            OMElement routeElem = (OMElement) itr.next();
            Route route = new Route();

            if (routeElem.getAttribute(BREAK_ROUTE_ATTR) != null) {
                if (JavaUtils.isTrueExplicitly(
                        routeElem.getAttributeValue(BREAK_ROUTE_ATTR).trim())) {

                    route.setBreakRoute(true);
                } else if (JavaUtils.isFalseExplicitly(
                        routeElem.getAttributeValue(BREAK_ROUTE_ATTR).trim())) {

                    route.setBreakRoute(false);
                } else {
                    handleException("breakRoute attribute value of the route element must " +
                            "be either 'true' or 'false', the value found is : "
                            + routeElem.getAttributeValue(BREAK_ROUTE_ATTR).trim());
                }
            }

            OMElement conditionElem = routeElem.getFirstChildWithName(CONDITION_Q);
            if (conditionElem == null) {
                handleException("Couldn't find the condition of the conditional router");
                return null;
            }

            try {
                Evaluator evaluator = EvaluatorFactoryFinder.getInstance().getEvaluator(
                        conditionElem.getFirstElement());
                route.setEvaluator(evaluator);
            } catch (EvaluatorException ee) {
                handleException("Couldn't build the condition of the conditional router", ee);
            }

            OMElement targetElem = routeElem.getFirstChildWithName(TARGET_Q);
            Target target = TargetFactory.createTarget(targetElem, properties);
            if (JavaUtils.isTrueExplicitly(routeElem.getAttributeValue(ASYNCHRONOUS_ATTR))) {
                target.setAsynchronous(true);
            } else {
                target.setAsynchronous(false);
            }
            route.setTarget(target);
            conditionalRouterMediator.addRoute(route);
        }
        return conditionalRouterMediator;
    }
View Full Code Here

Examples of org.broadinstitute.gatk.tools.walkers.haplotypecaller.graphs.Route

       else if (startOrder > endOrder)
           return null;
       else {
           Route<MultiDeBruijnVertex,MultiSampleEdge> result = new Route<>(start,graph);
           for (final MultiSampleEdge edge : edgesInOrder.subList(startOrder,endOrder))
                result = new Route(result,edge);
           return result;
       }
    }
View Full Code Here

Examples of org.eclipse.orion.server.cf.objects.Route

      JSONObject result = new JSONObject();
      routes = new ArrayList<Route>();
      JSONArray resources = routesJSON.getJSONArray(CFProtocolConstants.V2_KEY_RESOURCES);
      for (int k = 0; k < resources.length(); ++k) {
        JSONObject routeJSON = resources.getJSONObject(k);
        Route route = new Route();
        route.setCFJSON(routeJSON);

        if (domainName == null || (domainName.equals(route.getDomainName()) && (hostName == null || hostName.equals(route.getHost())))) {
          if (!orphaned || route.getCFJSON().getJSONObject(CFProtocolConstants.V2_KEY_ENTITY).getJSONArray(CFProtocolConstants.V2_KEY_APPS).length() == 0) {
            routes.add(route);
            result.append("Routes", route.toJSON());
          }
        }
      }

      return new ServerStatus(Status.OK_STATUS, HttpServletResponse.SC_OK, result);
View Full Code Here

Examples of org.fusesource.ide.camel.model.generated.Route

        imageProvider.addIconsForClass(new RemoveHeader());
        imageProvider.addIconsForClass(new RemoveHeaders());
        imageProvider.addIconsForClass(new RemoveProperty());
        imageProvider.addIconsForClass(new Resequence());
        imageProvider.addIconsForClass(new Rollback());
        imageProvider.addIconsForClass(new Route());
        imageProvider.addIconsForClass(new RoutingSlip());
        imageProvider.addIconsForClass(new Sampling());
        imageProvider.addIconsForClass(new SetBody());
        imageProvider.addIconsForClass(new SetExchangePattern());
        imageProvider.addIconsForClass(new SetFaultBody());
View Full Code Here

Examples of org.jboss.aerogear.controller.router.Route

        final Method targetMethod = routeContext.getRoute().getTargetMethod();
        return targetMethod.getParameterTypes().length == 0 ? new Object[] {} : new Object[] { t };
    }

    private RouteContext errorContext(final Throwable rootCause, final RouteContext orgContext) {
        final Route errorRoute = orgContext.getRoutes().routeFor(rootCause);
        return new RouteContext(errorRoute, wrapRequest(orgContext), orgContext.getResponse(), orgContext.getRoutes());
    }
View Full Code Here

Examples of org.jboss.aerogear.controller.router.Route

     *
     * @throws Exception if access to the Route is denied.
     */
    @Override
    public InvocationResult process(final RouteContext routeContext) throws Exception {
        final Route route = routeContext.getRoute();
        if (route.isSecured()) {
            securityProvider.isRouteAllowed(route);
        }
        return delegate.process(routeContext);
    }
View Full Code Here

Examples of org.jboss.seam.jms.bridge.Route

                routing = m.getAnnotation(Routing.class);
            } else {
                log.debug("Routing not found on method " + m.getJavaMember().getName());
            }
            RouteType routeType = (routing == null) ? RouteType.BOTH : routing.value();
            Route route = new RouteImpl(routeType).id(routeId);
            boolean isResourced = m.isAnnotationPresent(Resource.class);
            if (isResourced) {
                Resource r = m.getAnnotation(Resource.class);
                log.debug("Loading resource " + r.mappedName());
                route.addDestinationJndiName(r.mappedName());
            }

            /* in this case, each method has one non destination and multiple
             * destinations.  this can take the form of resources or qualified
             * resources.
             */
            try {
                for (AnnotatedParameter<?> ap : m.getParameters()) {
                    if (ap.getBaseType() instanceof Class) {
                        Class<?> clazz = (Class<?>) ap.getBaseType();
                        if (Destination.class.isAssignableFrom(clazz)) {
                            log.debug("Found another type of qualifier.");
                            //route.addDestinationQualifiers(ap.getAnnotations());
                            route.addAnnotatedParameter(ap);
                        } else if (ap.isAnnotationPresent(Observes.class)) {
                            route.setType(ap.getBaseType());
                            route.getQualifiers().addAll(getQualifiersFrom(ap.getAnnotations()));
                        }
                    }
                }
            } catch (Exception e) {
                log.warn("Exception mapping for method " + m.getJavaMember().getDeclaringClass() + "." + m.getJavaMember().getName() + ", ", e);
View Full Code Here

Examples of org.jclouds.googlecomputeengine.domain.Route

              TIME_WAIT);
   }

   @Test(groups = "live", dependsOnMethods = "testInsertRoute")
   public void testGetRoute() {
      Route route = api().get(ROUTE_NAME);

      assertNotNull(route);
      assertRouteEquals(route);
   }
View Full Code Here

Examples of org.jitterbit.integration.data.entity.operation.flow.Route

        return from.getParent().getPipeline();
    }
   
    private JPopupMenu createMenuForOperationActivityEdge(OperationActivityEdge edge) {
        JPopupMenu popup = null;
        Route route = edge.getRoute();
        if (route.getType() != RouteType.SCRIPTED) {
            popup = new KongaPopupMenu();
            popup.add(new DeleteRouteAction(controller, route));
            return popup;
        }
        return popup;
View Full Code Here

Examples of org.jivesoftware.openfire.multiplex.Route

     * @param packet the route element.
     */
    private void processRoute(final Route packet) {
        if (session.getStatus() != Session.STATUS_AUTHENTICATED) {
            // Session is not authenticated so return error
            Route reply = new Route(packet.getStreamID());
            reply.setID(packet.getID());
            reply.setTo(packet.getFrom());
            reply.setFrom(packet.getTo());
            reply.setError(PacketError.Condition.not_authorized);
            session.process(reply);
            return;
        }
        // Process the packet
        packetHandler.route(packet);
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.