Package com.composum.sling.nodes.browser
Class Browser.NodeHandle
- java.lang.Object
-
- com.composum.sling.nodes.browser.Browser.NodeHandle
-
-
Constructor Summary
Constructors Constructor Description NodeHandle(org.apache.sling.api.resource.Resource resource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetId()StringgetMappedUrl()Returns a URL to the nodes View with resolver mapping.StringgetMimeType()the content mime type declared for the current resourceStringgetName()StringgetNameEscaped()StringgetPath()StringgetPathEncoded()StringgetPathUrl()Returns a URL to the nodes View based on the nodes path (without mapping).ResourceHandlegetResource()StringgetUrl()Returns a URL to the nodes View probably with resolver mapping.
-
-
-
Method Detail
-
getResource
public ResourceHandle getResource()
-
getId
public String getId()
-
getName
public String getName()
-
getNameEscaped
public String getNameEscaped()
-
getPath
public String getPath()
-
getPathEncoded
public String getPathEncoded()
-
getPathUrl
public String getPathUrl()
Returns a URL to the nodes View based on the nodes path (without mapping).
-
getMappedUrl
public String getMappedUrl()
Returns a URL to the nodes View with resolver mapping.
-
getUrl
public String getUrl()
Returns a URL to the nodes View probably with resolver mapping.
-
getMimeType
public String getMimeType()
the content mime type declared for the current resource
-
-