- All Superinterfaces:
Registration
,Registration.Dynamic
,ServletConfig
,ServletRegistration
,ServletRegistration.Dynamic
- All Known Implementing Classes:
DefaultServletEnvironment
The environment for a Servlet.
- Author:
- Manfred Riem ([email protected])
-
Nested Class Summary
Nested classes/interfaces inherited from interface jakarta.servlet.Registration
Registration.Dynamic
Nested classes/interfaces inherited from interface jakarta.servlet.ServletRegistration
ServletRegistration.Dynamic
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the load on startup.Returns the multi-part config.Returns the servlet.Returns the servlet class.int
Returns the status.The exception that caused this servlet to become unavailableReturns the web application.boolean
Is async supported.void
setClassName(String className)
Set the class name.void
setServlet(Servlet servlet)
Set the servlet.void
setStatus(int status)
Set the status.void
setUnavailableException(Throwable unavailableException)
Sets the exception that caused this servlet to become unavailableMethods inherited from interface jakarta.servlet.Registration
getClassName, getInitParameter, getInitParameters, getName, setInitParameter, setInitParameters
Methods inherited from interface jakarta.servlet.Registration.Dynamic
setAsyncSupported
Methods inherited from interface jakarta.servlet.ServletConfig
getInitParameter, getInitParameterNames, getServletContext, getServletName
Methods inherited from interface jakarta.servlet.ServletRegistration
addMapping, getMappings, getRunAsRole
Methods inherited from interface jakarta.servlet.ServletRegistration.Dynamic
setLoadOnStartup, setMultipartConfig, setRunAsRole, setServletSecurity
-
Field Details
-
UNAVAILABLE
static final int UNAVAILABLEDefines the UNAVAILABLE constant.- See Also:
- Constant Field Values
-
-
Method Details
-
getLoadOnStartup
int getLoadOnStartup()Returns the load on startup.- Returns:
- the load on startup
-
getMultipartConfig
MultipartConfigElement getMultipartConfig()Returns the multi-part config.- Returns:
- the multi-part config
-
getServlet
Servlet getServlet()Returns the servlet.- Returns:
- the servlet
-
getServletClass
Returns the servlet class.- Returns:
- the servlet class
-
getStatus
int getStatus()Returns the status.- Returns:
- the status
-
getWebApplication
WebApplication getWebApplication()Returns the web application.- Returns:
- the web application
-
isAsyncSupported
boolean isAsyncSupported()Is async supported.- Returns:
- true if it is, false otherwise.
-
setClassName
Set the class name.- Parameters:
className
- the class name.
-
setServlet
Set the servlet.- Parameters:
servlet
- the servlet.
-
setStatus
void setStatus(int status)Set the status.- Parameters:
status
- the status.
-