org.orbeon.oxf.resources
Class WebDAVResourceManagerImpl

java.lang.Object
  extended byorg.orbeon.oxf.resources.ResourceManagerBase
      extended byorg.orbeon.oxf.resources.WebDAVResourceManagerImpl
All Implemented Interfaces:
ResourceManager

public class WebDAVResourceManagerImpl
extends org.orbeon.oxf.resources.ResourceManagerBase

Simple WebDAV resource manager implementation.


Nested Class Summary
 
Nested classes inherited from class org.orbeon.oxf.resources.ResourceManagerBase
org.orbeon.oxf.resources.ResourceManagerBase.ResourceManagerXMLReader
 
Constructor Summary
WebDAVResourceManagerImpl(Map properties)
           
 
Method Summary
 boolean canWrite(String key)
          Indicates if the resource manager implementation suports write operations
 InputStream getContentAsStream(String key)
          Returns a binary input stream for the specified key.
 OutputStream getOutputStream(String key)
          Allows writing to the resource
 String getRealPath(String key)
          Returns the path to the given resource on the file system.
 Writer getWriter(String key)
          Allow writing to the resource
protected  long lastModifiedImpl(String key)
           
 int length(String key)
          Returns the length of the file denoted by this abstract pathname.
 
Methods inherited from class org.orbeon.oxf.resources.ResourceManagerBase
getContentAsDOM, getContentAsDOM4J, getContentAsSAX, getContentAsSAX, getWriteContentHandler, getXMLReader, getXMLReader, invalidateLastModifiedCache, lastModified, writeDOM, writeDOM4J
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebDAVResourceManagerImpl

public WebDAVResourceManagerImpl(Map properties)
Method Detail

lastModifiedImpl

protected long lastModifiedImpl(String key)

length

public int length(String key)
Description copied from interface: ResourceManager
Returns the length of the file denoted by this abstract pathname.

Returns:
The length, in bytes, of the file denoted by this abstract pathname, or 0L if the file does not exist

canWrite

public boolean canWrite(String key)
Description copied from interface: ResourceManager
Indicates if the resource manager implementation suports write operations

Parameters:
key - A Resource Manager key
Returns:
true if write operations are allowed

getContentAsStream

public InputStream getContentAsStream(String key)
Description copied from interface: ResourceManager
Returns a binary input stream for the specified key. The key could point to any document type (text or binary).

Parameters:
key - A Resource Manager key
Returns:
a input stream

getOutputStream

public OutputStream getOutputStream(String key)
Description copied from interface: ResourceManager
Allows writing to the resource

Parameters:
key - A Resource Manager key
Returns:
an output stream

getRealPath

public String getRealPath(String key)
Description copied from interface: ResourceManager
Returns the path to the given resource on the file system. If a path on the local file system cannot be provided by the resource manager, null is returned.


getWriter

public Writer getWriter(String key)
Description copied from interface: ResourceManager
Allow writing to the resource

Parameters:
key - A Resource Manager key
Returns:
a writer