Package-level declarations
Types
Link copied to clipboard
Read access for a revisioned file registry.
Link copied to clipboard
Configuration options for the RevFilePlugin.
Link copied to clipboard
A registry for revisioned files, scoped under the given path.
Link copied to clipboard
class RevisionedFile
Describes a revisioned file, meaning its path is unique based on its content.
Link copied to clipboard
interface WriteableRevFileRegistry
Write access for a revisioned file registry.
Properties
Functions
Link copied to clipboard
fun WriteableRevFileRegistry.file(file: File, contentType: ContentType = ContentType.defaultForFile(file), name: String = file.name): RevisionedFile
Creates a new RevisionedFile from the given file and adds it to this WriteableRevFileRegistry.
Link copied to clipboard
fun WriteableRevFileRegistry.resource(resource: String, name: String = resource.substringAfterLast('/'), contentType: ContentType = ContentType.defaultForFilePath(resource), classLoader: ClassLoader = checkNotNull(this::class.java.classLoader) {
"Failed to get a class loader for loading resource '$resource'."
}): RevisionedFile
Creates a new RevisionedFile from the given JVM resource and adds it to this WriteableRevFileRegistry.
Link copied to clipboard
fun WriteableRevFileRegistry.source(originalName: String, contentType: ContentType = ContentType.defaultForFilePath(originalName), content: () -> Source): RevisionedFile
fun WriteableRevFileRegistry.source(path: Path, contentType: ContentType = ContentType.defaultForFilePath(path.toString()), originalName: String = path.name, fileSystem: FileSystem = SystemFileSystem): RevisionedFile
Creates a new RevisionedFile from the given source and adds it to this WriteableRevFileRegistry.
Link copied to clipboard
fun WriteableRevFileRegistry.uri(uri: URI, name: String = uri.toString().substringAfterLast('/'), contentType: ContentType = ContentType.defaultForFilePath(uri.path)): RevisionedFile
Creates a new RevisionedFile from the given URI and adds it to this WriteableRevFileRegistry.
Link copied to clipboard
fun WriteableRevFileRegistry.url(url: URL, name: String = url.toString().substringAfterLast('/'), contentType: ContentType = ContentType.defaultForFilePath(url.path)): RevisionedFile
Creates a new RevisionedFile from the given URL and adds it to this WriteableRevFileRegistry.