Search in sources :

Example 1 with UserFactory

use of org.secnod.example.webapp.UserFactory in project dropwizard-shiro by silb.

the class ApiApplication method run.

@Override
public void run(ApiConfiguration configuration, Environment environment) throws Exception {
    environment.jersey().register(new UserFactory());
    environment.jersey().register(new ShiroExceptionMapper());
    environment.getApplicationContext().setSessionHandler(new SessionHandler());
    for (Object resource : IntegrationTestApplication.createAllIntegrationTestResources()) {
        environment.jersey().register(resource);
    }
}
Also used : SessionHandler(org.eclipse.jetty.server.session.SessionHandler) ShiroExceptionMapper(org.secnod.shiro.jaxrs.ShiroExceptionMapper) UserFactory(org.secnod.example.webapp.UserFactory)

Aggregations

SessionHandler (org.eclipse.jetty.server.session.SessionHandler)1 UserFactory (org.secnod.example.webapp.UserFactory)1 ShiroExceptionMapper (org.secnod.shiro.jaxrs.ShiroExceptionMapper)1