List of usage examples for org.apache.shiro.guice.web ShiroWebModule bindGuiceFilter
public static void bindGuiceFilter(Binder binder)
From source file:org.apache.metron.dataservices.modules.guice.DefaultServletModule.java
License:Apache License
@Override protected void configureServlets() { ShiroWebModule.bindGuiceFilter(binder()); bind(KafkaWebSocketCreator.class).in(Singleton.class); bind(HttpServletDispatcher.class).in(Singleton.class); serve("/rest/*").with(HttpServletDispatcher.class); bind(KafkaMessageSenderServlet.class).in(Singleton.class); serve("/ws/*").with(KafkaMessageSenderServlet.class); bind(LoginServlet.class).in(Singleton.class); serve("/login").with(LoginServlet.class); bind(LogoutServlet.class).in(Singleton.class); serve("/logout").with(LogoutServlet.class); }
From source file:org.apache.usergrid.chop.webapp.ChopUiModule.java
License:Apache License
protected void configureServlets() { install(new GuicyFigModule(ChopUiFig.class, Project.class, RestFig.class, ElasticSearchFig.class)); install(new AmazonModule()); // Hook Jersey into Guice Servlet bind(GuiceContainer.class); bind(IElasticSearchClient.class).to(ElasticSearchClient.class); // Hook Jackson into Jersey as the POJO <-> JSON mapper bind(JacksonJsonProvider.class).asEagerSingleton(); bind(UploadResource.class).asEagerSingleton(); bind(RunManagerResource.class).asEagerSingleton(); bind(TestGetResource.class).asEagerSingleton(); bind(AuthResource.class).asEagerSingleton(); bind(PropertiesResource.class).asEagerSingleton(); bind(RunnerCoordinator.class).asEagerSingleton(); ShiroWebModule.bindGuiceFilter(binder()); // This should be before "/*" otherwise the vaadin servlet will not work serve("/VAADIN*").with(VaadinServlet.class); Map<String, String> params = new HashMap<String, String>(); params.put(PACKAGES_KEY, getClass().getPackage().toString()); serve("/*").with(GuiceContainer.class, params); }
From source file:uk.co.q3c.v7.base.guice.BaseModule.java
License:Apache License
@Override protected void configureServlets() { serve("/*").with(BaseServlet.class); ShiroWebModule.bindGuiceFilter(binder()); }