Interface ResourceFn
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Synchronously reads static or templated resource contents from a full request.
-
Method Summary
Modifier and TypeMethodDescriptionapply(InteractionContext context, ResourceRequest request) Reads the requested resource.
-
Method Details
-
apply
Reads the requested resource.- Parameters:
context- the interaction contextrequest- the full resource request- Returns:
- the resource contents
- Throws:
Exception- if reading fails
-