Examples of RouteDescriptor


Examples of juzu.impl.plugin.router.RouteDescriptor

      Iterator<RouteMatch> matches = root.matcher(requestPath.substring(bridge.getRequestContext().getPath().length()), Collections.<String, String[]>emptyMap());

      // Determine a method
      while (matches.hasNext()) {
        RouteMatch match = matches.next();
        RouteDescriptor routeDesc = getMethods(match.getRoute());
        if (routeDesc != null) {
          ControllerHandler target = this.bridge.getApplication().resolveBean(ControllerService.class).getDescriptor().getMethodByHandle(routeDesc.handle);
          if (target.getPhase() == Phase.VIEW) {
            if (requestMethod == HttpMethod.POST) {
              requestTarget =  target;
View Full Code Here

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

        assertThat(evs.resolveViewPathFor(customErrorRoute)).isEqualTo("/WEB-INF/pages/ErrorTarget/errorPage.jsp");
    }

    @SuppressWarnings("unchecked")
    private Route customErrorRoute(final Class<? extends Throwable> t) throws Exception {
        final RouteDescriptor rd = new RouteDescriptor();
        rd.setPath("ErrorFilter").setThrowables(new HashSet<Class<? extends Throwable>>(Arrays.asList(t)))
                .on(RequestMethod.GET).to(ErrorTarget.class).errorPage();
        return new DefaultRoute(rd);
    }
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.