Interface PreviewDateWebRequestResolver
-
- All Known Implementing Classes:
DefaultPreviewDateWebRequestResolver
public interface PreviewDateWebRequestResolverInterface that is expected to resolve a preview date of typeInstant- Author:
- Nick Crum (ncrum)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Instantresolve(org.springframework.web.context.request.NativeWebRequest webRequest)Attempts to resolve a preview date for the provided request and preview token.
-
-
-
Method Detail
-
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
Instantornull
-
-