| Package | Description |
|---|---|
| com.linecorp.armeria.server.file |
HTTP static file service.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
AggregatedHttpFile
An immutable variant of
HttpFile which has its attributes and content readily available. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractHttpFile
A skeletal
HttpFile implementation. |
class |
StreamingHttpFile<T extends Closeable>
A skeletal
HttpFile that simplifies the streaming of potentially large content. |
| Modifier and Type | Method and Description |
|---|---|
abstract HttpFile |
HttpFileBuilder.build()
Returns a newly created
HttpFile with the properties configured so far. |
HttpFile |
HttpVfs.get(String path,
Clock clock,
String contentEncoding,
HttpHeaders additionalHeaders)
Finds the file at the specified
path. |
static HttpFile |
HttpFile.of(ClassLoader classLoader,
String path)
Creates a new
HttpFile which streams the resource at the specified path, loaded by
the specified ClassLoader. |
static HttpFile |
HttpFile.of(File file)
|
static HttpFile |
HttpFile.of(Path path)
|
static HttpFile |
HttpFile.ofCached(HttpFile file,
int maxCachingLength)
|
static HttpFile |
HttpFile.ofResource(ClassLoader classLoader,
String path)
Deprecated.
|
static HttpFile |
HttpFile.ofResource(String path)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static HttpFile |
HttpFile.ofCached(HttpFile file,
int maxCachingLength)
|
Copyright © 2020 LeanCloud. All rights reserved.