public interface PreviewTokenWebRequestResolver
PreviewToken
from a NativeWebRequest
within a certain context.Modifier and Type | Method and Description |
---|---|
PreviewToken |
resolve(org.springframework.web.context.request.NativeWebRequest webRequest)
Attempts to resolve a
PreviewToken for the provided request, operation type, and
context. |
PreviewToken resolve(org.springframework.web.context.request.NativeWebRequest webRequest)
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
.webRequest
- the current web requestPreviewToken
or null
Copyright © 2021. All rights reserved.