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.DynamicNested classes/interfaces inherited from interface jakarta.servlet.Registration
Registration.Dynamic -
Constructor Summary
ConstructorsConstructorDescriptionMockFilterRegistration(String className) MockFilterRegistration(String className, String name) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMappingForServletNames(EnumSet<DispatcherType> dispatcherTypes, boolean isMatchAfter, String... servletNames) voidaddMappingForUrlPatterns(EnumSet<DispatcherType> dispatcherTypes, boolean isMatchAfter, String... urlPatterns) getInitParameter(String name) getName()booleanvoidsetAsyncSupported(boolean asyncSupported) booleansetInitParameter(String name, String value) setInitParameters(Map<String, String> initParameters)
-
Constructor Details
-
MockFilterRegistration
-
MockFilterRegistration
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceRegistration
-
getClassName
- Specified by:
getClassNamein interfaceRegistration
-
setInitParameter
- Specified by:
setInitParameterin interfaceRegistration
-
getInitParameter
- Specified by:
getInitParameterin interfaceRegistration
-
setInitParameters
- Specified by:
setInitParametersin interfaceRegistration
-
getInitParameters
- Specified by:
getInitParametersin interfaceRegistration
-
addMappingForServletNames
public void addMappingForServletNames(EnumSet<DispatcherType> dispatcherTypes, boolean isMatchAfter, String... servletNames) - Specified by:
addMappingForServletNamesin interfaceFilterRegistration
-
getServletNameMappings
- Specified by:
getServletNameMappingsin interfaceFilterRegistration
-
addMappingForUrlPatterns
public void addMappingForUrlPatterns(EnumSet<DispatcherType> dispatcherTypes, boolean isMatchAfter, String... urlPatterns) - Specified by:
addMappingForUrlPatternsin interfaceFilterRegistration
-
getUrlPatternMappings
- Specified by:
getUrlPatternMappingsin interfaceFilterRegistration
-
setAsyncSupported
public void setAsyncSupported(boolean asyncSupported) - Specified by:
setAsyncSupportedin interfaceRegistration.Dynamic
-
isAsyncSupported
public boolean isAsyncSupported()
-