com.ecyrd.jspwiki.dav.items
Class AttachmentItem
java.lang.Object
com.ecyrd.jspwiki.dav.items.DavItem
com.ecyrd.jspwiki.dav.items.PageDavItem
com.ecyrd.jspwiki.dav.items.AttachmentItem
public class AttachmentItem
- extends PageDavItem
Represents a DAV attachment.
- Since:
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttachmentItem
public AttachmentItem(AttachmentDavProvider provider,
DavPath path,
Attachment att)
- Constructs a new DAV attachment.
- Parameters:
provider
- the dav providerpath
- the current dav pathatt
- the attachment
getPropertySet
public Collection getPropertySet()
- Returns a collection of properties for this attachment.
- Overrides:
getPropertySet
in class PageDavItem
- Returns:
- the attachment properties
- See Also:
DavItem.getPropertySet()
getHref
public String getHref()
- Overrides:
getHref
in class PageDavItem
getContentType
public String getContentType()
- Returns the content type as defined by the servlet container;
or if the container cannot be found, returns "application/octet-stream".
- Overrides:
getContentType
in class PageDavItem
- Returns:
- the content type
getLength
public long getLength()
- Returns the length of the attachment.
- Overrides:
getLength
in class PageDavItem
- Returns:
- the length
- See Also:
DavItem.getLength()