Interface IServletConfig
- All Superinterfaces:
- jakarta.servlet.Registration,- jakarta.servlet.Registration.Dynamic,- jakarta.servlet.ServletConfig,- jakarta.servlet.ServletRegistration,- jakarta.servlet.ServletRegistration.Dynamic
public interface IServletConfig
extends jakarta.servlet.ServletConfig, jakarta.servlet.ServletRegistration.Dynamic
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from interface jakarta.servlet.Registrationjakarta.servlet.Registration.DynamicNested classes/interfaces inherited from interface jakarta.servlet.ServletRegistrationjakarta.servlet.ServletRegistration.Dynamic
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddAttribute(Object key, Object value) Add an attribute for this configaddMapping(IServletConfig.CheckContextInitialized checkContextInitialized, String... mappingURI) Set the classname for the servlet represented by this configReturns the file name that may be associated with this config.Returns the component metadata associated with this configurationjakarta.servlet.MultipartConfigElementjakarta.servlet.ServletClass<? extends jakarta.servlet.Servlet>jakarta.servlet.ServletSecurityElementintbooleanbooleanbooleanChecks if caching is enabled for the servlet (requires dynacache to be enabled to have desired effect).booleanbooleanbooleanChecks if resource should be considered internal.booleanisJsp()booleanReturns whether or not the servlet represented by this config should be loaded at startup.booleanbooleanCheck if performance monitoring statistics are enabled.booleanremoveAttribute(Object key) Remove an attribute for this configvoidsetAddedToLoadOnStartup(boolean addedToLoadOnStartup) voidsetAttributes(Map map) Set the current attribute map to the passed in parametervoidsetClassName(String string) Set the classname of the servlet that is represented by this config objectvoidsetDescription(String description) voidsetDisplayName(String jspRegisteredName) Set the display name for this configvoidsetFileName(String jspUri) Sets the fileName associated with this configvoidsetInitParams(Map map) Sets the Map of initialization parameters for the servlet associated with this config instance.voidsetInternal(boolean isInternal) Set whether resource should be considered internal.voidsetIsCachingEnabled(boolean isEnabled) Set whether caching is enabled for a servlet (requires dynacache to have desired effect).voidsetIsJsp(boolean b) Sets whether or not this config represents a JSP file.voidsetMappings(List<String> mappings) voidsetMetaData(WebComponentMetaData metaData) Sets the component metadata associated with this configurationvoidsetMultipartBaseLocation(File location) voidsetServlet(jakarta.servlet.Servlet servlet) voidsetServletClass(Class<? extends jakarta.servlet.Servlet> servletClass) voidsetServletContext(jakarta.servlet.ServletContext context) Associates the given context with this Servlet's config.voidsetServletName(String jspRegisteredName) Set the servletName for this configvoidsetServletWrapper(IServletWrapper wrapper) voidsetSingleThreadModelServlet(boolean isSTM) voidsetStartUpWeight(Integer integer) Set the startup weight for the servlet represented by this config.voidsetStatisticsEnabled(boolean value) Set whether performance monitoring statistics are enabled.Methods inherited from interface jakarta.servlet.RegistrationgetInitParameter, getInitParameters, getName, setInitParameter, setInitParametersMethods inherited from interface jakarta.servlet.Registration.DynamicsetAsyncSupportedMethods inherited from interface jakarta.servlet.ServletConfiggetInitParameter, getInitParameterNames, getServletContext, getServletNameMethods inherited from interface jakarta.servlet.ServletRegistrationaddMapping, getRunAsRoleMethods inherited from interface jakarta.servlet.ServletRegistration.DynamicsetLoadOnStartup, setMultipartConfig, setRunAsRole, setServletSecurity
- 
Method Details- 
setClassNameSet the classname of the servlet that is represented by this config object- Parameters:
- string-
 
- 
getFileNameString getFileName()Returns the file name that may be associated with this config. The value will be non-null only in the case where the target represented by this config is a JSP.- Returns:
 
