Home
last modified time | relevance | path

Searched refs:servletContext (Results 1 – 14 of 14) sorted by relevance

/external/guice/extensions/servlet/src/com/google/inject/servlet/
DGuiceServletContextListener.java39 final ServletContext servletContext = servletContextEvent.getServletContext(); in contextInitialized() local
43 GuiceFilter.servletContext = new WeakReference<>(servletContext); in contextInitialized()
48 .set(servletContext); in contextInitialized()
49 servletContext.setAttribute(INJECTOR_NAME, injector); in contextInitialized()
54 ServletContext servletContext = servletContextEvent.getServletContext(); in contextDestroyed() local
55 servletContext.removeAttribute(INJECTOR_NAME); in contextDestroyed()
DManagedFilterPipeline.java49 private final Provider<ServletContext> servletContext; field in ManagedFilterPipeline
63 Provider<ServletContext> servletContext) { in ManagedFilterPipeline() argument
66 this.servletContext = servletContext; in ManagedFilterPipeline()
89 public synchronized void initPipeline(ServletContext servletContext) throws ServletException { in initPipeline() argument
98 filterDefinition.init(servletContext, injector, initializedSoFar); in initPipeline()
102 servletPipeline.init(servletContext, injector); in initPipeline()
116 initPipeline(servletContext.get()); in dispatch()
DGuiceFilter.java71 static volatile WeakReference<ServletContext> servletContext = field in GuiceFilter
159 return servletContext.get(); in getServletContext()
223 final ServletContext servletContext = filterConfig.getServletContext();
226 GuiceFilter.servletContext = new WeakReference<>(servletContext);
232 filterPipeline.initPipeline(servletContext);
245 servletContext.clear();
DFilterDefinition.java89 final ServletContext servletContext, Injector injector, Set<Filter> initializedSoFar) in init() argument
119 return servletContext; in init()
DManagedServletPipeline.java76 public void init(ServletContext servletContext, Injector injector) throws ServletException { in init() argument
80 servletDefinition.init(servletContext, injector, initializedSoFar); in init()
DServletDefinition.java99 final ServletContext servletContext, Injector injector, Set<HttpServlet> initializedSoFar) in init() argument
128 return servletContext; in init()
/external/guice/extensions/servlet/test/com/google/inject/servlet/
DInjectedFilterPipelineTest.java81 ServletContext servletContext = createMock(ServletContext.class); in testDispatchThruInjectedGuiceFilter() local
87 expect(filterConfig.getServletContext()).andReturn(servletContext).once(); in testDispatchThruInjectedGuiceFilter()
99 replay(filterConfig, servletContext, request, proceedingFilterChain); in testDispatchThruInjectedGuiceFilter()
108 verify(filterConfig, servletContext, request, proceedingFilterChain); in testDispatchThruInjectedGuiceFilter()
111 reset(filterConfig, servletContext, request, proceedingFilterChain); in testDispatchThruInjectedGuiceFilter()
118 expect(filterConfig.getServletContext()).andReturn(servletContext).once(); in testDispatchThruInjectedGuiceFilter()
129 replay(filterConfig, servletContext, request, proceedingFilterChain2, proceedingFilterChain); in testDispatchThruInjectedGuiceFilter()
138 verify(filterConfig, servletContext, request, proceedingFilterChain, proceedingFilterChain2); in testDispatchThruInjectedGuiceFilter()
DFilterDefinitionTest.java58 ServletContext servletContext = createMock(ServletContext.class); in testFilterInitAndConfig() local
60 expect(servletContext.getServletContextName()).andReturn(contextName); in testFilterInitAndConfig()
62 replay(servletContext); in testFilterInitAndConfig()
71 filterDef.init(servletContext, injector, Sets.<Filter>newIdentityHashSet()); in testFilterInitAndConfig()
87 verify(binding, injector, servletContext); in testFilterInitAndConfig()
214 ServletContext servletContext = createMock(ServletContext.class); in testGetFilterIfMatching() local
236 filterDef.init(servletContext, injector, Sets.<Filter>newIdentityHashSet()); in testGetFilterIfMatching()
251 ServletContext servletContext = createMock(ServletContext.class); in testGetFilterIfMatchingNotMatching() local
273 filterDef.init(servletContext, injector, Sets.<Filter>newIdentityHashSet()); in testGetFilterIfMatchingNotMatching()
DServletDefinitionTest.java76 ServletContext servletContext = createMock(ServletContext.class); in testServletInitAndConfig() local
78 expect(servletContext.getServletContextName()).andReturn(contextName); in testServletInitAndConfig()
80 replay(servletContext); in testServletInitAndConfig()
82 servletDefinition.init(servletContext, injector, Sets.<HttpServlet>newIdentityHashSet()); in testServletInitAndConfig()
97 verify(injector, binding, servletContext); in testServletInitAndConfig()
DFilterPipelineTest.java63 ServletContext servletContext = createMock(ServletContext.class); in testDispatchThruGuiceFilter() local
69 expect(filterConfig.getServletContext()).andReturn(servletContext).once(); in testDispatchThruGuiceFilter()
79 replay(filterConfig, servletContext, request, proceedingFilterChain); in testDispatchThruGuiceFilter()
88 verify(filterConfig, servletContext, request, proceedingFilterChain); in testDispatchThruGuiceFilter()
DContextPathTest.java55 private ServletContext servletContext; field in ContextPathTest
86 servletContext = globalControl.createMock(ServletContext.class); in setUp()
89 expect(servletContext.getAttribute(GuiceServletContextListener.INJECTOR_NAME)) in setUp()
92 expect(filterConfig.getServletContext()).andReturn(servletContext).anyTimes(); in setUp()
114 servletContext = null; in tearDown()
/external/guice/extensions/struts2/lib/
Dstruts2-core-2.2.1.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/apache/ org/ ...
Dfreemarker-2.3.16.jarMETA-INF/ META-INF/MANIFEST.MF freemarker/ freemarker/cache/ freemarker/ ...
Djsp-2.1.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/apache/ org/ ...