|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Resource
Resources are pieces of content on which Sling acts
The Resource is also an Adaptable to get adapters to
other types. A JCR based resource might support adapting to the JCR Node on
which the resource is based.
| Field Summary | |
|---|---|
static java.lang.String |
RESOURCE_TYPE_NON_EXISTING
The special resource type for resource instances representing nonexisting resources (value is "sling:nonexisting"). |
| Method Summary | |
|---|---|
java.lang.String |
getPath()
This resource's path - for now that could be a JCR path. |
ResourceMetadata |
getResourceMetadata()
Returns the metadata of this resource. |
ResourceResolver |
getResourceResolver()
Returns the ResourceResolver from which this resource has been
retrieved. |
java.lang.String |
getResourceSuperType()
Returns the super type of the type of the resource or null
if the getResourceType() has no supertype. |
java.lang.String |
getResourceType()
The resource type is meant to point to rendering/processing scripts, editing dialogs, etc. |
| Methods inherited from interface org.apache.sling.api.adapter.Adaptable |
|---|
adaptTo |
| Field Detail |
|---|
static final java.lang.String RESOURCE_TYPE_NON_EXISTING
ResourceResolver instances to mark a resource which could not
actually be resolved.
getResourceType(),
ResourceResolver.resolve(javax.servlet.http.HttpServletRequest, String),
Constant Field Values| Method Detail |
|---|
java.lang.String getPath()
java.lang.String getResourceType()
ResourceResolver is free to set this to any suitable value such
as the primary node type of the JCR node from which the resource is
created.
If the resource instance represents a resource which is not actually
existing, this method returns the RESOURCE_TYPE_NON_EXISTING.
java.lang.String getResourceSuperType()
null
if the getResourceType() has no supertype.
ResourceMetadata getResourceMetadata()
ResourceMetadata object returned is implementation specific
except for the ResourceMetadata.RESOLUTION_PATH property which is
required to be set to the part of the request URI used to resolve the
resource.
ResourceMetadataResourceResolver getResourceResolver()
ResourceResolver from which this resource has been
retrieved.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||