Package restx.entity

Examples of restx.entity.StdEntityRoute


    @Override
    public Optional<RestxHandlerMatch> match(RestxRoute route) {
        if (!(route instanceof StdEntityRoute)) {
            return Optional.absent();
        }
        StdEntityRoute stdEntityRoute = (StdEntityRoute) route;
        if (!(stdEntityRoute.getEntityResponseType() instanceof Class)) {
            return Optional.absent();
        }

        Class<?> clazz = (Class<?>) stdEntityRoute.getEntityResponseType();

        for (ETagProvider<?> provider : providers) {
            if (provider.getEntityType().isAssignableFrom(clazz)) {
                return Optional.of(new RestxHandlerMatch(new StdRestxRequestMatch("/*"), new ETagHandler<>(provider)));
            }
View Full Code Here

TOP

Related Classes of restx.entity.StdEntityRoute

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.