| Package | Description |
|---|---|
| org.spincast.core.routing | |
| org.spincast.core.server |
| 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) |
| Modifier and Type | Method and Description |
|---|---|
void |
Router.addStaticResource(StaticResource<R> staticResource)
Adds a
static resource route, directly. |
| 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.
|
Copyright © 2018. All rights reserved.