Package restx

Examples of restx.RestxRouteFilter


        return new ExampleRoute();
    }

    @Provides(priority = 12000) // we set a priority higher than ResponseCloseFilter, so that response is not closed after the handle
    public RestxRouteFilter routeFilterExample() {
        return new RestxRouteFilter() {
            @Override
            public Optional<RestxHandlerMatch> match(RestxRoute route) {
                // here we decide to apply the filter or not based on the route class.
                // but we could decide on any route property, for instance relying on the fact that routes generated
                // by @{GET,POST,PUT,DELETE} are always StdEntityRoute instances and their matcher always StdRouteMatcher
View Full Code Here

TOP

Related Classes of restx.RestxRouteFilter

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.