Package restx.entity

Examples of restx.entity.MatchedEntityOutputRoute


    @SuppressWarnings("unchecked")
    public void should_handle_simple_routes() throws Exception {
        SimpleWebServer server = SimpleWebServer.builder().setRouter(StdRestxMainRouter.builder()
                .addRouter(RestxRouter.builder()
                        .withMapper(mapper)
                        .GET("/route1/{id}", Map.class, new MatchedEntityOutputRoute() {
                            @Override
                            public Optional route(RestxRequest restxRequest, RestxRequestMatch match) {
                                return Optional.of(ImmutableMap.of("id", match.getPathParam("id")));
                            }
                        })
View Full Code Here

TOP

Related Classes of restx.entity.MatchedEntityOutputRoute

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.