Package org.springframework.mock.web
Class MockFilterRegistration
java.lang.Object
org.springframework.mock.web.MockFilterRegistration
- All Implemented Interfaces:
FilterRegistration
,FilterRegistration.Dynamic
,Registration
,Registration.Dynamic
Mock implementation of
FilterRegistration
.- Since:
- 6.2
- Author:
- Rossen Stoyanchev
-
Nested Class Summary
Nested classes/interfaces inherited from interface jakarta.servlet.FilterRegistration
FilterRegistration.Dynamic
Nested classes/interfaces inherited from interface jakarta.servlet.Registration
Registration.Dynamic
-
Constructor Summary
ConstructorsConstructorDescriptionMockFilterRegistration
(String className) MockFilterRegistration
(String className, String name) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMappingForServletNames
(EnumSet<DispatcherType> dispatcherTypes, boolean isMatchAfter, String... servletNames) void
addMappingForUrlPatterns
(EnumSet<DispatcherType> dispatcherTypes, boolean isMatchAfter, String... urlPatterns) getInitParameter
(String name) getName()
boolean
void
setAsyncSupported
(boolean asyncSupported) boolean
setInitParameter
(String name, String value) setInitParameters
(Map<String, String> initParameters)
-
Constructor Details
-
MockFilterRegistration
-
MockFilterRegistration
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceRegistration
-
getClassName
- Specified by:
getClassName
in interfaceRegistration
-
setInitParameter
- Specified by:
setInitParameter
in interfaceRegistration
-
getInitParameter
- Specified by:
getInitParameter
in interfaceRegistration
-
setInitParameters
- Specified by:
setInitParameters
in interfaceRegistration
-
getInitParameters
- Specified by:
getInitParameters
in interfaceRegistration
-
addMappingForServletNames
public void addMappingForServletNames(EnumSet<DispatcherType> dispatcherTypes, boolean isMatchAfter, String... servletNames) - Specified by:
addMappingForServletNames
in interfaceFilterRegistration
-
getServletNameMappings
- Specified by:
getServletNameMappings
in interfaceFilterRegistration
-
addMappingForUrlPatterns
public void addMappingForUrlPatterns(EnumSet<DispatcherType> dispatcherTypes, boolean isMatchAfter, String... urlPatterns) - Specified by:
addMappingForUrlPatterns
in interfaceFilterRegistration
-
getUrlPatternMappings
- Specified by:
getUrlPatternMappings
in interfaceFilterRegistration
-
setAsyncSupported
public void setAsyncSupported(boolean asyncSupported) - Specified by:
setAsyncSupported
in interfaceRegistration.Dynamic
-
isAsyncSupported
public boolean isAsyncSupported()
-