Modifier and Type | Method and Description |
---|---|
Resource |
Resource.getAbsoluteResource()
Returns the absolute form of this abstract pathname.
|
Resource |
Resource.getCanonicalResource()
Returns the canonical form of this abstract pathname.
|
Resource |
Resource.getParentResource()
Returns the abstract pathname of this abstract pathname's parent,
or
null if this pathname does not name a parent
directory. |
Resource |
Resource.getRealResource(java.lang.String relpath)
returns a resource that is relative to the current resource
|
Resource |
Resources.getResource(java.lang.String path)
returns a resource that matching the given path
|
Resource |
ResourceProvider.getResource(java.lang.String path)
return a resource that match given path
|
Resource[] |
Resource.listResources()
Returns an array of abstract pathnames denoting the files in the
directory denoted by this abstract pathname.
|
Resource[] |
Resource.listResources(ResourceFilter filter)
Returns an array of abstract pathnames denoting the files and
directories in the directory denoted by this abstract pathname that
satisfy the specified filter.
|
Resource[] |
Resource.listResources(ResourceNameFilter filter)
Returns an array of abstract pathnames denoting the files and
directories in the directory denoted by this abstract pathname that
satisfy the specified filter.
|
Modifier and Type | Method and Description |
---|---|
void |
Resource.copyFrom(Resource res,
boolean append)
copy data of given resource to current
|
void |
Resource.copyTo(Resource res,
boolean append)
copy current resource data to given resource
|
void |
ResourceProvider.lock(Resource res) |
void |
ResourceLock.lock(Resource res) |
void |
Resource.moveTo(Resource dest)
Move/renames the file denoted by this abstract pathname.
|
void |
ResourceProvider.read(Resource res) |
void |
ResourceLock.read(Resource res) |
boolean |
Resource.renameTo(Resource dest)
Deprecated.
use instead
#moveTo(Resource) |
void |
ResourceProvider.unlock(Resource res) |
void |
ResourceLock.unlock(Resource res) |
Modifier and Type | Method and Description |
---|---|
boolean |
ResourceFilter.accept(Resource res) |
boolean |
ResourceNameFilter.accept(Resource parent,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
static void |
Util.copy(Resource in,
Resource out) |
Modifier and Type | Method and Description |
---|---|
Resource |
Mapping.getArchive() |
Resource |
Mapping.getClassRootDirectory() |
Resource |
SourceFile.getPhyscalFile()
return file object, based on physical path and relpath
|
Resource |
Mapping.getPhysical() |
Resource |
SourceFile.getResource()
if the mapping physical path and archive is invalid or not defined, it is possible this method returns null
|
Resource |
PageSource.getResource()
if the pageSource is based on a archive, Lucee returns the ra:// path
|
Resource |
PageSource.getResourceTranslated(PageContext pc)
if the pageSource is based on a archive, translate the source to a zip:// Resource
|
abstract Resource |
PageContext.getRootTemplateDirectory() |
Modifier and Type | Method and Description |
---|---|
abstract PageSource |
PageContext.toPageSource(Resource res,
PageSource defaultValue) |
Modifier and Type | Method and Description |
---|---|
Resource |
Config.getCacheDir() |
Resource |
Config.getClientScopeDir() |
Resource |
Config.getConfigDir() |
Resource |
Config.getConfigFile() |
Resource |
ConfigWeb.getConfigServerDir() |
Resource |
Config.getDeployDirectory()
return directory, where lucee deploy translated cfml classes (java and class files)
|
Resource |
Config.getExtensionDirectory() |
Resource |
Config.getFldFile() |
Resource |
Config.getPhysical(Mapping[] mappings,
java.lang.String relPath,
boolean alsoDefaultMapping)
Deprecated.
use instead getPhysicalResources or getPhysicalResourceExisting
|
Resource |
Config.getPhysicalResourceExisting(PageContext pc,
Mapping[] mappings,
java.lang.String relPath,
boolean onlyTopLevel,
boolean useSpecialMappings,
boolean useDefaultMapping)
return existing Resource that match the given criteria, if there is no Resource null is returned.
|
Resource[] |
Config.getPhysicalResources(PageContext pc,
Mapping[] mappings,
java.lang.String relPath,
boolean onlyTopLevel,
boolean useSpecialMappings,
boolean useDefaultMapping)
get all Resources that match the given criteria
|
Resource |
Config.getRemoteClientDirectory() |
Resource |
Config.getResource(java.lang.String path) |
Resource |
Config.getRootDirectory() |
Resource |
Config.getSecurityDirectory() |
Resource |
Config.getTempDirectory()
return the temp directory
|
Resource |
Config.getTldFile() |
Resource |
Config.getVideoDirectory() |
Modifier and Type | Method and Description |
---|---|
java.lang.ClassLoader |
Config.getClassLoader(Resource[] reses) |
Modifier and Type | Method and Description |
---|---|
Resource |
DebugPage.getFile()
return file represetati9on of the debug page
|
Modifier and Type | Method and Description |
---|---|
Resource[] |
JavaSettings.getResources()
pathes to the directories that contain Java classes or JAR files.
|
Resource[] |
ApplicationContext.getRestCFCLocations() |
Resource |
ApplicationContext.getSource() |
Modifier and Type | Method and Description |
---|---|
Resource |
ORMConfiguration.getCacheConfig() |
Resource[] |
ORMConfiguration.getCfcLocations() |
Resource |
ORMConfiguration.getOrmConfig() |
Resource |
ORMConfiguration.getSqlScript() |
Modifier and Type | Method and Description |
---|---|
Resource |
ScheduleTask.getResource() |
Modifier and Type | Method and Description |
---|---|
Resource |
SearchEngine.getDirectory() |
Resource |
SearchCollection.getPath() |
Modifier and Type | Method and Description |
---|---|
SearchCollection |
SearchEngine.createCollection(java.lang.String name,
Resource path,
java.lang.String language,
boolean allowOverwrite)
Creates a new Collection and Store it (creating always a spellindex)
|
IndexResult |
SearchCollection.indexFile(java.lang.String id,
java.lang.String title,
Resource file,
java.lang.String language)
updates a collection with a file
|
IndexResult |
SearchCollection.indexPath(java.lang.String id,
java.lang.String title,
Resource dir,
java.lang.String[] extensions,
boolean recurse,
java.lang.String language)
updates a collection with a path
|
void |
SearchEngine.init(Config config,
Resource searchDir,
LogAndSource log)
constructor of the class
|
void |
SearchCollection.map(Resource path)
map a Collection
|
Modifier and Type | Method and Description |
---|---|
void |
SecurityManager.checkFileLocation(Config config,
Resource res,
java.lang.String serverPassword) |
void |
SecurityManager.checkFileLocation(Resource res) |
Modifier and Type | Method and Description |
---|---|
Resource |
FormItem.getResource() |
Modifier and Type | Method and Description |
---|---|
Resource |
ResourceUtil.createResource(Resource res,
short level,
short type)
create a file if possible, return file if ok, otherwise return null
|
Resource |
Creation.createResource(java.lang.String path,
boolean existing) |
Resource |
Cast.toResource(java.lang.Object obj)
convert a object to a Resource
|
Resource |
Cast.toResource(java.lang.Object obj,
Resource defaultValue)
convert a object to a Resource
|
Resource |
ResourceUtil.toResourceExisting(PageContext pc,
java.lang.String path)
cast a String (argument destination) to a File Object,
if destination is not a absolute, file object will be relative to current position (get from PageContext)
file must exist otherwise throw exception
|
Resource |
ResourceUtil.toResourceExistingParent(PageContext pc,
java.lang.String destination)
cast a String (argument destination) to a File Object,
if destination is not a absolute, file object will be relative to current position (get from PageContext)
at least parent must exist
|
Resource |
ResourceUtil.toResourceNotExisting(PageContext pc,
java.lang.String destination)
cast a String (argument destination) to a File Object,
if destination is not a absolute, file object will be relative to current position (get from PageContext)
existing file is prefered but dont must exist
|
Modifier and Type | Method and Description |
---|---|
void |
ResourceUtil.checkCopyToOK(Resource source,
Resource target)
check if copying a file is ok with the rules for the Resource interface, to not change this rules.
|
void |
ResourceUtil.checkCreateDirectoryOK(Resource resource,
boolean createParentWhenNotExists)
check if directory creation is ok with the rules for the Resource interface, to not change this rules.
|
void |
ResourceUtil.checkCreateFileOK(Resource resource,
boolean createParentWhenNotExists)
check if file creating is ok with the rules for the Resource interface, to not change this rules.
|
void |
ResourceUtil.checkGetInputStreamOK(Resource resource)
check if getting a inputstream of the file is ok with the rules for the Resource interface, to not change this rules.
|
void |
ResourceUtil.checkGetOutputStreamOK(Resource resource)
check if getting a outputstream of the file is ok with the rules for the Resource interface, to not change this rules.
|
void |
ResourceUtil.checkMoveToOK(Resource source,
Resource target)
check if moveing a file is ok with the rules for the Resource interface, to not change this rules.
|
void |
ResourceUtil.checkRemoveOK(Resource resource)
check if removing the file is ok with the rules for the Resource interface, to not change this rules.
|
void |
ResourceUtil.copyRecursive(Resource src,
Resource trg)
copy a file or directory recursive (with his content)
|
void |
ResourceUtil.copyRecursive(Resource src,
Resource trg,
ResourceFilter filter)
copy a file or directory recursive (with his content)
|
org.w3c.dom.Document |
Creation.createDocument(Resource file,
boolean isHtml)
creates and returns a xml Document instance
|
Resource |
ResourceUtil.createResource(Resource res,
short level,
short type)
create a file if possible, return file if ok, otherwise return null
|
java.lang.String |
ResourceUtil.getExtension(Resource res)
Deprecated.
use instead
getExtension(Resource res, String defaultValue); |
java.lang.String |
ResourceUtil.getExtension(Resource res,
java.lang.String defaultValue)
get the Extension of a file resource
|
java.lang.String |
ResourceUtil.getMimeType(Resource res,
java.lang.String defaultValue)
return the mime type of a file, does not check the extension of the file, it checks the header
|
java.lang.String |
ResourceUtil.getPathToChild(Resource file,
Resource dir)
return diffrents of one file to a other if first is child of second otherwise return null
|
boolean |
ResourceUtil.isChildOf(Resource file,
Resource dir)
check if file is a child of given directory
|
boolean |
ResourceUtil.isEmpty(Resource res)
return if Resource is empty, means is directory and has no children or a empty file,
if not exist return false.
|
boolean |
ResourceUtil.isEmptyDirectory(Resource res) |
boolean |
ResourceUtil.isEmptyFile(Resource res) |
void |
ResourceUtil.moveTo(Resource src,
Resource dest) |
void |
ResourceUtil.removeChildren(Resource res) |
void |
ResourceUtil.removeChildren(Resource res,
ResourceFilter filter) |
void |
ResourceUtil.removeChildren(Resource res,
ResourceNameFilter filter) |
void |
ResourceUtil.setAttribute(Resource res,
java.lang.String attributes)
sets a attribute to the resource
|
Resource |
Cast.toResource(java.lang.Object obj,
Resource defaultValue)
convert a object to a Resource
|
java.lang.String |
ResourceUtil.toString(Resource r,
java.lang.String charset) |
void |
ZipUtil.unzip(Resource zip,
Resource dir) |
Modifier and Type | Method and Description |
---|---|
Resource |
VideoOutput.getResource() |
Resource |
VideoInput.getResource() |
Modifier and Type | Method and Description |
---|---|
VideoInput |
VideoUtil.createVideoInput(Resource input) |
VideoOutput |
VideoUtil.createVideoOutput(Resource output) |
void |
VideoOutput.setResource(Resource resource) |