Home
last modified time | relevance | path

Searched refs:servletRequest (Results 1 – 18 of 18) sorted by relevance

/external/guice/extensions/servlet/src/com/google/inject/servlet/
DManagedServletPipeline.java119 public void forward(ServletRequest servletRequest, ServletResponse servletResponse) in getRequestDispatcher()
130 if (servletRequest instanceof HttpServletRequest) { in getRequestDispatcher()
131 requestToProcess = wrapRequest((HttpServletRequest) servletRequest, newRequestUri); in getRequestDispatcher()
136 requestToProcess = servletRequest; in getRequestDispatcher()
144 public void include(ServletRequest servletRequest, ServletResponse servletResponse) in getRequestDispatcher() argument
147 doServiceImpl(servletDefinition, servletRequest, servletResponse); in getRequestDispatcher()
152 ServletRequest servletRequest, in getRequestDispatcher() argument
155 servletRequest.setAttribute(REQUEST_DISPATCHER_REQUEST, Boolean.TRUE); in getRequestDispatcher()
158 servletDefinition.doService(servletRequest, servletResponse); in getRequestDispatcher()
160 servletRequest.removeAttribute(REQUEST_DISPATCHER_REQUEST); in getRequestDispatcher()
[all …]
DFilterChainInvocation.java68 public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse) in doFilter() argument
71 HttpServletRequest request = (HttpServletRequest) servletRequest; in doFilter()
82 filter.doFilter(servletRequest, servletResponse, this); in doFilter()
85 final boolean serviced = servletPipeline.service(servletRequest, servletResponse); in doFilter()
89 proceedingChain.doFilter(servletRequest, servletResponse); in doFilter()
DServletDefinition.java174 public boolean service(ServletRequest servletRequest, ServletResponse servletResponse) in service() argument
177 final HttpServletRequest request = (HttpServletRequest) servletRequest; in service()
184 doService(servletRequest, servletResponse); in service()
198 void doService(final ServletRequest servletRequest, ServletResponse servletResponse) in doService() argument
202 new HttpServletRequestWrapper((HttpServletRequest) servletRequest) { in doService()
245 && servletRequest.getAttribute(REQUEST_DISPATCHER_REQUEST) == null; in doService()
249 return pathComputed && servletRequest.getAttribute(REQUEST_DISPATCHER_REQUEST) == null; in doService()
DManagedFilterPipeline.java137 ServletRequest servletRequest, final ManagedServletPipeline servletPipeline) { in withDispatcher() argument
143 return servletRequest; in withDispatcher()
146 HttpServletRequest request = (HttpServletRequest) servletRequest; in withDispatcher()
DGuiceFilter.java117 final ServletRequest servletRequest, in doFilter() argument
125 HttpServletRequest request = (HttpServletRequest) servletRequest; in doFilter()
133 filterPipeline.dispatch(servletRequest, servletResponse, filterChain); in doFilter()
/external/guice/extensions/servlet/test/com/google/inject/servlet/
DFilterDefinitionTest.java129 public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse) { in testFilterCreateDispatchDestroy()
153 ServletRequest servletRequest, in testFilterCreateDispatchDestroySupressChain()
192 public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse) { in testFilterCreateDispatchDestroySupressChain()
213 HttpServletRequest servletRequest = createMock(HttpServletRequest.class); in testGetFilterIfMatching() local
222 ServletRequest servletRequest, in testGetFilterIfMatching()
232 expect(servletRequest.getContextPath()).andReturn("/a_context_path"); in testGetFilterIfMatching()
233 expect(servletRequest.getRequestURI()).andReturn("/a_context_path/test.html"); in testGetFilterIfMatching()
235 replay(servletRequest, binding, injector); in testGetFilterIfMatching()
237 Filter filter = filterDef.getFilterIfMatching(servletRequest); in testGetFilterIfMatching()
239 verify(servletRequest, binding, injector); in testGetFilterIfMatching()
[all …]
DServletDispatchIntegrationTest.java167 public void service(ServletRequest servletRequest, ServletResponse servletResponse) in service() argument
186 public void service(ServletRequest servletRequest, ServletResponse servletResponse) in service() argument
206 ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) in doFilter() argument
209 filterChain.doFilter(servletRequest, servletResponse); in doFilter()
221 public void service(ServletRequest servletRequest, ServletResponse servletResponse) in service() argument
223 final HttpServletRequest request = (HttpServletRequest) servletRequest; in service()
225 request.getRequestDispatcher("/blah.jsp").forward(servletRequest, servletResponse); in service()
239 public void service(ServletRequest servletRequest, ServletResponse servletResponse) in service() argument
241 final HttpServletRequest request = (HttpServletRequest) servletRequest; in service()
DServletDefinitionTest.java116 HttpServletRequest servletRequest = createMock(HttpServletRequest.class); in testServiceWithContextPath() local
118 expect(servletRequest.getContextPath()).andReturn("/a_context_path"); in testServiceWithContextPath()
119 expect(servletRequest.getRequestURI()).andReturn("/test.html"); in testServiceWithContextPath()
120 replay(servletRequest, servletResponse); in testServiceWithContextPath()
121 servletDefinition.service(servletRequest, servletResponse); in testServiceWithContextPath()
122 verify(servletRequest, servletResponse); in testServiceWithContextPath()
DServletTest.java144 public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse) { in testRequestAndResponseBindings()
146 assertSame(request, servletRequest); in testRequestAndResponseBindings()
154 assertSame(servletRequest.getParameterMap(), injector.getInstance(REQ_PARAMS_KEY)); in testRequestAndResponseBindings()
227 public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse) { in testRequestAndResponseBindings_wrappingFilter()
229 assertSame(requestWrapper, servletRequest); in testRequestAndResponseBindings_wrappingFilter()
237 assertSame(servletRequest.getParameterMap(), injector.getInstance(REQ_PARAMS_KEY)); in testRequestAndResponseBindings_wrappingFilter()
324 public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse) { in testRequestAndResponseBindings_matchesPassedParameters() argument
342 public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse) { in testNewRequestObject()
363 public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse) { in testExistingRequestObject()
388 public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse) { in testNewSessionObject()
[all …]
DServletDefinitionPathsTest.java80 HttpServletRequest servletRequest, HttpServletResponse httpServletResponse) in servletPath()
83 final String path = servletRequest.getServletPath(); in servletPath()
170 HttpServletRequest servletRequest, HttpServletResponse httpServletResponse) in pathInfoWithServletStyleMatching()
173 final String path = servletRequest.getPathInfo(); in pathInfoWithServletStyleMatching()
187 assertSame("memo field did not work", path, servletRequest.getPathInfo()); in pathInfoWithServletStyleMatching()
281 HttpServletRequest servletRequest, HttpServletResponse httpServletResponse) in pathInfoWithRegexMatching()
284 final String path = servletRequest.getPathInfo(); in pathInfoWithRegexMatching()
298 assertSame("memo field did not work", path, servletRequest.getPathInfo()); in pathInfoWithRegexMatching()
DVarargsServletDispatchIntegrationTest.java199 public void service(ServletRequest servletRequest, ServletResponse servletResponse) in service() argument
218 public void service(ServletRequest servletRequest, ServletResponse servletResponse) in service() argument
238 ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) in doFilter() argument
241 filterChain.doFilter(servletRequest, servletResponse); in doFilter()
DFilterPipelineTest.java98 ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) in doFilter() argument
100 filterChain.doFilter(servletRequest, servletResponse); in doFilter()
114 ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) { in doFilter() argument
DInjectedFilterPipelineTest.java148 ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) in doFilter() argument
150 filterChain.doFilter(servletRequest, servletResponse); in doFilter()
164 ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) in doFilter() argument
DMultiModuleDispatchIntegrationTest.java103 ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) in doFilter() argument
106 filterChain.doFilter(servletRequest, servletResponse); in doFilter()
DFilterDispatchIntegrationTest.java226 ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) in doFilter() argument
229 filterChain.doFilter(servletRequest, servletResponse); in doFilter()
306 public void service(ServletRequest servletRequest, ServletResponse servletResponse) in service() argument
308 service((HttpServletRequest) servletRequest, (HttpServletResponse) servletResponse); in service()
DVarargsFilterDispatchIntegrationTest.java178 ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) in doFilter() argument
181 filterChain.doFilter(servletRequest, servletResponse); in doFilter()
DDummyFilterImpl.java46 ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) in doFilter() argument
/external/guice/extensions/persist/src/com/google/inject/persist/
DPersistFilter.java87 final ServletRequest servletRequest, in doFilter() argument
94 filterChain.doFilter(servletRequest, servletResponse); in doFilter()