Interface PreviewTokenWebRequestResolver

  • All Known Implementing Classes:
    DefaultPreviewTokenWebRequestResolver

    public interface PreviewTokenWebRequestResolver
    Interface that is expected to resolve a PreviewToken from a NativeWebRequest within a certain context.
    Author:
    Nick Crum (ncrum)
    • Method Detail

      • resolve

        PreviewToken resolve​(org.springframework.web.context.request.NativeWebRequest webRequest)
        Attempts to resolve a PreviewToken for the provided request, operation type, and context. If no preview token is found, or if it is found to be invalid, this method is expected to return null.
        Parameters:
        webRequest - the current web request
        Returns:
        a PreviewToken or null