Class ServletWarEntity


  • public class ServletWarEntity
    extends org.restlet.engine.local.Entity
    Local entity based on a Servlet context's resource file.
    Author:
    Thierry Boileau
    • Constructor Detail

      • ServletWarEntity

        public ServletWarEntity​(jakarta.servlet.ServletContext servletContext,
                                String path,
                                org.restlet.service.MetadataService metadataService)
        Constructor.
        Parameters:
        servletContext - The parent Servlet context.
        path - The entity path.
        metadataService - The metadata service to use.
    • Method Detail

      • exists

        public boolean exists()
        Specified by:
        exists in class org.restlet.engine.local.Entity
      • getChildren

        public List<org.restlet.engine.local.Entity> getChildren()
        Specified by:
        getChildren in class org.restlet.engine.local.Entity
      • getName

        public String getName()
        Specified by:
        getName in class org.restlet.engine.local.Entity
      • getParent

        public org.restlet.engine.local.Entity getParent()
        Specified by:
        getParent in class org.restlet.engine.local.Entity
      • getRepresentation

        public org.restlet.representation.Representation getRepresentation​(org.restlet.data.MediaType defaultMediaType,
                                                                           int timeToLive)
        Specified by:
        getRepresentation in class org.restlet.engine.local.Entity
      • getServletContext

        public jakarta.servlet.ServletContext getServletContext()
        Returns the Servlet context to use.
        Returns:
        The Servlet context to use.
      • isDirectory

        public boolean isDirectory()
        Specified by:
        isDirectory in class org.restlet.engine.local.Entity
      • isNormal

        public boolean isNormal()
        Specified by:
        isNormal in class org.restlet.engine.local.Entity