Uses of Interface
org.spincast.core.routing.StaticResource
Package
Description
-
Uses of StaticResource in org.spincast.core.routing
Modifier and TypeMethodDescriptionStaticResourceBuilder.create()
Creates and returns the static resource without adding it to the router.StaticResourceFactory.create
(boolean isSpicastOrPluginAddedResource, StaticResourceType staticResourceType, String url, String path, Handler<R> generator, StaticResourceCorsConfig corsConfig, StaticResourceCacheConfig cacheConfig, boolean ignoreQueryString, boolean hotlinkingProtected, HotlinkingManager hotlinkingManager) Route.getStaticResource()
Returns theStaticResource
to serve ornull
if this is not a route for a static resource (ie ifRoute.isStaticResourceRoute()
) doesn't returntrue
.Modifier and TypeMethodDescriptionvoid
Router.addStaticResource
(StaticResource<R> staticResource) Adds astatic resource
route, directly. -
Uses of StaticResource in org.spincast.core.routing.hotlinking
Modifier and TypeMethodDescriptionHotlinkingManager.getHotlinkingStategy
(Object serverExchange, URI resourceURI, StaticResource<?> resource) The strategy to use to protect the hotlinked resource.HotlinkingManagerDefault.getHotlinkingStategy
(Object serverExchange, URI resourceURI, StaticResource<?> resource) HotlinkingManager.getRedirectUrl
(Object serverExchange, URI resourceURI, StaticResource<?> resource) The URL to redirect the protected resource when theHotlinkingManager.getHotlinkingStategy(Object, URI, StaticResource)
returnsHotlinkingStategy.REDIRECT
.HotlinkingManagerDefault.getRedirectUrl
(Object serverExchange, URI resourceURI, StaticResource<?> resource) protected boolean
HotlinkingManagerDefault.isHostAndRefererValid
(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 returntrue
if the current resource has to be hotlinking protected.boolean
HotlinkingManagerDefault.mustHotlinkingProtect
(Object serverExchange, URI resourceUri, String requestOriginHeader, String requestRefererHeader, StaticResource<?> resource) -
Uses of StaticResource in org.spincast.core.server
Modifier and TypeMethodDescriptionServer.getStaticResourceServed
(String urlPath) Gets a static resource served directly by the server, using its path.Modifier and TypeMethodDescriptionSet<StaticResource<?>>
Server.getStaticResourcesServed()
Gets all static resource served directly by the server.Modifier and TypeMethodDescriptionvoid
Server.addStaticResourceToServe
(StaticResource<?> staticResource) Adds a static resource to serve directly by the server. -
Uses of StaticResource in org.spincast.plugins.routing
Modifier and TypeClassDescriptionclass
StaticResourceDefault<R extends RequestContext<?>>
Represents a static resource.Modifier and TypeMethodDescriptionStaticResourceBuilderDefault.create()
RouteDefault.getStaticResource()
Modifier and TypeMethodDescriptionvoid
SpincastRouter.addStaticResource
(StaticResource<R> staticResource) RouteFactory.createRoute
(String id, boolean isWebsocketRoute, 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, Object specs, Object[] specsParameters, boolean specsIgnore, Set<String> classes) ModifierConstructorDescriptionRouteDefault
(String id, boolean isWebsocketRoute, 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, Object specs, Object[] specsParameters, boolean specsIgnore, Set<String> classes) Constructor -
Uses of StaticResource in org.spincast.plugins.undertow
Modifier and TypeMethodDescriptionprotected StaticResource<?>
SpincastResourceHandlerDefault.getStaticResource()
SpincastUndertowServer.getStaticResourceServed
(String urlPath) Modifier and TypeMethodDescriptionSet<StaticResource<?>>
SpincastUndertowServer.getStaticResourcesServed()
protected Map<String,
StaticResource<?>> SpincastUndertowServer.getStaticResourcesServedByUrlPath()
Modifier and TypeMethodDescriptionvoid
SpincastUndertowServer.addStaticResourceToServe
(StaticResource<?> staticResource) SpincastResourceHandlerFactory.create
(io.undertow.server.handlers.resource.ResourceManager resourceManager, StaticResource<?> staticResource) SpincastResourceHandlerFactory.create
(io.undertow.server.handlers.resource.ResourceManager resourceManager, StaticResource<?> staticResource, io.undertow.server.HttpHandler nextHandler) ModifierConstructorDescriptionSpincastResourceHandlerDefault
(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)