Interface ViewsResolver

All Known Implementing Classes:
DefaultViewsResolver
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface @DefaultImplementation(DefaultViewsResolver.class) public interface ViewsResolver
Contract to resolve the view.
Since:
3.0.0
Author:
Sergio del Amo
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull Optional<String>
    resolveView(io.micronaut.http.HttpRequest<?> request, io.micronaut.http.HttpResponse<?> response)
     
  • Method Details

    • resolveView

      @NonNull @NonNull Optional<String> resolveView(io.micronaut.http.HttpRequest<?> request, io.micronaut.http.HttpResponse<?> response)
      Parameters:
      request - HTTP Request
      response - HTTP Response
      Returns:
      The view name if resolved