com.ecyrd.jspwiki.dav.items
Class AttachmentItem

java.lang.Object
  extended by com.ecyrd.jspwiki.dav.items.DavItem
      extended by com.ecyrd.jspwiki.dav.items.PageDavItem
          extended by com.ecyrd.jspwiki.dav.items.AttachmentItem

public class AttachmentItem
extends PageDavItem

Represents a DAV attachment.

Since:

Field Summary
 
Fields inherited from class com.ecyrd.jspwiki.dav.items.PageDavItem
m_davns, m_dcns, m_page
 
Fields inherited from class com.ecyrd.jspwiki.dav.items.DavItem
m_items, m_path, m_provider
 
Constructor Summary
AttachmentItem(AttachmentDavProvider provider, DavPath path, Attachment att)
          Constructs a new DAV attachment.
 
Method Summary
 String getContentType()
          Returns the content type as defined by the servlet container; or if the container cannot be found, returns "application/octet-stream".
 String getHref()
           
 long getLength()
          Returns the length of the attachment.
 Collection getPropertySet()
          Returns a collection of properties for this attachment.
 
Methods inherited from class com.ecyrd.jspwiki.dav.items.PageDavItem
getCommonProperties, getInputStream, getPage
 
Methods inherited from class com.ecyrd.jspwiki.dav.items.DavItem
getPath, iterator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttachmentItem

public AttachmentItem(AttachmentDavProvider provider,
                      DavPath path,
                      Attachment att)
Constructs a new DAV attachment.

Parameters:
provider - the dav provider
path - the current dav path
att - the attachment
Method Detail

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()