Package resources

Examples of resources.RootResource


        CachingAuthenticator<BasicCredentials, User> authenticator = CachingAuthenticator.wrap(new ElasticSearchAuthenticator(userDao),
                CacheBuilderSpec.parse("maximumSize=5,expireAfterAccess=5m"));
        environment.addProvider(new BasicAuthProvider<User>(authenticator, "Admin stuff"));

        // Create resources
        environment.addResource(new RootResource(articleDao));
        environment.addResource(new SlugResource(articleDao));
        environment.addResource(new SearchResource(articleDao));
        environment.addResource(new ArticleResource(articleDao));
        environment.addResource(new AdminResource(articleDao));
        environment.addResource(new TagResource(articleDao));
View Full Code Here

TOP

Related Classes of resources.RootResource

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.