hu.midori.kosmos.server.store
Class WebdavStaticContentStore

java.lang.Object
  extended by hu.midori.kosmos.server.store.WebdavStaticContentStore
All Implemented Interfaces:
StaticContentStore

public class WebdavStaticContentStore
extends java.lang.Object
implements StaticContentStore

WebDAV-based store implementation. Writes the cached data to WebDAV resources and uses their public URLs to access them.

Version:
$Id$
Author:
Aron Gombas

Constructor Summary
WebdavStaticContentStore()
           
 
Method Summary
 void begin()
          This method is left empty as there is no optimization opportunity.
 void end()
          This method is left empty as there is no optimization opportunity.
 void setClientUrl(java.lang.String clientUrl)
           
 void setWebdavPassword(java.lang.String webdavPassword)
           
 void setWebdavUrl(java.lang.String webdavUrl)
           
 void setWebdavUser(java.lang.String webdavUser)
           
 java.lang.String storeFile(java.lang.String fileName, java.io.InputStream in)
          Saves the passed stream to a WebDAV repository-based cache and returns the absolute URL pointing to the resulted file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebdavStaticContentStore

public WebdavStaticContentStore()
Method Detail

setWebdavUrl

public void setWebdavUrl(java.lang.String webdavUrl)

setWebdavUser

public void setWebdavUser(java.lang.String webdavUser)

setWebdavPassword

public void setWebdavPassword(java.lang.String webdavPassword)

setClientUrl

public void setClientUrl(java.lang.String clientUrl)

begin

public void begin()
This method is left empty as there is no optimization opportunity.

Specified by:
begin in interface StaticContentStore
See Also:
StaticContentStore.end()

end

public void end()
This method is left empty as there is no optimization opportunity.

Specified by:
end in interface StaticContentStore
See Also:
StaticContentStore.begin()

storeFile

public java.lang.String storeFile(java.lang.String fileName,
                                  java.io.InputStream in)
                           throws org.apache.commons.httpclient.URIException,
                                  java.io.IOException
Saves the passed stream to a WebDAV repository-based cache and returns the absolute URL pointing to the resulted file.

Specified by:
storeFile in interface StaticContentStore
Returns:
the absolute URL that points to the resulted file.
Throws:
org.apache.commons.httpclient.URIException
java.io.IOException