public class ServletContextDTO extends DTO
javax.servlet.ServletContext
created for servlets,
resources, servlet Filters, and listeners associated with that servlet
context. The Servlet Context is usually backed by a
ServletContextHelper
service.Modifier and Type | Field and Description |
---|---|
Map<String,Object> |
attributes
The servlet context attributes.
|
String |
contextPath
The servlet context path.
|
ErrorPageDTO[] |
errorPageDTOs
Returns the representations of the error page
Servlet services
associated with this context. |
FilterDTO[] |
filterDTOs
Returns the representations of the servlet
Filter services
associated with this context. |
Map<String,String> |
initParams
The servlet context initialization parameters.
|
ListenerDTO[] |
listenerDTOs
Returns the representations of the listener services associated with this
context.
|
String |
name
The name of the servlet context.
|
ResourceDTO[] |
resourceDTOs
Returns the representations of the resource services associated with this
context.
|
long |
serviceId
Service property identifying the servlet context.
|
ServletDTO[] |
servletDTOs
Returns the representations of the
Servlet services associated
with this context. |
Constructor and Description |
---|
ServletContextDTO() |
public String name
ServletContextHelper
.
This is the value returned by the
ServletContext.getServletContextName()
method.
public String contextPath
ServletContext.getContextPath()
method.public Map<String,String> initParams
public Map<String,Object> attributes
The value type must be a numerical type, Boolean
, String
,
DTO
or an array of any of the former. Therefore this method will
only return the attributes of the servlet context conforming to this
constraint. Other attributes are omitted. If there are no attributes
conforming to the constraint, an empty map is returned.
public long serviceId
ServletContextHelper
registered in
the service registry and picked up by a Http Whiteboard Implementation,
this value is not negative and corresponds to the service id in the
registry. If the servlet context is not backed by a service registered in
the service registry, the value is negative and a unique negative value
is generated by the Http Service Runtime in this case.public ServletDTO[] servletDTOs
Servlet
services associated
with this context.
The representations of the Servlet
services associated with this
context. The returned array may be empty if this context is currently not
associated with any Servlet
services.public ResourceDTO[] resourceDTOs
public FilterDTO[] filterDTOs
Filter
services
associated with this context.
The representations of the servlet Filter
services associated
with this context. The returned array may be empty if this context is
currently not associated with any servlet Filter
services.public ErrorPageDTO[] errorPageDTOs
Servlet
services
associated with this context.
The representations of the error page Servlet
services associated
with this context. The returned array may be empty if this context is
currently not associated with any error pages.public ListenerDTO[] listenerDTOs
Copyright © OSGi Alliance (2000, 2015). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0