Uses of Interface
org.spincast.core.routing.StaticResourceBuilder
-
Uses of StaticResourceBuilder in org.spincast.core.routing
Modifier and TypeMethodDescriptionStaticResourceBuilder.cache
(int seconds) Adds public cache headers.StaticResourceBuilder.cache
(int seconds, boolean isPrivate) Adds cache headers.Adds cache headers.The path to the resource, on the classpath.StaticResourceBuilder.cors()
Enables Cross-Origin Resource Sharing (Cors)Enables Cross-Origin Resource Sharing (Cors)Enables Cross-Origin Resource Sharing (Cors)StaticResourceBuilder.cors
(Set<String> allowedOrigins, Set<String> extraHeadersAllowedToBeRead, Set<String> extraHeadersAllowedToBeSent) Enables Cross-Origin Resource Sharing (Cors)StaticResourceBuilder.cors
(Set<String> allowedOrigins, Set<String> extraHeadersAllowedToBeRead, Set<String> extraHeadersAllowedToBeSent, boolean allowCookies) Enables Cross-Origin Resource Sharing (Cors)StaticResourceBuilder.cors
(Set<String> allowedOrigins, Set<String> extraHeadersAllowedToBeRead, Set<String> extraHeadersAllowedToBeSent, boolean allowCookies, int maxAgeInSeconds) Enables Cross-Origin Resource Sharing (Cors)StaticResourceBuilderFactory.create
(boolean isDir) Creates a static resources builder by specifying if the resource to build is a file or a directory, but without using a router.Creates a static resources builder by specifying if the resource to build is a file or a directory.Start the creation of astatic resource
directory.Start the creation of astatic resource
file.StaticResourceBuilder.hotlinkingProtected()
When a static resource is flagged as being *hotlinking protected*, the server will validate theorigin
andreferer
of the request.StaticResourceBuilder.hotlinkingProtected
(HotlinkingManager hotlinkingManager) When a static resource is flagged as being *hotlinking protected*, the server will validate theorigin
andreferer
of the request.StaticResourceBuilder.pathAbsolute
(String absolutePath) The absolute path to the resource, on the file system.StaticResourceBuilder.pathRelative
(String relativePath) The path to the resource, on the file system, relative to the temp Spincast directory, as returned bySpincastConfig::getSpincastTempDir()
StaticResourceBuilder.spicastOrPluginAddedResource()
This should only by called by *plugins*.The URL pointing to the resource. -
Uses of StaticResourceBuilder in org.spincast.plugins.routing
Modifier and TypeClassDescriptionclass
StaticResourceBuilderDefault<R extends RequestContext<?>,
W extends WebsocketContext<?>> Modifier and TypeMethodDescriptionStaticResourceBuilderDefault.cache
(int seconds) StaticResourceBuilderDefault.cache
(int seconds, boolean isCachePrivate) StaticResourceBuilderDefault.cors()
StaticResourceBuilderDefault.cors
(Set<String> allowedOrigins, Set<String> extraHeadersAllowedToBeRead) StaticResourceBuilderDefault.cors
(Set<String> allowedOrigins, Set<String> extraHeadersAllowedToBeRead, Set<String> extraHeadersAllowedToBeSent) StaticResourceBuilderDefault.cors
(Set<String> allowedOrigins, Set<String> extraHeadersAllowedToBeRead, Set<String> extraHeadersAllowedToBeSent, boolean allowCookies) StaticResourceBuilderDefault.cors
(Set<String> allowedOrigins, Set<String> extraHeadersAllowedToBeRead, Set<String> extraHeadersAllowedToBeSent, boolean allowCookies, int maxAgeInSeconds) StaticResourceBuilderDefault.hotlinkingProtected()
StaticResourceBuilderDefault.hotlinkingProtected
(HotlinkingManager hotlinkingManager) StaticResourceBuilderDefault.pathAbsolute
(String absolutePath) StaticResourceBuilderDefault.pathRelative
(String relativePath) StaticResourceBuilderDefault.spicastOrPluginAddedResource()
Modifier and TypeMethodDescriptionprotected Class<? extends StaticResourceBuilder>
SpincastRoutingPluginModule.getStaticResourceBuilderImplClass()