public interface HotlinkingManager
| Modifier and Type | Method and Description |
|---|---|
HotlinkingStategy |
getHotlinkingStategy(Object serverExchange,
URI resourceURI,
StaticResource<?> resource)
The strategy to use to protect the hotlinked resource.
|
String |
getRedirectUrl(Object serverExchange,
URI resourceURI,
StaticResource<?> resource)
The URL to redirect the protected resource when the
getHotlinkingStategy(Object, URI, StaticResource) returns
HotlinkingStategy.REDIRECT. |
boolean |
mustHotlinkingProtect(Object serverExchange,
URI resourceUri,
String requestOriginHeader,
String requestRefererHeader,
StaticResource<?> resource)
This must return
true if the current
resource has to be hotlinking protected. |
boolean mustHotlinkingProtect(Object serverExchange, URI resourceUri, String requestOriginHeader, String requestRefererHeader, StaticResource<?> resource)
true if the current
resource has to be hotlinking protected.HotlinkingStategy getHotlinkingStategy(Object serverExchange, URI resourceURI, StaticResource<?> resource)
String getRedirectUrl(Object serverExchange, URI resourceURI, StaticResource<?> resource)
getHotlinkingStategy(Object, URI, StaticResource) returns
HotlinkingStategy.REDIRECT. Won't be used otherwise.Copyright © 2019. All rights reserved.