public.javadoc.org.spincast.core.routing.class-use.StaticResource.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.
Uses of Interface org.spincast.core.routing.StaticResource (org.spincast:spincast-framework 1.0.0 API)
Uses of Interface
org.spincast.core.routing.StaticResource
-
Packages that use StaticResource
Package
Description
org.spincast.core.routing
org.spincast.core.routing.hotlinking
org.spincast.core.server
org.spincast.plugins.routing
org.spincast.plugins.undertow
-
-
Uses of StaticResource in org.spincast.core.routing
Methods in org.spincast.core.routing that return StaticResource
Modifier and Type
Method and Description
StaticResource<R>
StaticResourceBuilder.create()
Creates and returns the static resource without adding it to
the router.
StaticResource<R>
StaticResourceFactory.create(boolean isSpicastOrPluginAddedResource,
StaticResourceType staticResourceType,
String url,
String path,
Handler<R> generator,
StaticResourceCorsConfig corsConfig,
StaticResourceCacheConfig cacheConfig,
boolean ignoreQueryString,
boolean hotlinkingProtected,
HotlinkingManager hotlinkingManager)
StaticResource<R>
Route.getStaticResource()
Returns the StaticResource
to serve or
null
if this is not a
route for a static resource (ie if
Route.isStaticResourceRoute()
) doesn't return
true
.
Methods in org.spincast.core.routing with parameters of type StaticResource
Modifier and Type
Method and Description
void
Router.addStaticResource(StaticResource<R> staticResource)
Adds a static resource
route, directly.
-
Uses of StaticResource in org.spincast.core.routing.hotlinking
Methods in org.spincast.core.routing.hotlinking with parameters of type StaticResource
Modifier and Type
Method and Description
HotlinkingStategy
HotlinkingManagerDefault.getHotlinkingStategy(Object serverExchange,
URI resourceURI,
StaticResource<?> resource)
HotlinkingStategy
HotlinkingManager.getHotlinkingStategy(Object serverExchange,
URI resourceURI,
StaticResource<?> resource)
The strategy to use to protect the hotlinked resource.
String
HotlinkingManagerDefault.getRedirectUrl(Object serverExchange,
URI resourceURI,
StaticResource<?> resource)
String
HotlinkingManager.getRedirectUrl(Object serverExchange,
URI resourceURI,
StaticResource<?> resource)
The URL to redirect the protected resource when the
HotlinkingManager.getHotlinkingStategy(Object, URI, StaticResource)
returns
HotlinkingStategy.REDIRECT
.
protected boolean
HotlinkingManagerDefault.isHostAndRefererValid(Object serverExchange,
URI resourceUri,
String requestOriginHeader,
String requestRefererHeader,
StaticResource<?> resource)
boolean
HotlinkingManagerDefault.mustHotlinkingProtect(Object serverExchange,
URI resourceUri,
String requestOriginHeader,
String requestRefererHeader,
StaticResource<?> resource)
boolean
HotlinkingManager.mustHotlinkingProtect(Object serverExchange,
URI resourceUri,
String requestOriginHeader,
String requestRefererHeader,
StaticResource<?> resource)
This must return true
if the current
resource has to be hotlinking protected.
-
Uses of StaticResource in org.spincast.core.server
Methods in org.spincast.core.server that return StaticResource
Modifier and Type
Method and Description
StaticResource<?>
Server.getStaticResourceServed(String urlPath)
Gets a static resource served directly by the server, using its path.
Methods in org.spincast.core.server that return types with arguments of type StaticResource
Modifier and Type
Method and Description
Set<StaticResource<?>>
Server.getStaticResourcesServed()
Gets all static resource served directly by the server.
Methods in org.spincast.core.server with parameters of type StaticResource
Modifier and Type
Method and Description
void
Server.addStaticResourceToServe(StaticResource<?> staticResource)
Adds a static resource to serve directly by the server.
-
Uses of StaticResource in org.spincast.plugins.routing
Classes in org.spincast.plugins.routing that implement StaticResource
Modifier and Type
Class and Description
class
StaticResourceDefault<R extends RequestContext<?>>
Represents a static resource.
Methods in org.spincast.plugins.routing that return StaticResource
Modifier and Type
Method and Description
StaticResource<R>
StaticResourceBuilderDefault.create()
StaticResource<R>
RouteDefault.getStaticResource()
Methods in org.spincast.plugins.routing with parameters of type StaticResource
Modifier and Type
Method and Description
void
SpincastRouter.addStaticResource(StaticResource<R> staticResource)
Route<R>
RouteFactory.createRoute(String id,
boolean isResourceRoute,
StaticResource<R> staticResource,
boolean isSpicastCoreRouteOrPluginRoute,
Set<HttpMethod> httpMethods,
String path,
Set<RoutingType> routingTypes,
List<Handler<R>> beforeFilters,
Handler<R> mainHandler,
List<Handler<R>> afterFilters,
int position,
Set<String> acceptedContentTypes,
Set<String> filterIdsToSkip,
boolean skipResources)
Constructors in org.spincast.plugins.routing with parameters of type StaticResource
Constructor and Description
RouteDefault(String id,
boolean isResourceRoute,
StaticResource<R> staticResource,
boolean spicastCoreRouteOrPluginRoute,
Set<HttpMethod> httpMethods,
String path,
Set<RoutingType> routingTypes,
List<Handler<R>> beforeFilters,
Handler<R> mainHandler,
List<Handler<R>> afterFilters,
int position,
Set<String> acceptedContentTypes,
Set<String> filterIdsToSkip,
boolean skipResources)
Constructor
-
Uses of StaticResource in org.spincast.plugins.undertow
Methods in org.spincast.plugins.undertow that return StaticResource
Modifier and Type
Method and Description
protected StaticResource<?>
SpincastResourceHandlerDefault.getStaticResource()
StaticResource<?>
SpincastUndertowServer.getStaticResourceServed(String urlPath)
Methods in org.spincast.plugins.undertow that return types with arguments of type StaticResource
Modifier and Type
Method and Description
Set<StaticResource<?>>
SpincastUndertowServer.getStaticResourcesServed()
protected Map<String,StaticResource<?>>
SpincastUndertowServer.getStaticResourcesServedByUrlPath()
Methods in org.spincast.plugins.undertow with parameters of type StaticResource
Modifier and Type
Method and Description
void
SpincastUndertowServer.addStaticResourceToServe(StaticResource<?> staticResource)
SpincastResourceHandler
SpincastResourceHandlerFactory.create(io.undertow.server.handlers.resource.ResourceManager resourceManager,
StaticResource<?> staticResource)
SpincastResourceHandler
SpincastResourceHandlerFactory.create(io.undertow.server.handlers.resource.ResourceManager resourceManager,
StaticResource<?> staticResource,
io.undertow.server.HttpHandler nextHandler)
Constructors in org.spincast.plugins.undertow with parameters of type StaticResource
Constructor and Description
SpincastResourceHandlerDefault(io.undertow.server.handlers.resource.ResourceManager resourceManager,
StaticResource<?> staticResource,
io.undertow.server.HttpHandler next,
SpincastUtils spincastUtils,
SpincastConfig spincastConfig,
SpincastRoutingUtils spincastRoutingUtils)
SpincastResourceHandlerDefault(io.undertow.server.handlers.resource.ResourceManager resourceManager,
StaticResource<?> staticResource,
SpincastUtils spincastUtils,
SpincastConfig spincastConfig,
SpincastRoutingUtils spincastRoutingUtils)
Copyright © 2019. All rights reserved.