Package org.jboss.aerogear.controller.router

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


        } catch (Throwable t) {
            if (t instanceof HttpStatusAwareException) {
                routeContext.getResponse().setStatus(((HttpStatusAwareException) t).getStatus());
            }
            final Throwable rootCause = Throwables.getRootCause(t);
            final Route errorRoute = routeContext.getRoutes().routeFor(rootCause);
            invokeErrorRoute(errorRoute, rootCause);
            forwardErrorToView(errorRoute, rootCause, routeContext.getRequest(), routeContext.getResponse());
        }
    }
View Full Code Here


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

        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

     *
     * @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

TOP

Related Classes of org.jboss.aerogear.controller.router.Route

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.