Uses of Interface
org.spincast.core.routing.StaticResource
Packages that use StaticResource
Package
Description
-
Uses of StaticResource in org.spincast.core.routing
Methods in org.spincast.core.routing that return StaticResourceModifier 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 theStaticResourceto serve ornullif this is not a route for a static resource (ie ifRoute.isStaticResourceRoute()) doesn't returntrue.Methods in org.spincast.core.routing with parameters of type StaticResourceModifier and TypeMethodDescriptionvoidRouter.addStaticResource(StaticResource<R> staticResource) Adds astatic resourceroute, directly. -
Uses of StaticResource in org.spincast.core.routing.hotlinking
Methods in org.spincast.core.routing.hotlinking with parameters of type StaticResourceModifier 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 booleanHotlinkingManagerDefault.isHostAndRefererValid(Object serverExchange, URI resourceUri, String requestOriginHeader, String requestRefererHeader, StaticResource<?> resource) booleanHotlinkingManager.mustHotlinkingProtect(Object serverExchange, URI resourceUri, String requestOriginHeader, String requestRefererHeader, StaticResource<?> resource) This must returntrueif the current resource has to be hotlinking protected.booleanHotlinkingManagerDefault.mustHotlinkingProtect(Object serverExchange, URI resourceUri, String requestOriginHeader, String requestRefererHeader, StaticResource<?> resource) -
Uses of StaticResource in org.spincast.core.server
Methods in org.spincast.core.server that return StaticResourceModifier and TypeMethodDescriptionServer.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 StaticResourceModifier and TypeMethodDescriptionSet<StaticResource<?>>Server.getStaticResourcesServed()Gets all static resource served directly by the server.Methods in org.spincast.core.server with parameters of type StaticResourceModifier and TypeMethodDescriptionvoidServer.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 StaticResourceModifier and TypeClassDescriptionclassStaticResourceDefault<R extends RequestContext<?>>Represents a static resource.Methods in org.spincast.plugins.routing that return StaticResourceModifier and TypeMethodDescriptionStaticResourceBuilderDefault.create()RouteDefault.getStaticResource()Methods in org.spincast.plugins.routing with parameters of type StaticResourceModifier and TypeMethodDescriptionvoidSpincastRouter.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) Constructors in org.spincast.plugins.routing with parameters of type StaticResourceModifierConstructorDescriptionRouteDefault(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
Methods in org.spincast.plugins.undertow that return StaticResourceModifier and TypeMethodDescriptionprotected StaticResource<?>SpincastResourceHandlerDefault.getStaticResource()SpincastUndertowServer.getStaticResourceServed(String urlPath) Methods in org.spincast.plugins.undertow that return types with arguments of type StaticResourceModifier and TypeMethodDescriptionSet<StaticResource<?>>SpincastUndertowServer.getStaticResourcesServed()protected Map<String,StaticResource<?>> SpincastUndertowServer.getStaticResourcesServedByUrlPath()Methods in org.spincast.plugins.undertow with parameters of type StaticResourceModifier and TypeMethodDescriptionvoidSpincastUndertowServer.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) Constructors in org.spincast.plugins.undertow with parameters of type StaticResourceModifierConstructorDescriptionSpincastResourceHandlerDefault(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)