net.fckeditor.connector.impl
Class LocalConnector

java.lang.Object
  extended by net.fckeditor.connector.impl.AbstractLocalFileSystemConnector
      extended by 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

Use the ServerRootPathBuilder in conjunction with this class.

Version:
$Id: LocalConnector.java 4785 2009-12-21 20:10:28Z mosipov $

Field Summary
 
Fields inherited from class net.fckeditor.connector.impl.AbstractLocalFileSystemConnector
servletContext
 
Fields inherited from interface net.fckeditor.connector.Connector
KEY_NAME, KEY_SIZE
 
Constructor Summary
LocalConnector()
           
 
Method Summary
protected  String getRealUserFilesAbsolutePath(String userFilesAbsolutePath)
          Returns the passed parameter as-is.
 void init(ServletContext servletContext)
          Initializes this connector.
 
Methods inherited from class net.fckeditor.connector.impl.AbstractLocalFileSystemConnector
createFolder, fileUpload, getFiles, getFolders, getOrCreateResourceTypeDir
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalConnector

public LocalConnector()
Method Detail

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.