@FunctionalInterface @DefaultImplementation(value=DefaultViewsRendererLocator.class) public interface ViewsRendererLocator
ViewsRenderer
for a particular view, media type and response class.Modifier and Type | Method and Description |
---|---|
java.util.Optional<ViewsRenderer> |
resolveViewsRenderer(java.lang.String view,
io.micronaut.http.MediaType mediaType,
java.lang.Object body) |
@NonNull java.util.Optional<ViewsRenderer> resolveViewsRenderer(@NonNull java.lang.String view, @NonNull io.micronaut.http.MediaType mediaType, @Nullable java.lang.Object body) throws ViewNotFoundException
view
- view NamemediaType
- Response Content Typebody
- Response BodyViewsRenderer
able to resolve the view with the response body and media typeViewNotFoundException
- if the view is not found for the resolved ViewsRenderer
s.