Interface StaticFiles.AccessResolver
- 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 TypeMethodDescriptionaccessFor(@NonNull Path path, @NonNull BasicFileAttributes attributes) Resolves static-file access for the file being served.
-
Method Details
-
allowAllInstance
-
accessFor
Resolves static-file access for the file being served.Implementations must be thread-safe;
StaticFilesinvokes resolvers concurrently from request-handling threads. This resolver is intentionally path- and attribute-based. For request-aware access decisions, gateStaticFiles.marshaledResponseFor(String, Request)from the resource method or another higher application layer.- Parameters:
path- the resolved file path being servedattributes- the file attributes read for this response- Returns:
- the access outcome
-