Class Browser.NodeHandle

  • Enclosing class:
    Browser

    public class Browser.NodeHandle
    extends Object
    a JSP bean for a node (for the current node)
    • Field Detail

      • resource

        protected com.composum.sling.core.ResourceHandle resource
      • pathUrl

        protected String pathUrl
      • mappedUrl

        protected String mappedUrl
      • mimeType

        protected String mimeType
    • Constructor Detail

      • NodeHandle

        public NodeHandle​(org.apache.sling.api.resource.Resource resource)
    • Method Detail

      • getResource

        public com.composum.sling.core.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