net.fckeditor.connector.impl
Class LocalConnector
java.lang.Object
net.fckeditor.connector.impl.AbstractLocalFileSystemConnector
net.fckeditor.connector.impl.LocalConnector
- All Implemented Interfaces:
- Connector
public class LocalConnector
- extends AbstractLocalFileSystemConnector
Real local filesystem backend connector. The file access is translated as-is
to the local filesystem.
This maybe interesting for those who serve userfiles
- from a static context of a servlet container/application
server,
- from virtual servers with Apache HTTPd on different
domains, e.g.
http://userfiles.mydomain.com
, or
- on a per-user basis, e.g. uploading to
/home/$USERNAME/public_html/fckeditor
and an Apache HTTPd serves
as /~$USERNAME/fckeditor
.
Use the ServerRootPathBuilder
in conjunction with this class.
- Version:
- $Id: LocalConnector.java 4785 2009-12-21 20:10:28Z mosipov $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocalConnector
public LocalConnector()
init
public void init(ServletContext servletContext)
throws Exception
- Initializes this connector. Called at
dispatcher
initialization. Assigns only the servletContext
.
- Parameters:
servletContext
- reference to the ServletContext
in which the caller is
running
- Throws:
Exception
- if the connector initialization fails due to some reason
getRealUserFilesAbsolutePath
protected String getRealUserFilesAbsolutePath(String userFilesAbsolutePath)
- Returns the passed parameter as-is.
- Specified by:
getRealUserFilesAbsolutePath
in class AbstractLocalFileSystemConnector
- Parameters:
userFilesAbsolutePath
- the userfiles absolute path to resolve against a specific
backend
- Returns:
- the resolved userfiles absolute path
Copyright © 2004-2010 Frederico Caldeira Knabben. All Rights Reserved.