org.ow2.weblab.content
Class WebDAVContentManager

java.lang.Object
  extended by org.ow2.weblab.content.ContentManager
      extended by org.ow2.weblab.content.WebDAVContentManager

public class WebDAVContentManager
extends ContentManager


Field Summary
static org.apache.commons.logging.Log logger
           
static java.lang.String WEBDAV_HOST
           
static java.lang.String WEBDAV_MAXHOSTCONNECTIONS
           
static java.lang.String WEBDAV_PASSWORD
           
static java.lang.String WEBDAV_TIMEOUT
           
static java.lang.String WEBDAV_TMP_FOLDER_PATH
           
static java.lang.String WEBDAV_USERNAME
           
 
Fields inherited from class org.ow2.weblab.content.ContentManager
BUFFER_SIZE, CONTENT_MANAGER_IMPLEMENTATION, CONTENT_MANAGER_PROPERTIES_FILE, instance
 
Constructor Summary
protected WebDAVContentManager()
           
 
Method Summary
 java.lang.String getWebdavHost()
           
 int getWebdavMaxHostConnections()
           
 java.lang.String getWebdavPassword()
           
 int getWebdavTimeOut()
           
 java.lang.String getWebdavTmpFolder()
           
 java.lang.String getWebdavUserName()
           
protected  java.io.File readContent(org.ow2.weblab.core.model.Resource res, java.net.URI destUri)
          Abstract method to implement : the class is only expected to save the content and return the URI of the save content.
protected  java.net.URI saveContent(java.io.InputStream content, org.ow2.weblab.core.model.Resource res)
          Abstract method to implement : the class is only expected to save the content and return the URI of the save content.
protected  void setWebdavHost(java.lang.String webdavHost)
           
protected  void setWebdavMaxHostConnections(int webdavMaxHostConnections)
           
protected  void setWebdavPassword(java.lang.String webdavPassword)
           
protected  void setWebdavTimeOut(int webdavTimeOut)
           
protected  void setWebdavTmpFolder(java.lang.String webdavTmpFolder)
           
protected  void setWebdavUserName(java.lang.String webdavUserName)
           
 
Methods inherited from class org.ow2.weblab.content.ContentManager
copyFile, getImplementationName, getInstance, getInstance, getPropertyValue, readNativeContent, readNormalisedContent, saveNativeContent, saveNormalisedContent, writeStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static org.apache.commons.logging.Log logger

WEBDAV_TMP_FOLDER_PATH

public static final java.lang.String WEBDAV_TMP_FOLDER_PATH
See Also:
Constant Field Values

WEBDAV_HOST

public static final java.lang.String WEBDAV_HOST
See Also:
Constant Field Values

WEBDAV_TIMEOUT

public static final java.lang.String WEBDAV_TIMEOUT
See Also:
Constant Field Values

WEBDAV_MAXHOSTCONNECTIONS

public static final java.lang.String WEBDAV_MAXHOSTCONNECTIONS
See Also:
Constant Field Values

WEBDAV_PASSWORD

public static final java.lang.String WEBDAV_PASSWORD
See Also:
Constant Field Values

WEBDAV_USERNAME

public static final java.lang.String WEBDAV_USERNAME
See Also:
Constant Field Values
Constructor Detail

WebDAVContentManager

protected WebDAVContentManager()
Method Detail

saveContent

protected java.net.URI saveContent(java.io.InputStream content,
                                   org.ow2.weblab.core.model.Resource res)
                            throws org.ow2.weblab.core.extended.exception.WebLabCheckedException
Description copied from class: ContentManager
Abstract method to implement : the class is only expected to save the content and return the URI of the save content.

Specified by:
saveContent in class ContentManager
Returns:
Throws:
org.ow2.weblab.core.extended.exception.WebLabCheckedException

readContent

protected java.io.File readContent(org.ow2.weblab.core.model.Resource res,
                                   java.net.URI destUri)
                            throws org.ow2.weblab.core.extended.exception.WebLabCheckedException
Description copied from class: ContentManager
Abstract method to implement : the class is only expected to save the content and return the URI of the save content.

Specified by:
readContent in class ContentManager
Returns:
Throws:
org.ow2.weblab.core.extended.exception.WebLabCheckedException

getWebdavTmpFolder

public java.lang.String getWebdavTmpFolder()

setWebdavTmpFolder

protected void setWebdavTmpFolder(java.lang.String webdavTmpFolder)

getWebdavHost

public java.lang.String getWebdavHost()

setWebdavHost

protected void setWebdavHost(java.lang.String webdavHost)

getWebdavTimeOut

public int getWebdavTimeOut()

setWebdavTimeOut

protected void setWebdavTimeOut(int webdavTimeOut)

getWebdavMaxHostConnections

public int getWebdavMaxHostConnections()

setWebdavMaxHostConnections

protected void setWebdavMaxHostConnections(int webdavMaxHostConnections)

getWebdavUserName

public java.lang.String getWebdavUserName()

setWebdavUserName

protected void setWebdavUserName(java.lang.String webdavUserName)

getWebdavPassword

public java.lang.String getWebdavPassword()

setWebdavPassword

protected void setWebdavPassword(java.lang.String webdavPassword)


Copyright © 2004-2011. All Rights Reserved.