Package io.micronaut.views
Class DefaultViewsRendererLocator
java.lang.Object
io.micronaut.views.DefaultViewsRendererLocator
- All Implemented Interfaces:
- ViewsRendererLocator
Default implementation of 
ViewsRendererLocator.- Since:
- 3.0.0
- Author:
- Sergio del Amo
- 
Constructor SummaryConstructorsConstructorDescriptionDefaultViewsRendererLocator(io.micronaut.context.ApplicationContext applicationContext) 
- 
Method SummaryModifier and TypeMethodDescription@NonNull Optional<ViewsRenderer>resolveViewsRenderer(@NonNull String view, @NonNull String contentType, @Nullable Object body) 
- 
Constructor Details- 
DefaultViewsRendererLocatorpublic DefaultViewsRendererLocator(io.micronaut.context.ApplicationContext applicationContext) 
 
- 
- 
Method Details- 
resolveViewsRenderer@NonNull public @NonNull Optional<ViewsRenderer> resolveViewsRenderer(@NonNull @NonNull String view, @NonNull @NonNull String contentType, @Nullable @Nullable Object body) throws ViewNotFoundException - Specified by:
- resolveViewsRendererin interface- ViewsRendererLocator
- Parameters:
- view- view Name
- contentType- Response Content Type
- body- Response Body
- Returns:
- The ViewsRendererable to resolve the view with the response body and media type
- Throws:
- ViewNotFoundException- if the view is not found for the resolved- ViewsRenderers.
 
 
-