| Package | Description |
|---|---|
| com.linecorp.armeria.server.file |
HTTP static file service.
|
| Modifier and Type | Method and Description |
|---|---|
HttpFileAttributes |
HttpFile.readAttributes()
Retrieves the attributes of this file.
|
HttpFileAttributes |
AggregatedHttpFile.readAttributes()
Returns the attributes of the file.
|
| Modifier and Type | Method and Description |
|---|---|
protected BiFunction<String,HttpFileAttributes,String> |
AbstractHttpFileBuilder.entityTagFunction()
Returns the function which generates the entity tag that's used for setting the
"etag" header
automatically. |
| Modifier and Type | Method and Description |
|---|---|
protected String |
AbstractHttpFile.generateEntityTag(HttpFileAttributes attrs)
Generates an entity tag of the file with the given attributes using the
entityTagFunction
which was specified with the constructor. |
| Modifier and Type | Method and Description |
|---|---|
HttpFileBuilder |
HttpFileBuilder.entityTag(BiFunction<String,HttpFileAttributes,String> entityTagFunction) |
AbstractHttpFileBuilder |
AbstractHttpFileBuilder.entityTag(BiFunction<String,HttpFileAttributes,String> entityTagFunction)
Sets the function which generates the entity tag that's used for setting the
"etag" header
automatically. |
| Constructor and Description |
|---|
AbstractHttpFile(MediaType contentType,
Clock clock,
boolean dateEnabled,
boolean lastModifiedEnabled,
BiFunction<String,HttpFileAttributes,String> entityTagFunction,
HttpHeaders headers)
Creates a new instance.
|
StreamingHttpFile(MediaType contentType,
Clock clock,
boolean dateEnabled,
boolean lastModifiedEnabled,
BiFunction<String,HttpFileAttributes,String> entityTagFunction,
HttpHeaders headers)
Creates a new instance.
|
Copyright © 2020 LeanCloud. All rights reserved.