- 
isLoadOnStartupboolean isLoadOnStartup()Returns whether or not the servlet represented by this config should be loaded at startup. For servlets added and configured dynamically (as is the case with JSPs), it means that the target will be initialized through the init() method at the time of creation, as opposed to when the first request for thie resource arrives.- Returns:
 
- 
setFileNameSets the fileName associated with this config- Parameters:
- jspUri-
 
- 
setInitParamsSets the Map of initialization parameters for the servlet associated with this config instance.- Parameters:
- map-
 
- 
setIsJspvoid setIsJsp(boolean b) Sets whether or not this config represents a JSP file.- Parameters:
- b-
 
- 
setServletContextvoid setServletContext(jakarta.servlet.ServletContext context) Associates the given context with this Servlet's config.- Parameters:
- context-
 
- 
setServletNameSet the servletName for this config- Parameters:
- jspRegisteredName-
 
- 
setDisplayNameSet the display name for this config- Parameters:
- jspRegisteredName-
 
- 
getClassNameString getClassName()Set the classname for the servlet represented by this config- Specified by:
- getClassNamein interface- jakarta.servlet.Registration
- Returns:
 
- 
setStartUpWeightSet the startup weight for the servlet represented by this config. Setting a value >= 0 tells the container not to wait until the first request for this servlet to initialize it.- Parameters:
- integer-
 
- 
addAttributeAdd an attribute for this config- Parameters:
- key-
- value-
 
- 
setAttributesSet the current attribute map to the passed in parameter- Parameters:
- map-
 
- 
removeAttributeRemove an attribute for this config- Parameters:
- key-
- Returns:
 
- 
getMetaDataWebComponentMetaData getMetaData()Returns the component metadata associated with this configuration- Returns:
 
- 
setMetaDataSets the component metadata associated with this configuration
- 
isCachingEnabledboolean isCachingEnabled()Checks if caching is enabled for the servlet (requires dynacache to be enabled to have desired effect).- Returns:
 
- 
setIsCachingEnabledvoid setIsCachingEnabled(boolean isEnabled) Set whether caching is enabled for a servlet (requires dynacache to have desired effect).
- 
setStatisticsEnabledvoid setStatisticsEnabled(boolean value) Set whether performance monitoring statistics are enabled.- Parameters:
- value-
 
- 
isStatisticsEnabledboolean isStatisticsEnabled()Check if performance monitoring statistics are enabled.- Returns:
 
- 
isJspboolean isJsp()
- 
getStartUpWeightint getStartUpWeight()
- 
setDescription
- 
setInternalvoid setInternal(boolean isInternal) Set whether resource should be considered internal. * @return
- 
isInternalboolean isInternal()Checks if resource should be considered internal.- Returns:
 
- 
isSingleThreadModelServletboolean isSingleThreadModelServlet()
- 
setSingleThreadModelServletvoid setSingleThreadModelServlet(boolean isSTM) 
- 
setServletWrapper
- 
getServletWrapperIServletWrapper getServletWrapper()
- 
setServletClass
- 
setServletvoid setServlet(jakarta.servlet.Servlet servlet) 
- 
getServletClassClass<? extends jakarta.servlet.Servlet> getServletClass()
- 
getServletjakarta.servlet.Servlet getServlet()
- 
setMappings
- 
getMappings- Specified by:
- getMappingsin interface- jakarta.servlet.ServletRegistration
 
- 
isAddedToLoadOnStartupboolean isAddedToLoadOnStartup()
- 
isAsyncSupportedboolean isAsyncSupported()
- 
setAddedToLoadOnStartupvoid setAddedToLoadOnStartup(boolean addedToLoadOnStartup) 
- 
isWeightChangedboolean isWeightChanged()
- 
getMultipartConfigjakarta.servlet.MultipartConfigElement getMultipartConfig()
- 
getMultipartBaseLocationFile getMultipartBaseLocation()
- 
setMultipartBaseLocation
- 
addMappingSet<String> addMapping(IServletConfig.CheckContextInitialized checkContextInitialized, String... mappingURI) 
- 
getServletSecurityjakarta.servlet.ServletSecurityElement getServletSecurity()
- 
isClassDefinedboolean isClassDefined()
- 
isEnabledboolean isEnabled()
 
-