Package-level declarations

Types

Link copied to clipboard
class DiscreteFileProvider(fileSystem: FileSystem, rootDir: Path, initialFiles: List<File> = emptyList(), mimeTypeDetector: MimeTypeDetector = MimeTypeDetector { "text/plain" }) : ResourceProvider

A ResourceProvider that exposes a finite, discrete set of files (by relative path) from a given rootDir. It does NOT return any resource templates.

Link copied to clipboard
data class File(val relativePath: String, val name: String? = null, val description: String? = null, val mimeType: String? = null)
Link copied to clipboard
fun interface MimeTypeDetector
Link copied to clipboard
class TemplateFileProvider(fileSystem: FileSystem, rootDir: Path, name: String = "Arbitrary local file access", description: String = "Allows reading any file by specifying {path}", mimeTypeDetector: MimeTypeDetector = MimeTypeDetector { "text/plain" }) : ResourceProvider

A ResourceProvider that exposes rootDir through the URI template: