Class ResourceDTO
- java.lang.Object
-
- org.osgi.dto.DTO
-
- org.osgi.service.http.runtime.dto.ResourceDTO
-
- Direct Known Subclasses:
FailedResourceDTO
public class ResourceDTO extends DTO
Represents a resource definition currently being used by a servlet context.
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String[]
patterns
The request mappings for the resource.java.lang.String
prefix
The prefix of the resource.long
serviceId
Service property identifying the resource.long
servletContextId
The service id of the servlet context for the resource represented by this DTO.
-
Constructor Summary
Constructors Constructor Description ResourceDTO()
-
-
-
Field Detail
-
patterns
public java.lang.String[] patterns
The request mappings for the resource.The specified patterns are used to determine whether a request is mapped to the resource. This value is never
null
.
-
prefix
public java.lang.String prefix
The prefix of the resource.
-
serviceId
public long serviceId
Service property identifying the resource. In the case of a resource 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 resource 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.
-
servletContextId
public long servletContextId
The service id of the servlet context for the resource represented by this DTO.
-
-