| Package | Description |
|---|---|
| org.spincast.core.controllers | |
| org.spincast.core.routing | |
| org.spincast.core.websocket | |
| org.spincast.plugins.routing | |
| org.spincast.testing.core.utils |
| Modifier and Type | Method and Description |
|---|---|
protected Handler<R> |
SpincastFrontController.getDefaultNotFoundHandler()
Create the default Not Found handler
|
| Modifier and Type | Method and Description |
|---|---|
Handler<R> |
StaticResource.getGenerator()
The generator to call to generate this resource if it
doesn't exist yet.
|
Handler<R> |
RouteHandlerMatch.getHandler()
The route handler.
|
Handler<R> |
Route.getMainHandler()
The main handler.
|
| Modifier and Type | Method and Description |
|---|---|
List<Handler<R>> |
Route.getAfterFilters()
The "after" filters, if any.
|
List<Handler<R>> |
Route.getBeforeFilters()
The "before" filters, if any.
|
| Modifier and Type | Method and Description |
|---|---|
RouteBuilder<R> |
RouteBuilder.after(Handler<R> afterFilter)
Adds an "after" filter which will only be applied to this particular route.
|
RouteBuilder<R> |
RouteBuilder.before(Handler<R> beforeFilter)
Adds a "before" filter which will only be applied to this particular route.
|
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) |
Route<R> |
RouteBuilder.create(Handler<R> mainHandler)
Creates and returns the route without adding it to
the router.
|
void |
Router.exception(Handler<R> handler)
Creates a route considered during an "Exception" routing process.
|
void |
Router.exception(String path,
Handler<R> handler)
Creates a route considered during an "Exception" routing process.
|
void |
StaticResourceBuilder.handle(Handler<R> generator)
Saves the static resource route.
|
void |
RouteBuilder.handle(Handler<R> mainHandler)
Creates the route and saves it to the router.
|
void |
StaticResourceBuilder.handle(Handler<R> generator,
boolean ignoreQueryString)
Saves the static resource route.
|
void |
Router.notFound(Handler<R> handler)
Creates a route considered during an "Not Found" routing process.
|
void |
Router.notFound(String path,
Handler<R> handler)
Creates a route considered during an "Not Found" routing process.
|
| Modifier and Type | Class and Description |
|---|---|
class |
WebsocketRouteHandler<R extends RequestContext<?>,W extends WebsocketContext<?>>
Route handler that manages the upgrade from
a HTTP request to a WebSocket connection, once the
potential "before" filters have been ran.
|
| Modifier and Type | Method and Description |
|---|---|
Handler<R> |
WebsocketRouteHandlerFactory.createWebsocketRouteHandler(WebsocketRoute<R,W> websocketRoute) |
| Modifier and Type | Method and Description |
|---|---|
List<Handler<R>> |
WebsocketRoute.getBeforeFilters()
The "before" filters, if any.
|
| Modifier and Type | Method and Description |
|---|---|
WebsocketRouteBuilder<R,W> |
WebsocketRouteBuilder.before(Handler<R> beforeFilter)
Adds a before filter.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
DefaultHandler
Default route handler.
|
| Modifier and Type | Method and Description |
|---|---|
Handler<R> |
StaticResourceDefault.getGenerator() |
Handler<R> |
StaticResourceBuilderDefault.getGenerator() |
Handler<R> |
RouteHandlerMatchDefault.getHandler() |
Handler<R> |
RouteDefault.getMainHandler() |
Handler<R> |
RouteBuilderDefault.getMainHandler() |
| Modifier and Type | Method and Description |
|---|---|
List<Handler<R>> |
RouteDefault.getAfterFilters() |
List<Handler<R>> |
RouteBuilderDefault.getAfterFilters() |
List<Handler<R>> |
WebsocketRouteBuilderDefault.getBeforeFilters() |
List<Handler<R>> |
SpincastWebsocketRoute.getBeforeFilters() |
List<Handler<R>> |
RouteDefault.getBeforeFilters() |
List<Handler<R>> |
RouteBuilderDefault.getBeforeFilters() |
protected Class<? extends Handler> |
SpincastRoutingPluginModule.getWebsocketRouteHandlerImplClass() |
| Modifier and Type | Method and Description |
|---|---|
RouteBuilder<R> |
RouteBuilderDefault.after(Handler<R> afterFilter) |
WebsocketRouteBuilder<R,W> |
WebsocketRouteBuilderDefault.before(Handler<R> beforeFilter) |
RouteBuilder<R> |
RouteBuilderDefault.before(Handler<R> beforeFilter) |
Route<R> |
RouteBuilderDefault.create(Handler<R> mainHandler) |
RouteHandlerMatch<R> |
RouteHandlerMatchFactory.create(Route<R> sourceRoute,
Handler<R> routeHandler,
Map<String,String> params,
int position) |
protected RouteHandlerMatch<R> |
SpincastRouter.createHandlerMatchForBeforeOrAfterFilter(RouteHandlerMatch<R> mainRouteHandlerMatch,
Handler<R> beforeOrAfterMethod,
int position)
Creates a new match for a "before" or "after" handler specific
to a route.
|
protected RouteHandlerMatch<R> |
SpincastRouter.createNoMatchingParamsHandlerMatch(Route<R> route,
String id,
Handler<R> handler,
int position)
Creates an handler match with no matching params.
|
Route<R> |
RouteFactory.createRoute(String id,
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) |
void |
SpincastRouter.exception(Handler<R> handler) |
void |
SpincastRouter.exception(String path,
Handler<R> handler) |
void |
StaticResourceBuilderDefault.handle(Handler<R> generator) |
void |
RouteBuilderDefault.handle(Handler<R> mainHandler) |
void |
StaticResourceBuilderDefault.handle(Handler<R> generator,
boolean ignoreQueryString) |
void |
SpincastRouter.notFound(Handler<R> handler) |
void |
SpincastRouter.notFound(String path,
Handler<R> handler) |
| Modifier and Type | Method and Description |
|---|---|
WebsocketRoute<R,W> |
WebsocketRouteFactory.createRoute(boolean isSpicastCoreRouteOrPluginRoute,
String id,
String path,
List<Handler<R>> beforeFilters,
Set<String> filterIdsToSkip,
WebsocketController<R,W> websocketController) |
Route<R> |
RouteFactory.createRoute(String id,
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) |
Route<R> |
RouteFactory.createRoute(String id,
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) |
| Constructor and Description |
|---|
RouteDefault(String id,
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)
Constructor
|
RouteHandlerMatchDefault(Route<R> sourceRoute,
Handler<R> routeHandler,
Map<String,String> params,
int position) |
StaticResourceDefault(boolean isSpicastOrPluginAddedResource,
StaticResourceType staticResourceType,
String urlPath,
String resourcePath,
Handler<R> generator,
StaticResourceCorsConfig corsConfig,
StaticResourceCacheConfig cacheConfig,
boolean ignoreQueryString,
boolean hotlinkingProtected,
HotlinkingManager hotlinkingManager,
SpincastUtils spincastUtils,
HotlinkingManagerDefault hotlinkingManagerDefault) |
| Constructor and Description |
|---|
RouteDefault(String id,
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)
Constructor
|
RouteDefault(String id,
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)
Constructor
|
SpincastWebsocketRoute(boolean spicastCoreRouteOrPluginRoute,
String id,
String path,
List<Handler<R>> beforeFilters,
Set<String> filterIdsToSkip,
WebsocketController<R,W> websocketController)
Constructor
|
| Modifier and Type | Field and Description |
|---|---|
static Handler<DefaultRequestContext> |
SpincastTestingUtils.dummyRouteHandler |
Copyright © 2019. All rights reserved.