org.ow2.weblab.content
Class FileContentManager

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

public class FileContentManager
extends ContentManager


Field Summary
static java.lang.String FILE_SCHEME
           
static java.lang.String FOLDER_CONTENT_PATH
           
static org.apache.commons.logging.Log logger
           
static java.lang.String PREFIX
           
static java.lang.String SUFFIX
           
 
Fields inherited from class org.ow2.weblab.content.ContentManager
BUFFER_SIZE, CONTENT_MANAGER_IMPLEMENTATION, CONTENT_MANAGER_PROPERTIES_FILE, instance
 
Constructor Summary
protected FileContentManager()
           
 
Method Summary
 java.lang.String getContentFolderPath()
           
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 setContentFolderPath(java.lang.String contentFolderPath)
           
 
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

FILE_SCHEME

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

FOLDER_CONTENT_PATH

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

PREFIX

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

SUFFIX

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

logger

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

FileContentManager

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

getContentFolderPath

public java.lang.String getContentFolderPath()

setContentFolderPath

protected void setContentFolderPath(java.lang.String contentFolderPath)


Copyright © 2004-2011. All Rights Reserved.