Interface StaticFiles.RangeRequestsResolver
- 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 TypeMethodDescriptionrangeRequestsFor(@NonNull Path path, @NonNull BasicFileAttributes attributes) Resolves whether byte range requests are enabled for the file being served.
-
Method Details
-
enabledInstance
-
disabledInstance
-
rangeRequestsFor
Resolves whether byte range requests are enabled 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:
trueif range requests should be honored, otherwisefalse
-