Package | Description |
---|---|
com.github.wuic.nut.dao.core |
Package where
NutDao implementations are defined for core module. |
com.github.wuic.nut.dao.servlet |
This package defines the DAO support for servlet container.
|
com.github.wuic.path |
This package defines the contracts and abstractions of those contracts of a little API designed by WUIC to resolve
path navigation.
|
com.github.wuic.path.core |
This package defines core implementation of the path API to resolve a hierarchical path with each element
corresponding to either a path, a directory, a ZIP archive or an entry of a ZIP archive.
|
com.github.wuic.servlet.path |
This package provides webapp support for
Path manipulations. |
com.github.wuic.util |
Utility package where helper methods are defined.
|
Modifier and Type | Method and Description |
---|---|
protected abstract DirectoryPath |
PathNutDao.createBaseDirectory()
Creates the
DirectoryPath associated to the AbstractNutDao.basePath . |
protected DirectoryPath |
DiskNutDao.createBaseDirectory()
Creates the
DirectoryPath associated to the AbstractNutDao.basePath . |
protected DirectoryPath |
ClasspathNutDao.createBaseDirectory()
Creates the
DirectoryPath associated to the AbstractNutDao.basePath . |
Modifier and Type | Method and Description |
---|---|
protected DirectoryPath |
WebappNutDao.createBaseDirectory()
Creates the
DirectoryPath associated to the AbstractNutDao.basePath . |
Modifier and Type | Class and Description |
---|---|
class |
AbstractDirectoryPath
Abstract implementation of a
DirectoryPath . |
Modifier and Type | Method and Description |
---|---|
DirectoryPath |
DirectoryPathFactory.create(String path)
Creates a directory path without any parent (root direcrory).
|
DirectoryPath |
Path.getParent()
Returns the parent path.
|
Constructor and Description |
---|
AbstractDirectoryPath(String name,
DirectoryPath parent)
Builds a new instance.
|
Modifier and Type | Class and Description |
---|---|
class |
FsDirectoryPath
This
DirectoryPath representes a directory on the path system. |
class |
VirtualDirectoryPath
This virtual
DirectoryPath is based on a several other DirectoryPath and proxy method call to them
when VirtualDirectoryPath.getChild(String) VirtualDirectoryPath.list() , VirtualDirectoryPath.getLastUpdate() are called. |
class |
ZipDirectoryPath
This class represents
DirectoryPath for ZIP archives. |
class |
ZipEntryDirectoryPath
This
DirectoryPath represents an entry inside a ZIP archive identified as a directory. |
class |
ZipFilePath
This class represents a path which could be considered as a
FilePath and as a DirectoryPath with a
ZIP archive behind the scene. |
Modifier and Type | Method and Description |
---|---|
DirectoryPath |
FsDirectoryPathFactory.create(String path)
Creates a directory path without any parent (root direcrory).
|
DirectoryPath |
VirtualDirectoryPath.getParent()
Returns the parent path.
|
DirectoryPath |
SimplePath.getParent()
Returns the parent path.
|
Constructor and Description |
---|
FsDirectoryPath(File file,
DirectoryPath parent)
Builds a new instance.
|
FsDirectoryPath(String path,
DirectoryPath parent)
Builds a new instance.
|
FsFilePath(File f,
DirectoryPath parent)
Builds a new instance.
|
SimplePath(String n,
DirectoryPath dp)
Builds a new instance based on a given name and a parent directory.
|
ZipDirectoryPath(String name,
DirectoryPath parent)
Builds a new instance.
|
ZipEntryDirectoryPath(String entry,
DirectoryPath parent)
Builds a new instance.
|
ZipEntryFilePath(String entry,
DirectoryPath parent)
Builds a new instance.
|
ZipEntryPath(String entry,
DirectoryPath parent)
Builds a new instance.
|
ZipFilePath(File file,
DirectoryPath parent)
Builds a new instance with the file name as path name.
|
ZipFilePath(File file,
String name,
DirectoryPath parent)
Builds a new instance.
|
Constructor and Description |
---|
VirtualDirectoryPath(String n,
List<DirectoryPath> directories)
Builds a new instance.
|
Modifier and Type | Class and Description |
---|---|
class |
WebappDirectoryPath
Represents a directory in the war file.
|
Modifier and Type | Method and Description |
---|---|
DirectoryPath |
WebappDirectoryPathFactory.create(String path)
Creates a directory path without any parent (root direcrory).
|
Constructor and Description |
---|
WebappDirectoryPath(String name,
DirectoryPath parent,
ServletContext context)
Creates a new instance.
|
WebappFilePath(String n,
DirectoryPath dp,
ServletContext context)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
static List<String> |
IOUtils.listFile(DirectoryPath parent,
Pattern pattern)
Lists all the files from the given directory matching the given pattern.
|
static List<String> |
IOUtils.listFile(DirectoryPath parent,
Pattern pattern,
List<String> skipStartsWithList)
Searches as specified in
IOUtils.listFile(com.github.wuic.path.DirectoryPath, java.util.regex.Pattern) with
a list that contains all begin paths to ignore. |
static List<String> |
IOUtils.listFile(DirectoryPath parent,
String relativePath,
Pattern pattern,
List<String> skipStartsWithList)
Lists the files matching the given pattern in the directory path and its subdirectory represented by
a specified
relativePath . |
static List<String> |
IOUtils.listFile(DirectoryPath parent,
String relativePath,
String endWith,
List<String> skipStartsWithList)
Lists the files ending with the given
Sting in the directory path.. |
Copyright © 2012-2015. All Rights Reserved.