Interface StaticFiles.HeadersResolver
- Enclosing class:
StaticFiles
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionheadersFor(@NonNull Path path, @NonNull BasicFileAttributes attributes) Resolves extra response headers for the file being served.
-
Method Details
-
fromHeaders
-
disabledInstance
-
headersFor
@NonNull Map<@NonNull String, @NonNull Set<@NonNull String>> headersFor(@NonNull Path path, @NonNull BasicFileAttributes attributes) Resolves extra response headers for the file being served.Implementations must be thread-safe;
StaticFilesinvokes resolvers concurrently from request-handling threads.- Parameters:
path- the resolved file path being servedattributes- the file attributes read for this response- Returns:
- extra headers to emit
-