| Package | Description |
|---|---|
| org.spincast.core.routing | |
| org.spincast.core.routing.hotlinking | |
| org.spincast.core.server | |
| org.spincast.plugins.routing | |
| org.spincast.plugins.undertow |
| 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. |
| Modifier and Type | Method and Description |
|---|---|
void |
Router.addStaticResource(StaticResource<R> staticResource)
Adds a
static resource route, directly. |
| 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. |
| Modifier and Type | Method and Description |
|---|---|
StaticResource<?> |
Server.getStaticResourceServed(String urlPath)
Gets a static resource served directly by the server, using its path.
|
| Modifier and Type | Method and Description |
|---|---|
Set<StaticResource<?>> |
Server.getStaticResourcesServed()
Gets all static resource served directly by the server.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Server.addStaticResourceToServe(StaticResource<?> staticResource)
Adds a static resource to serve directly by the server.
|
| Modifier and Type | Class and Description |
|---|---|
class |
StaticResourceDefault<R extends RequestContext<?>>
Represents a static resource.
|
| Modifier and Type | Method and Description |
|---|---|
StaticResource<R> |
StaticResourceBuilderDefault.create() |
StaticResource<R> |
RouteDefault.getStaticResource() |
| Modifier and Type | Method and Description |
|---|---|
void |
SpincastRouter.addStaticResource(StaticResource<R> staticResource) |
Route<R> |
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) |
| Constructor and Description |
|---|
RouteDefault(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)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected StaticResource<?> |
SpincastResourceHandlerDefault.getStaticResource() |
StaticResource<?> |
SpincastUndertowServer.getStaticResourceServed(String urlPath) |
| Modifier and Type | Method and Description |
|---|---|
Set<StaticResource<?>> |
SpincastUndertowServer.getStaticResourcesServed() |
protected Map<String,StaticResource<?>> |
SpincastUndertowServer.getStaticResourcesServedByUrlPath() |
| 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) |
| 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.