Interface PreviewDateWebRequestResolver

All Known Implementing Classes:
DefaultPreviewDateWebRequestResolver

public interface PreviewDateWebRequestResolver
Interface that is expected to resolve a preview date of type Instant
Author:
Nick Crum (ncrum)
  • Method Summary

    Modifier and Type
    Method
    Description
    resolve(org.springframework.web.context.request.NativeWebRequest webRequest)
    Attempts to resolve a preview date for the provided request and preview token.
  • Method Details

    • resolve

      Instant resolve(org.springframework.web.context.request.NativeWebRequest webRequest)
      Attempts to resolve a preview date for the provided request and preview token.

      If no preview date is found this method is expected to return null.

      Parameters:
      webRequest - the current web request
      Returns:
      a preview date Instant or null