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 Summary
Modifier and TypeMethodDescriptionresolve
(org.springframework.web.context.request.NativeWebRequest webRequest) Attempts to resolve aPreviewToken
for the provided request, operation type, and context.
-
Method Details
-
resolve
Attempts to resolve aPreviewToken
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 returnnull
.- Parameters:
webRequest
- the current web request- Returns:
- a
PreviewToken
ornull
-