org.ow2.weblab.content
Class FileContentManager
java.lang.Object
org.ow2.weblab.content.ContentManager
org.ow2.weblab.content.FileContentManager
public class FileContentManager
- extends ContentManager
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
FileContentManager
protected FileContentManager()
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.