Home
last modified time | relevance | path

Searched refs:GuiceFilter (Results 1 – 19 of 19) sorted by relevance

/external/guice/extensions/servlet/src/com/google/inject/servlet/
DGuiceFilter.java64 public class GuiceFilter implements Filter { class
80 + GuiceFilter.class.getSimpleName() + " running "
85 private static final Logger LOGGER = Logger.getLogger(GuiceFilter.class.getName());
87 public GuiceFilter() { in GuiceFilter() method in GuiceFilter
92 @Inject GuiceFilter(FilterPipeline filterPipeline) { in GuiceFilter() method in GuiceFilter
102 if (GuiceFilter.pipeline instanceof ManagedFilterPipeline) { in setPipeline()
107 GuiceFilter.pipeline = pipeline; in setPipeline()
124 Context previous = GuiceFilter.localContext.get(); in doFilter()
167 + " have forgotten to apply " + GuiceFilter.class.getName() in getContext()
214 GuiceFilter.servletContext = new WeakReference<ServletContext>(servletContext); in init()
DInternalServletModule.java77 return GuiceFilter.getServletContext(); in get()
91 requestStaticInjection(GuiceFilter.class); in configure()
101 @Provides @Singleton @ScopingOnly GuiceFilter provideScopingOnlyGuiceFilter() { in provideScopingOnlyGuiceFilter()
102 return new GuiceFilter(new DefaultFilterPipeline()); in provideScopingOnlyGuiceFilter()
106 return GuiceFilter.getRequest(Key.get(HttpServletRequest.class)); in provideHttpServletRequest()
110 return GuiceFilter.getResponse(Key.get(HttpServletResponse.class)); in provideHttpServletResponse()
114 return GuiceFilter.getRequest(Key.get(HttpSession.class)).getSession(); in provideHttpSession()
DServletScopes.java74 if (null == GuiceFilter.localContext.get()) {
107 HttpServletRequest request = GuiceFilter.getOriginalRequest(key);
152 HttpSession session = GuiceFilter.getRequest(key).getSession();
222 GuiceFilter.getRequest(Key.get(HttpServletRequest.class))); in continueRequest()
230 checkScopingState(null == GuiceFilter.localContext.get(), in continueRequest()
232 return new GuiceFilter.Context(continuingRequest, continuingRequest, null) in continueRequest()
262 return (GuiceFilter.localContext.get() != null)
268 final GuiceFilter.Context context = GuiceFilter.localContext.get();
340 checkScopingState(null == GuiceFilter.localContext.get(),
DFilterChainInvocation.java70 GuiceFilter.Context previous = GuiceFilter.localContext.get(); in doFilter()
75 GuiceFilter.localContext.set(new GuiceFilter.Context(originalRequest, request, response)); in doFilter()
104 GuiceFilter.localContext.set(previous); in doFilter()
DServletDefinition.java282 GuiceFilter.Context previous = GuiceFilter.localContext.get(); in doServiceImpl()
285 GuiceFilter.localContext.set(new GuiceFilter.Context(originalRequest, request, response)); in doServiceImpl()
289 GuiceFilter.localContext.set(previous); in doServiceImpl()
DGuiceServletContextListener.java45 GuiceFilter.servletContext = new WeakReference<ServletContext>(servletContext); in contextInitialized()
DServletModule.java291 return GuiceFilter.getServletContext(); in getServletContext()
/external/guice/extensions/servlet/test/com/google/inject/servlet/
DInvalidScopeBindingTest.java25 GuiceFilter.reset(); in tearDown()
29 GuiceFilter guiceFilter = new GuiceFilter(); in testServletInNonSingletonScopeThrowsServletException()
49 GuiceFilter guiceFilter = new GuiceFilter(); in testFilterInNonSingletonScopeThrowsServletException()
69 GuiceFilter guiceFilter = new GuiceFilter(); in testHappyCaseFilter()
DServletTest.java84 GuiceFilter.reset(); in setUp()
126 GuiceFilter filter = new GuiceFilter(); in testRequestAndResponseBindings()
195 GuiceFilter filter = new GuiceFilter(); in testRequestAndResponseBindings_wrappingFilter()
278 GuiceFilter filter = new GuiceFilter(); in testRequestAndResponseBindings_matchesPassedParameters()
294 GuiceFilter filter = new GuiceFilter(); in testNewRequestObject()
315 GuiceFilter filter = new GuiceFilter(); in testExistingRequestObject()
340 GuiceFilter filter = new GuiceFilter(); in testNewSessionObject()
361 GuiceFilter filter = new GuiceFilter(); in testExistingSessionObject()
386 GuiceFilter filter = new GuiceFilter(); in testHttpSessionIsSerializable()
430 new GuiceFilter().doFilter(request, null, filterChain); in testGuiceFilterConstructors()
[all …]
DFilterPipelineTest.java38 GuiceFilter.reset(); in setUp()
58 GuiceFilter.reset(); in tearDown()
89 final GuiceFilter webFilter = new GuiceFilter(); in testDispatchThruGuiceFilter()
DContinuingRequestIntegrationTest.java105 injector.getInstance(GuiceFilter.class).destroy(); in tearDown()
123 GuiceFilter guiceFilter = injector.getInstance(GuiceFilter.class); in testRequestContinuesInOtherThread()
166 GuiceFilter guiceFilter = injector.getInstance(GuiceFilter.class); in testRequestContinuationDiesInHttpRequestThread()
DInjectedFilterPipelineTest.java105 GuiceFilter webFilter = injector1.getInstance(GuiceFilter.class); in testDispatchThruInjectedGuiceFilter()
144 webFilter = injector2.getInstance(GuiceFilter.class); in testDispatchThruInjectedGuiceFilter()
DContextPathTest.java59 private GuiceFilter guiceFilter;
91 guiceFilter = new GuiceFilter(); in setUp()
DServletDispatchIntegrationTest.java61 GuiceFilter.reset(); in setUp()
261 new GuiceFilter() in testForwardUsingRequestDispatcher()
DMultiModuleDispatchIntegrationTest.java43 GuiceFilter.reset(); in setUp()
DServletSpiVisitor.java67 GuiceFilter.class); in ServletSpiVisitor()
DVarargsFilterDispatchIntegrationTest.java43 GuiceFilter.reset(); in setUp()
DVarargsServletDispatchIntegrationTest.java59 GuiceFilter.reset(); in setUp()
DFilterDispatchIntegrationTest.java70 GuiceFilter.reset(); in setUp()