|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.webdav.simple.NodeResource
The NodeResource
class wraps a jcr item in order to respond
to 'GET', 'HEAD', 'PROPFIND' or 'PROPPATCH' requests. If the item is a
Node
its primary property is determined. The value of the
primary property can be accessed by getStream()
. If possible other
required information (last modification date, content type...) is retrieved
from the property siblings.
If the requested item is a Property
it is treated accordingly.
Field Summary | |
static SimpleDateFormat |
creationDateFormat
Simple date format for the creation date ISO representation (partial). |
static SimpleDateFormat |
modificationDateFormat
modificationDate date format per RFC 1123 |
Constructor Summary | |
NodeResource(org.apache.jackrabbit.webdav.DavResource davResource,
Node node)
Create a new NodeResource that wraps a JSR170 item. |
Method Summary | |
String |
getContentLanguage()
Return the content language or null if it could not be determined. |
long |
getContentLength()
Return the content length or '0'. |
String |
getContentType()
Return the content type or null if it could not be determined. |
String |
getCreationDate()
Return the creation time as formatted string. |
long |
getCreationTime()
Return the creation time or '0'. |
String |
getETag()
Return the ETag or null if the context does not provide one. |
String |
getLastModified()
Return the last modification time as formatted string. |
long |
getModificationTime()
Return the last modification time. |
InputStream |
getStream()
Return a stream to the resource value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static SimpleDateFormat modificationDateFormat
public static SimpleDateFormat creationDateFormat
Constructor Detail |
public NodeResource(org.apache.jackrabbit.webdav.DavResource davResource, Node node) throws ItemNotFoundException, RepositoryException
NodeResource
that wraps a JSR170 item.
ItemNotFoundException
RepositoryException
IllegalArgumentException
- if the given item is null
Method Detail |
public long getContentLength()
public long getCreationTime()
public long getModificationTime()
public String getLastModified()
modificationDateFormat
public String getCreationDate()
creationDateFormat
public String getETag()
null
if the context does not provide one.
null
public String getContentType()
null
if it could not be determined.
public String getContentLanguage()
null
if it could not be determined.
public InputStream getStream()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |