Home
last modified time | relevance | path

Searched refs:filterConfig (Results 1 – 22 of 22) sorted by relevance

/external/guice/extensions/servlet/test/com/google/inject/servlet/
DInjectedFilterPipelineTest.java80 FilterConfig filterConfig = createMock(FilterConfig.class); in testDispatchThruInjectedGuiceFilter() local
87 expect(filterConfig.getServletContext()) in testDispatchThruInjectedGuiceFilter()
103 replay(filterConfig, servletContext, request, proceedingFilterChain); in testDispatchThruInjectedGuiceFilter()
107 webFilter.init(filterConfig); in testDispatchThruInjectedGuiceFilter()
112 verify(filterConfig, servletContext, request, proceedingFilterChain); in testDispatchThruInjectedGuiceFilter()
120 reset(filterConfig, servletContext, request, proceedingFilterChain); in testDispatchThruInjectedGuiceFilter()
127 expect(filterConfig.getServletContext()) in testDispatchThruInjectedGuiceFilter()
142 replay(filterConfig, servletContext, request, proceedingFilterChain2, proceedingFilterChain); in testDispatchThruInjectedGuiceFilter()
146 webFilter.init(filterConfig); in testDispatchThruInjectedGuiceFilter()
151 verify(filterConfig, servletContext, request, proceedingFilterChain, proceedingFilterChain2); in testDispatchThruInjectedGuiceFilter()
[all …]
DFilterPipelineTest.java64 FilterConfig filterConfig = createMock(FilterConfig.class); in testDispatchThruGuiceFilter() local
71 expect(filterConfig.getServletContext()) in testDispatchThruGuiceFilter()
87 replay(filterConfig, servletContext, request, proceedingFilterChain); in testDispatchThruGuiceFilter()
91 webFilter.init(filterConfig); in testDispatchThruGuiceFilter()
96 verify(filterConfig, servletContext, request, proceedingFilterChain); in testDispatchThruGuiceFilter()
101 public void init(FilterConfig filterConfig) { in init() argument
115 public void init(FilterConfig filterConfig) { in init() argument
DContinuingRequestIntegrationTest.java120 FilterConfig filterConfig = createMock(FilterConfig.class); in testRequestContinuesInOtherThread() local
121 expect(filterConfig.getServletContext()).andReturn(createMock(ServletContext.class)); in testRequestContinuesInOtherThread()
137 replay(request, filterConfig, filterChain); in testRequestContinuesInOtherThread()
139 guiceFilter.init(filterConfig); in testRequestContinuesInOtherThread()
147 verify(request, filterConfig, filterChain); in testRequestContinuesInOtherThread()
163 FilterConfig filterConfig = createMock(FilterConfig.class); in testRequestContinuationDiesInHttpRequestThread() local
164 expect(filterConfig.getServletContext()).andReturn(createMock(ServletContext.class)); in testRequestContinuationDiesInHttpRequestThread()
179 replay(request, filterConfig, filterChain); in testRequestContinuationDiesInHttpRequestThread()
181 guiceFilter.init(filterConfig); in testRequestContinuationDiesInHttpRequestThread()
191 verify(request, filterConfig, filterChain); in testRequestContinuationDiesInHttpRequestThread()
DFilterDefinitionTest.java75 final FilterConfig filterConfig = mockFilter.getConfig(); in testFilterInitAndConfig() local
76 assertTrue(null != filterConfig); in testFilterInitAndConfig()
77 assertEquals(filterConfig.getServletContext().getServletContextName(), contextName); in testFilterInitAndConfig()
78 assertEquals(filterConfig.getFilterName(), Key.get(Filter.class).toString()); in testFilterInitAndConfig()
80 final Enumeration names = filterConfig.getInitParameterNames(); in testFilterInitAndConfig()
85 assertEquals(filterConfig.getInitParameter(name), initParams.get(name)); in testFilterInitAndConfig()
281 public void init(FilterConfig filterConfig) { in init() argument
284 this.config = filterConfig; in init()
DContextPathTest.java58 private FilterConfig filterConfig; field in ContextPathTest
83 filterConfig = globalControl.createMock(FilterConfig.class); in setUp()
87 expect(filterConfig.getServletContext()).andReturn(servletContext).anyTimes(); in setUp()
92 guiceFilter.init(filterConfig); in setUp()
108 filterConfig = null; in tearDown()
DVarargsServletDispatchIntegrationTest.java188 public void init(ServletConfig filterConfig) throws ServletException { in init() argument
204 public void init(ServletConfig filterConfig) throws ServletException { in init() argument
220 public void init(FilterConfig filterConfig) throws ServletException { in init() argument
DServletDispatchIntegrationTest.java157 public void init(ServletConfig filterConfig) throws ServletException { in init() argument
173 public void init(ServletConfig filterConfig) throws ServletException { in init() argument
189 public void init(FilterConfig filterConfig) throws ServletException { in init() argument
DDummyFilterImpl.java43 public void init(FilterConfig filterConfig) throws ServletException { in init() argument
DFilterDispatchIntegrationTest.java218 public void init(FilterConfig filterConfig) { in init() argument
306 public void init(FilterConfig filterConfig) {} in init() argument
386 public void init(FilterConfig filterConfig) { in init() argument
DMultiModuleDispatchIntegrationTest.java99 public void init(FilterConfig filterConfig) throws ServletException { in init() argument
DVarargsFilterDispatchIntegrationTest.java168 public void init(FilterConfig filterConfig) throws ServletException { in init() argument
DServletTest.java173 public void init(FilterConfig filterConfig) {} in testRequestAndResponseBindings_wrappingFilter()
235 public void init(FilterConfig filterConfig) {} in testRequestAndResponseBindings_matchesPassedParameters()
/external/jetty/src/java/org/eclipse/jetty/servlets/
DQoSFilter.java106 public void init(FilterConfig filterConfig) in init() argument
108 _context=filterConfig.getServletContext(); in init()
111 if (filterConfig.getInitParameter(MAX_PRIORITY_INIT_PARAM)!=null) in init()
112 max_priority=Integer.parseInt(filterConfig.getInitParameter(MAX_PRIORITY_INIT_PARAM)); in init()
133 if (filterConfig.getInitParameter(MAX_REQUESTS_INIT_PARAM)!=null) in init()
134 maxRequests=Integer.parseInt(filterConfig.getInitParameter(MAX_REQUESTS_INIT_PARAM)); in init()
139 if (filterConfig.getInitParameter(MAX_WAIT_INIT_PARAM)!=null) in init()
140 wait=Integer.parseInt(filterConfig.getInitParameter(MAX_WAIT_INIT_PARAM)); in init()
144 if (filterConfig.getInitParameter(SUSPEND_INIT_PARAM)!=null) in init()
145 suspend=Integer.parseInt(filterConfig.getInitParameter(SUSPEND_INIT_PARAM)); in init()
[all …]
DGzipFilter.java151 public void init(FilterConfig filterConfig) throws ServletException in init() argument
153 super.init(filterConfig); in init()
155 _context=filterConfig.getServletContext(); in init()
157 String tmp=filterConfig.getInitParameter("bufferSize"); in init()
161 tmp=filterConfig.getInitParameter("minGzipSize"); in init()
165 tmp=filterConfig.getInitParameter("deflateCompressionLevel"); in init()
169 tmp=filterConfig.getInitParameter("deflateNoWrap"); in init()
173 tmp=filterConfig.getInitParameter("methods"); in init()
183 tmp=filterConfig.getInitParameter("mimeTypes"); in init()
191 tmp=filterConfig.getInitParameter("excludedAgents"); in init()
[all …]
DDoSFilter.java187 public void init(FilterConfig filterConfig) in init() argument
189 _context = filterConfig.getServletContext(); in init()
214 String parameter = filterConfig.getInitParameter(MAX_REQUESTS_PER_S_INIT_PARAM); in init()
220 parameter = filterConfig.getInitParameter(DELAY_MS_INIT_PARAM); in init()
226 parameter = filterConfig.getInitParameter(THROTTLED_REQUESTS_INIT_PARAM); in init()
232 parameter = filterConfig.getInitParameter(MAX_WAIT_INIT_PARAM); in init()
238 parameter = filterConfig.getInitParameter(THROTTLE_MS_INIT_PARAM); in init()
244 parameter = filterConfig.getInitParameter(MAX_REQUEST_MS_INIT_PARAM); in init()
250 parameter = filterConfig.getInitParameter(MAX_IDLE_TRACKER_MS_INIT_PARAM); in init()
256 parameter = filterConfig.getInitParameter(IP_WHITELIST_INIT_PARAM); in init()
[all …]
DMultiPartFilter.java105 public void init(FilterConfig filterConfig) throws ServletException in init() argument
107 … tempdir=(File)filterConfig.getServletContext().getAttribute("javax.servlet.context.tempdir"); in init()
108 _deleteFiles="true".equals(filterConfig.getInitParameter("deleteFiles")); in init()
109 String fileOutputBuffer = filterConfig.getInitParameter("fileOutputBuffer"); in init()
112 String maxFileSize = filterConfig.getInitParameter("maxFileSize"); in init()
115 String maxRequestSize = filterConfig.getInitParameter("maxRequestSize"); in init()
119 _context=filterConfig.getServletContext(); in init()
120 String mfks = filterConfig.getInitParameter("maxFormKeys"); in init()
DUserAgentFilter.java89 public void init(FilterConfig filterConfig) throws ServletException in init() argument
91 _attribute=filterConfig.getInitParameter("attribute"); in init()
93 String p=filterConfig.getInitParameter("userAgent"); in init()
97 String size=filterConfig.getInitParameter("cacheSize"); in init()
DWelcomeFilter.java48 public void init(FilterConfig filterConfig) in init() argument
50 welcome=filterConfig.getInitParameter("welcome"); in init()
DIncludableGzipFilter.java56 public void init(FilterConfig filterConfig) throws ServletException in init() argument
58 super.init(filterConfig); in init()
60 String tmp=filterConfig.getInitParameter("uncheckedPrintWriter"); in init()
/external/jetty/src/java/org/eclipse/jetty/continuation/
DContinuationFilter.java63 public void init(FilterConfig filterConfig) throws ServletException in init() argument
65 …boolean jetty_7_or_greater="org.eclipse.jetty.servlet".equals(filterConfig.getClass().getPackage()… in init()
66 _context = filterConfig.getServletContext(); in init()
68 String param=filterConfig.getInitParameter("debug"); in init()
73 param=filterConfig.getInitParameter("jetty6"); in init()
75 param=filterConfig.getInitParameter("partial"); in init()
81 param=filterConfig.getInitParameter("faux"); in init()
/external/guice/extensions/servlet/src/com/google/inject/servlet/
DGuiceFilter.java210 public void init(FilterConfig filterConfig) throws ServletException { in init() argument
211 final ServletContext servletContext = filterConfig.getServletContext(); in init()
/external/guice/extensions/persist/src/com/google/inject/persist/
DPersistFilter.java78 public void init(FilterConfig filterConfig) throws ServletException { in init() argument