Interface IServletConfig
- All Superinterfaces:
javax.servlet.Registration
,javax.servlet.Registration.Dynamic
,javax.servlet.ServletConfig
,javax.servlet.ServletRegistration
,javax.servlet.ServletRegistration.Dynamic
public interface IServletConfig
extends javax.servlet.ServletConfig, javax.servlet.ServletRegistration.Dynamic
-
Nested Class Summary
Nested classes/interfaces inherited from interface javax.servlet.Registration
javax.servlet.Registration.Dynamic
Nested classes/interfaces inherited from interface javax.servlet.ServletRegistration
javax.servlet.ServletRegistration.Dynamic
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttribute
(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 configurationjavax.servlet.MultipartConfigElement
javax.servlet.Servlet
Class<? extends javax.servlet.Servlet>
javax.servlet.ServletSecurityElement
int
boolean
boolean
boolean
Checks if caching is enabled for the servlet (requires dynacache to be enabled to have desired effect).boolean
boolean
boolean
Checks if resource should be considered internal.boolean
isJsp()
boolean
Returns whether or not the servlet represented by this config should be loaded at startup.boolean
boolean
Check if performance monitoring statistics are enabled.boolean
removeAttribute
(Object key) Remove an attribute for this configvoid
setAddedToLoadOnStartup
(boolean addedToLoadOnStartup) void
setAttributes
(Map map) Set the current attribute map to the passed in parametervoid
setClassName
(String string) Set the classname of the servlet that is represented by this config objectvoid
setDescription
(String description) void
setDisplayName
(String jspRegisteredName) Set the display name for this configvoid
setFileName
(String jspUri) Sets the fileName associated with this configvoid
setInitParams
(Map map) Sets the Map of initialization parameters for the servlet associated with this config instance.void
setInternal
(boolean isInternal) Set whether resource should be considered internal.void
setIsCachingEnabled
(boolean isEnabled) Set whether caching is enabled for a servlet (requires dynacache to have desired effect).void
setIsJsp
(boolean b) Sets whether or not this config represents a JSP file.void
setMappings
(List<String> mappings) void
setMetaData
(WebComponentMetaData metaData) Sets the component metadata associated with this configurationvoid
setMultipartBaseLocation
(File location) void
setServlet
(javax.servlet.Servlet servlet) void
setServletClass
(Class<? extends javax.servlet.Servlet> servletClass) void
setServletContext
(javax.servlet.ServletContext context) Associates the given context with this Servlet's config.void
setServletName
(String jspRegisteredName) Set the servletName for this configvoid
setServletWrapper
(IServletWrapper wrapper) void
setSingleThreadModelServlet
(boolean isSTM) void
setStartUpWeight
(Integer integer) Set the startup weight for the servlet represented by this config.void
setStatisticsEnabled
(boolean value) Set whether performance monitoring statistics are enabled.Methods inherited from interface javax.servlet.Registration
getInitParameter, getInitParameters, getName, setInitParameter, setInitParameters
Methods inherited from interface javax.servlet.Registration.Dynamic
setAsyncSupported
Methods inherited from interface javax.servlet.ServletConfig
getInitParameter, getInitParameterNames, getServletContext, getServletName
Methods inherited from interface javax.servlet.ServletRegistration
addMapping, getRunAsRole
Methods inherited from interface javax.servlet.ServletRegistration.Dynamic
setLoadOnStartup, setMultipartConfig, setRunAsRole, setServletSecurity
-
Method Details
-
setClassName
Set the classname of the servlet that is represented by this config object- Parameters:
string
-
-
getFileName
String 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:
-
isLoadOnStartup
boolean 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:
-
setFileName
Sets the fileName associated with this config- Parameters:
jspUri
-
-
setInitParams
Sets the Map of initialization parameters for the servlet associated with this config instance.- Parameters:
map
-
-
setIsJsp
void setIsJsp(boolean b) Sets whether or not this config represents a JSP file.- Parameters:
b
-
-
setServletContext
void setServletContext(javax.servlet.ServletContext context) Associates the given context with this Servlet's config.- Parameters:
context
-
-
setServletName
Set the servletName for this config- Parameters:
jspRegisteredName
-
-
setDisplayName
Set the display name for this config- Parameters:
jspRegisteredName
-
-
getClassName
String getClassName()Set the classname for the servlet represented by this config- Specified by:
getClassName
in interfacejavax.servlet.Registration
- Returns:
-
setStartUpWeight
Set 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
-
-
addAttribute
Add an attribute for this config- Parameters:
key
-value
-
-
setAttributes
Set the current attribute map to the passed in parameter- Parameters:
map
-
-
removeAttribute
Remove an attribute for this config- Parameters:
key
-- Returns:
-
getMetaData
WebComponentMetaData getMetaData()Returns the component metadata associated with this configuration- Returns:
-
setMetaData
Sets the component metadata associated with this configuration -
isCachingEnabled
boolean isCachingEnabled()Checks if caching is enabled for the servlet (requires dynacache to be enabled to have desired effect).- Returns:
-
setIsCachingEnabled
void setIsCachingEnabled(boolean isEnabled) Set whether caching is enabled for a servlet (requires dynacache to have desired effect). -
setStatisticsEnabled
void setStatisticsEnabled(boolean value) Set whether performance monitoring statistics are enabled.- Parameters:
value
-
-
isStatisticsEnabled
boolean isStatisticsEnabled()Check if performance monitoring statistics are enabled.- Returns:
-
isJsp
boolean isJsp() -
getStartUpWeight
int getStartUpWeight() -
setDescription
-
setInternal
void setInternal(boolean isInternal) Set whether resource should be considered internal. * @return -
isInternal
boolean isInternal()Checks if resource should be considered internal.- Returns:
-
isSingleThreadModelServlet
boolean isSingleThreadModelServlet() -
setSingleThreadModelServlet
void setSingleThreadModelServlet(boolean isSTM) -
setServletWrapper
-
getServletWrapper
IServletWrapper getServletWrapper() -
setServletClass
-
setServlet
void setServlet(javax.servlet.Servlet servlet) -
getServletClass
Class<? extends javax.servlet.Servlet> getServletClass() -
getServlet
javax.servlet.Servlet getServlet() -
setMappings
-
getMappings
- Specified by:
getMappings
in interfacejavax.servlet.ServletRegistration
-
isAddedToLoadOnStartup
boolean isAddedToLoadOnStartup() -
isAsyncSupported
boolean isAsyncSupported() -
setAddedToLoadOnStartup
void setAddedToLoadOnStartup(boolean addedToLoadOnStartup) -
isWeightChanged
boolean isWeightChanged() -
getMultipartConfig
javax.servlet.MultipartConfigElement getMultipartConfig() -
getMultipartBaseLocation
File getMultipartBaseLocation() -
setMultipartBaseLocation
-
addMapping
Set<String> addMapping(IServletConfig.CheckContextInitialized checkContextInitialized, String... mappingURI) -
getServletSecurity
javax.servlet.ServletSecurityElement getServletSecurity() -
isClassDefined
boolean isClassDefined() -
isEnabled
boolean isEnabled()
-