Class BaseServletDTO
java.lang.Object
org.osgi.dto.DTO
org.osgi.service.servlet.runtime.dto.BaseServletDTO
- Direct Known Subclasses:
ErrorPageDTO
,ServletDTO
Represents common information about a
jakarta.servlet.Servlet
service.- "NotThreadSafe"
-
Field Summary
Modifier and TypeFieldDescriptionboolean
Specifies whether the servlet supports asynchronous processing.The servlet initialization parameters as provided during registration of the servlet.The name of the servlet.long
Service property identifying the servlet.long
The service id of the servlet context for the servlet represented by this DTO.The information string from the servlet. -
Constructor Summary
-
Method Summary
-
Field Details
-
name
The name of the servlet. This value is nevernull
, unless this object represents aFailedServletDTO
or aFailedErrorPageDTO
where the value might benull
. -
servletInfo
The information string from the servlet.This is the value returned by the
Servlet.getServletInfo()
method. For aFailedServletDTO
or aFailedErrorPageDTO
this is alwaysnull
. -
asyncSupported
public boolean asyncSupportedSpecifies whether the servlet supports asynchronous processing. -
initParams
The servlet initialization parameters as provided during registration of the servlet. Additional parameters like the Http Service Runtime attributes are not included. If the service has no initialization parameters, the map is empty. -
servletContextId
public long servletContextIdThe service id of the servlet context for the servlet represented by this DTO. -
serviceId
public long serviceIdService property identifying the servlet. In the case of a servlet registered in the service registry and picked up by a Servlet Whiteboard Implementation, this value is not negative and corresponds to the service id in the registry. If the servlet has not been registered in the service registry, the value is negative and a unique negative value is generated by the Http Service Runtime in this case.
-
-
Constructor Details
-
BaseServletDTO
public BaseServletDTO()
-