Package org.apache.catalina.core
Class DynamicServletRegistrationImpl
- java.lang.Object
-
- org.apache.catalina.core.ServletRegistrationImpl
-
- org.apache.catalina.core.DynamicServletRegistrationImpl
-
- All Implemented Interfaces:
jakarta.servlet.Registration,jakarta.servlet.Registration.Dynamic,jakarta.servlet.ServletRegistration,jakarta.servlet.ServletRegistration.Dynamic
public class DynamicServletRegistrationImpl extends ServletRegistrationImpl implements jakarta.servlet.ServletRegistration.Dynamic
Implementation through which a servlet can be configured dynamically
-
-
Field Summary
-
Fields inherited from class org.apache.catalina.core.ServletRegistrationImpl
ctx, wrapper
-
-
Constructor Summary
Constructors Constructor Description DynamicServletRegistrationImpl(StandardWrapper wrapper, StandardContext ctx)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetAsyncSupported(boolean isAsyncSupported)voidsetLoadOnStartup(int loadOnStartup)voidsetMultipartConfig(jakarta.servlet.MultipartConfigElement mpConfig)voidsetRunAsRole(String roleName)protected voidsetServletClass(Class<? extends jakarta.servlet.Servlet> clazz)Sets the class object from which this servlet will be instantiated.protected voidsetServletClassName(String className)Sets the fully qualified class name to be usedSet<String>setServletSecurity(jakarta.servlet.ServletSecurityElement constraint)-
Methods inherited from class org.apache.catalina.core.ServletRegistrationImpl
addMapping, getClassName, getContext, getInitParameter, getInitParameters, getJspFile, getMappings, getName, getRunAsRole, getWrapper, setInitParameter, setInitParameters
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Constructor Detail
-
DynamicServletRegistrationImpl
public DynamicServletRegistrationImpl(StandardWrapper wrapper, StandardContext ctx)
Constructor- Parameters:
wrapper-ctx-
-
-
Method Detail
-
setLoadOnStartup
public void setLoadOnStartup(int loadOnStartup)
- Specified by:
setLoadOnStartupin interfacejakarta.servlet.ServletRegistration.Dynamic
-
setAsyncSupported
public void setAsyncSupported(boolean isAsyncSupported)
- Specified by:
setAsyncSupportedin interfacejakarta.servlet.Registration.Dynamic
-
setServletSecurity
public Set<String> setServletSecurity(jakarta.servlet.ServletSecurityElement constraint)
- Specified by:
setServletSecurityin interfacejakarta.servlet.ServletRegistration.Dynamic
-
setMultipartConfig
public void setMultipartConfig(jakarta.servlet.MultipartConfigElement mpConfig)
- Specified by:
setMultipartConfigin interfacejakarta.servlet.ServletRegistration.Dynamic
-
setRunAsRole
public void setRunAsRole(String roleName)
- Specified by:
setRunAsRolein interfacejakarta.servlet.ServletRegistration.Dynamic
-
setServletClassName
protected void setServletClassName(String className)
Sets the fully qualified class name to be used- Parameters:
className-
-
setServletClass
protected void setServletClass(Class<? extends jakarta.servlet.Servlet> clazz)
Sets the class object from which this servlet will be instantiated.- Parameters:
clazz-
-
-