Class ServletWarEntity
- java.lang.Object
-
- org.restlet.engine.local.Entity
-
- org.forgerock.openam.rest.jakarta.servlet.internal.ServletWarEntity
-
public class ServletWarEntity extends org.restlet.engine.local.EntityLocal entity based on a Servlet context's resource file.- Author:
- Thierry Boileau
-
-
Constructor Summary
Constructors Constructor Description ServletWarEntity(jakarta.servlet.ServletContext servletContext, String path, org.restlet.service.MetadataService metadataService)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexists()List<org.restlet.engine.local.Entity>getChildren()StringgetName()org.restlet.engine.local.EntitygetParent()org.restlet.representation.RepresentationgetRepresentation(org.restlet.data.MediaType defaultMediaType, int timeToLive)jakarta.servlet.ServletContextgetServletContext()Returns the Servlet context to use.booleanisDirectory()booleanisNormal()
-
-
-
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:
existsin classorg.restlet.engine.local.Entity
-
getChildren
public List<org.restlet.engine.local.Entity> getChildren()
- Specified by:
getChildrenin classorg.restlet.engine.local.Entity
-
getName
public String getName()
- Specified by:
getNamein classorg.restlet.engine.local.Entity
-
getParent
public org.restlet.engine.local.Entity getParent()
- Specified by:
getParentin classorg.restlet.engine.local.Entity
-
getRepresentation
public org.restlet.representation.Representation getRepresentation(org.restlet.data.MediaType defaultMediaType, int timeToLive)- Specified by:
getRepresentationin classorg.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:
isDirectoryin classorg.restlet.engine.local.Entity
-
isNormal
public boolean isNormal()
- Specified by:
isNormalin classorg.restlet.engine.local.Entity
-
-