public class ServletWarEntity extends Entity
Constructor and Description |
---|
ServletWarEntity(javax.servlet.ServletContext servletContext,
String path,
MetadataService metadataService)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
exists()
Indicates if the entity does exist.
|
List<Entity> |
getChildren()
Returns the list of contained entities if the current entity is a
directory, null otherwise.
|
String |
getName()
Returns the name.
|
Entity |
getParent()
Returns the parent directory (if any).
|
Representation |
getRepresentation(MediaType defaultMediaType,
int timeToLive)
Returns a representation of this local entity.
|
javax.servlet.ServletContext |
getServletContext()
Returns the Servlet context to use.
|
boolean |
isDirectory()
Indicates if the entity is a directory.
|
boolean |
isNormal()
Indicates if the entity is a normal entity, especially if it is not a
directory.
|
getBaseName, getBaseName, getExtensions, getExtensions, getExtensions, getMetadataService, getVariant, updateMetadata
public ServletWarEntity(javax.servlet.ServletContext servletContext, String path, MetadataService metadataService)
servletContext
- The parent Servlet context.path
- The entity path.metadataService
- The metadata service to use.public boolean exists()
Entity
public List<Entity> getChildren()
Entity
getChildren
in class Entity
public Entity getParent()
Entity
public Representation getRepresentation(MediaType defaultMediaType, int timeToLive)
Entity
getRepresentation
in class Entity
public javax.servlet.ServletContext getServletContext()
public boolean isDirectory()
Entity
isDirectory
in class Entity
public boolean isNormal()
Entity
isNormal
in class Entity
File.isFile()
,
File.isDirectory()
Copyright © 2005–2015. All rights reserved.