use of org.secnod.shiro.jaxrs.ShiroExceptionMapper 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);
}
}
Aggregations