Interface HotlinkingManager
- All Known Implementing Classes:
HotlinkingManagerDefault
public interface HotlinkingManager
-
Method Summary
Modifier and TypeMethodDescriptiongetHotlinkingStategy(Object serverExchange, URI resourceURI, StaticResource<?> resource) The strategy to use to protect the hotlinked resource.getRedirectUrl(Object serverExchange, URI resourceURI, StaticResource<?> resource) The URL to redirect the protected resource when thegetHotlinkingStategy(Object, URI, StaticResource)returnsHotlinkingStategy.REDIRECT.booleanmustHotlinkingProtect(Object serverExchange, URI resourceUri, String requestOriginHeader, String requestRefererHeader, StaticResource<?> resource) This must returntrueif the current resource has to be hotlinking protected.
-
Method Details
-
mustHotlinkingProtect
boolean mustHotlinkingProtect(Object serverExchange, URI resourceUri, String requestOriginHeader, String requestRefererHeader, StaticResource<?> resource) This must returntrueif the current resource has to be hotlinking protected. -
getHotlinkingStategy
HotlinkingStategy getHotlinkingStategy(Object serverExchange, URI resourceURI, StaticResource<?> resource) The strategy to use to protect the hotlinked resource. -
getRedirectUrl
The URL to redirect the protected resource when thegetHotlinkingStategy(Object, URI, StaticResource)returnsHotlinkingStategy.REDIRECT. Won't be used otherwise.
-