Package com.foreach.across.test
Class AbstractMockRegistration
java.lang.Object
com.foreach.across.test.AbstractMockRegistration
- All Implemented Interfaces:
jakarta.servlet.Registration
,jakarta.servlet.Registration.Dynamic
- Direct Known Subclasses:
MockFilterRegistration
,MockServletRegistration
public abstract class AbstractMockRegistration
extends Object
implements jakarta.servlet.Registration.Dynamic
- Since:
- 1.1.2
- Author:
- Arne Vandamme
-
Nested Class Summary
Nested classes/interfaces inherited from interface jakarta.servlet.Registration
jakarta.servlet.Registration.Dynamic
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractMockRegistration
(MockAcrossServletContext servletContext, @NonNull String name, String className) -
Method Summary
Modifier and TypeMethodDescriptiongetInitParameter
(String name) getName()
boolean
void
setAsyncSupported
(boolean isAsyncSupported) boolean
setInitParameter
(String name, String value) setInitParameters
(Map<String, String> initParameters)
-
Constructor Details
-
AbstractMockRegistration
protected AbstractMockRegistration(MockAcrossServletContext servletContext, @NonNull @NonNull String name, String className)
-
-
Method Details
-
getServletContext
-
getName
- Specified by:
getName
in interfacejakarta.servlet.Registration
-
getClassName
- Specified by:
getClassName
in interfacejakarta.servlet.Registration
-
setAsyncSupported
public void setAsyncSupported(boolean isAsyncSupported) - Specified by:
setAsyncSupported
in interfacejakarta.servlet.Registration.Dynamic
-
isAsyncSupported
public boolean isAsyncSupported() -
setInitParameter
- Specified by:
setInitParameter
in interfacejakarta.servlet.Registration
-
getInitParameter
- Specified by:
getInitParameter
in interfacejakarta.servlet.Registration
-
setInitParameters
- Specified by:
setInitParameters
in interfacejakarta.servlet.Registration
-
getInitParameters
- Specified by:
getInitParameters
in interfacejakarta.servlet.Registration
-
getInitParameterNames
-