Package com.example.helloworld.resources

Examples of com.example.helloworld.resources.UserResource


        final UserDAO dao = new UserDAO(hibernateBundle.getSessionFactory());
        final Client client = new JerseyClientBuilder(environment).using(configuration.getJerseyClient()).build(getName());
        final ClientSecretsConfiguration clientSecrets = configuration.getClientSecrets();
       
        environment.jersey().register(new ClientResource());
        environment.jersey().register(new UserResource(dao));
        environment.jersey().register(new AuthResource(client, dao, clientSecrets));
       
        environment.servlets().addFilter("AuthFilter", new AuthFilter())
          .addMappingForUrlPatterns(null, true, "/api/me");
    }
View Full Code Here

TOP

Related Classes of com.example.helloworld.resources.UserResource

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.