Package org.ametys.web.source
Class SkinSource
java.lang.Object
org.ametys.core.util.path.PathSource
org.ametys.web.source.SkinSource
- All Implemented Interfaces:
ModifiableSource,ModifiableTraversableSource,MoveableSource,Source,TraversableSource
A skin source is a path source that supports for inheritance
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe files and inherited filesPathSource._pathis the first existing oneFields inherited from class org.ametys.core.util.path.PathSource
_externalUri, _path, _scheme, _uri -
Constructor Summary
ConstructorsConstructorDescriptionSkinSource(String scheme, String uri, List<Path> files) Builds a SkinSource, given an URI scheme, URI and a Path. -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class org.ametys.core.util.path.PathSource
canCancel, cancel, copyTo, delete, exists, getContentLength, getFile, getInputStream, getLastModified, getMimeType, getName, getOutputStream, getScheme, getURI, isCollection, makeCollection, moveTo, refresh
-
Field Details
-
_files
The files and inherited filesPathSource._pathis the first existing one
-
-
Constructor Details
-
SkinSource
Builds a SkinSource, given an URI scheme, URI and a Path.- Parameters:
scheme- The schemeuri- the URIfiles- The files (inheritance) Cannot be null nor empty
-
-
Method Details
-
getChild
- Specified by:
getChildin interfaceTraversableSource- Overrides:
getChildin classPathSource- Throws:
SourceException
-
getChildren
- Specified by:
getChildrenin interfaceTraversableSource- Overrides:
getChildrenin classPathSource- Throws:
SourceException
-
getParent
- Specified by:
getParentin interfaceTraversableSource- Overrides:
getParentin classPathSource- Throws:
SourceException
-
getValidity
- Specified by:
getValidityin interfaceSource- Overrides:
getValidityin classPathSource
-