public.javadoc.org.spincast.core.routing.hotlinking.HotlinkingManager.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
HotlinkingManager (org.spincast:spincast-framework 1.0.0 API)
org.spincast.core.routing.hotlinking
Interface HotlinkingManager
-
- All Known Implementing Classes:
- HotlinkingManagerDefault
public interface HotlinkingManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods
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.
-
-
Method Detail
-
mustHotlinkingProtect
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.
-
getHotlinkingStategy
HotlinkingStategy getHotlinkingStategy(Object serverExchange,
URI resourceURI,
StaticResource<?> resource)
The strategy to use to protect the hotlinked resource.
-
getRedirectUrl
String getRedirectUrl(Object serverExchange,
URI resourceURI,
StaticResource<?> resource)
The URL to redirect the protected resource when the
getHotlinkingStategy(Object, URI, StaticResource)
returns
HotlinkingStategy.REDIRECT
. Won't be used otherwise.
Copyright © 2019. All rights reserved.