org.restlet.ext.servlet
Class ServletWarEntity
java.lang.Object
org.restlet.engine.local.Entity
org.restlet.ext.servlet.ServletWarEntity
public class ServletWarEntity
- extends Entity
Local entity based on a Servlet context's resource file.
- Author:
- Thierry Boileau
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServletWarEntity
public ServletWarEntity(ServletContext servletContext,
String path)
- Constructor.
- Parameters:
servletContext - The parent Servlet context.path - The entity path.
exists
public boolean exists()
- Specified by:
exists in class Entity
getChildren
public List<Entity> getChildren()
- Specified by:
getChildren in class Entity
getName
public String getName()
- Specified by:
getName in class Entity
getParent
public Entity getParent()
- Specified by:
getParent in class Entity
getRepresentation
public Representation getRepresentation(MediaType defaultMediaType,
int timeToLive)
- Specified by:
getRepresentation in class Entity
getServletContext
public ServletContext getServletContext()
- Returns the Servlet context to use.
- Returns:
- The Servlet context to use.
isDirectory
public boolean isDirectory()
- Specified by:
isDirectory in class Entity
isNormal
public boolean isNormal()
- Specified by:
isNormal in class Entity
Copyright © 2005-2008 Noelios Technologies.