| 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 IHandler<R> |
SpincastFrontController.getDefaultNotFoundHandler()
Create the default Not Found handler
|
| Modifier and Type | Method and Description |
|---|---|
IHandler<R> |
IStaticResource.getGenerator()
The generator to call to generate this resource if it
doesn't exist yet.
|
IHandler<R> |
IRouteHandlerMatch.getHandler()
The route handler.
|
IHandler<R> |
IRoute.getMainHandler()
The main handler.
|
| Modifier and Type | Method and Description |
|---|---|
List<IHandler<R>> |
IRoute.getAfterFilters()
The "after" filters, if any.
|
List<IHandler<R>> |
IRoute.getBeforeFilters()
The "before" filters, if any.
|
| Modifier and Type | Method and Description |
|---|---|
void |
IRouter.after(IHandler<R> handler)
Creates an "after" filter.
|
IRouteBuilder<R> |
IRouteBuilder.after(IHandler<R> afterFilter)
Adds an "after" filter which will only be applied to this particular route.
|
void |
IRouter.after(String path,
IHandler<R> handler)
Creates an "after" filter.
|
void |
IRouter.before(IHandler<R> handler)
Creates a "before" filter.
|
IRouteBuilder<R> |
IRouteBuilder.before(IHandler<R> beforeFilter)
Adds a "before" filter which will only be applied to this particular route.
|
void |
IRouter.before(String path,
IHandler<R> handler)
Creates a "before" filter.
|
void |
IRouter.beforeAndAfter(IHandler<R> handler)
Creates a "before" and an "after" filters.
|
void |
IRouter.beforeAndAfter(String path,
IHandler<R> handler)
Creates a "before" and an "after" filters.
|
IRoute<R> |
IRouteBuilder.create(IHandler<R> mainHandler)
Creates and returns the route without adding it to
the router.
|
IStaticResource<R> |
IStaticResourceFactory.create(StaticResourceType staticResourceType,
String url,
String path,
IHandler<R> generator,
IStaticResourceCorsConfig corsConfig,
IStaticResourceCacheConfig cacheConfig) |
void |
IRouter.exception(IHandler<R> handler)
Creates a route considered during an "Exception" routing process.
|
void |
IRouter.exception(String path,
IHandler<R> handler)
Creates a route considered during an "Exception" routing process.
|
void |
IRouter.notFound(IHandler<R> handler)
Creates a route considered during an "Not Found" routing process.
|
void |
IRouter.notFound(String path,
IHandler<R> handler)
Creates a route considered during an "Not Found" routing process.
|
void |
IStaticResourceBuilder.save(IHandler<R> generator)
Saves the static resource route.
|
void |
IRouteBuilder.save(IHandler<R> mainHandler)
Creates the route and saves it to the router.
|
| Modifier and Type | Class and Description |
|---|---|
class |
WebsocketRouteHandler<R extends IRequestContext<?>,W extends IWebsocketContext<?>>
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 |
|---|---|
IHandler<R> |
IWebsocketRouteHandlerFactory.createWebsocketRouteHandler(IWebsocketRoute<R,W> websocketRoute) |
| Modifier and Type | Method and Description |
|---|---|
List<IHandler<R>> |
IWebsocketRoute.getBeforeFilters()
The "before" filters, if any.
|
| Modifier and Type | Method and Description |
|---|---|
IWebsocketRouteBuilder<R,W> |
IWebsocketRouteBuilder.before(IHandler<R> beforeFilter)
Adds a before filter.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
IDefaultHandler
Default route handler.
|
| Modifier and Type | Method and Description |
|---|---|
IHandler<R> |
StaticResourceBuilder.getGenerator() |
IHandler<R> |
StaticResource.getGenerator() |
IHandler<R> |
RouteHandlerMatch.getHandler() |
IHandler<R> |
SpincastRoute.getMainHandler() |
IHandler<R> |
RouteBuilder.getMainHandler() |
| Modifier and Type | Method and Description |
|---|---|
List<IHandler<R>> |
SpincastRoute.getAfterFilters() |
List<IHandler<R>> |
RouteBuilder.getAfterFilters() |
List<IHandler<R>> |
WebsocketRouteBuilder.getBeforeFilters() |
List<IHandler<R>> |
SpincastWebsocketRoute.getBeforeFilters() |
List<IHandler<R>> |
SpincastRoute.getBeforeFilters() |
List<IHandler<R>> |
RouteBuilder.getBeforeFilters() |
protected Class<? extends IHandler> |
SpincastRoutingPluginGuiceModule.getWebsocketRouteHandlerImplClass() |
| Modifier and Type | Method and Description |
|---|---|
void |
SpincastRouter.after(IHandler<R> handler) |
IRouteBuilder<R> |
RouteBuilder.after(IHandler<R> afterFilter) |
void |
SpincastRouter.after(String path,
IHandler<R> handler) |
IWebsocketRouteBuilder<R,W> |
WebsocketRouteBuilder.before(IHandler<R> beforeFilter) |
void |
SpincastRouter.before(IHandler<R> handler) |
IRouteBuilder<R> |
RouteBuilder.before(IHandler<R> beforeFilter) |
void |
SpincastRouter.before(String path,
IHandler<R> handler) |
void |
SpincastRouter.beforeAndAfter(IHandler<R> handler) |
void |
SpincastRouter.beforeAndAfter(String path,
IHandler<R> handler) |
IRoute<R> |
RouteBuilder.create(IHandler<R> mainHandler) |
IRouteHandlerMatch<R> |
IRouteHandlerMatchFactory.create(IRoute<R> sourceRoute,
IHandler<R> routeHandler,
Map<String,String> params,
int position) |
protected IRouteHandlerMatch<R> |
SpincastRouter.createHandlerMatchForBeforeOrAfterFilter(IRouteHandlerMatch<R> mainRouteHandlerMatch,
IHandler<R> beforeOrAfterMethod,
int position)
Creates a new match for a "before" or "after" handler specific
to a route.
|
protected IRouteHandlerMatch<R> |
SpincastRouter.createNoMatchingParamsHandlerMatch(IRoute<R> route,
String id,
IHandler<R> handler,
int position)
Creates an handler match with no matching params.
|
IRoute<R> |
IRouteFactory.createRoute(String id,
Set<HttpMethod> httpMethods,
String path,
Set<RoutingType> routingTypes,
List<IHandler<R>> beforeFilters,
IHandler<R> mainHandler,
List<IHandler<R>> afterFilters,
Set<Integer> positions,
Set<String> acceptedContextTypes) |
void |
SpincastRouter.exception(IHandler<R> handler) |
void |
SpincastRouter.exception(String path,
IHandler<R> handler) |
void |
SpincastRouter.notFound(IHandler<R> handler) |
void |
SpincastRouter.notFound(String path,
IHandler<R> handler) |
void |
StaticResourceBuilder.save(IHandler<R> generator) |
void |
RouteBuilder.save(IHandler<R> mainHandler) |
| Modifier and Type | Method and Description |
|---|---|
IRoute<R> |
IRouteFactory.createRoute(String id,
Set<HttpMethod> httpMethods,
String path,
Set<RoutingType> routingTypes,
List<IHandler<R>> beforeFilters,
IHandler<R> mainHandler,
List<IHandler<R>> afterFilters,
Set<Integer> positions,
Set<String> acceptedContextTypes) |
IRoute<R> |
IRouteFactory.createRoute(String id,
Set<HttpMethod> httpMethods,
String path,
Set<RoutingType> routingTypes,
List<IHandler<R>> beforeFilters,
IHandler<R> mainHandler,
List<IHandler<R>> afterFilters,
Set<Integer> positions,
Set<String> acceptedContextTypes) |
IWebsocketRoute<R,W> |
IWebsocketRouteFactory.createRoute(String id,
String path,
List<IHandler<R>> beforeFilters,
IWebsocketController<R,W> websocketController) |
| Constructor and Description |
|---|
RouteHandlerMatch(IRoute<R> sourceRoute,
IHandler<R> routeHandler,
Map<String,String> params,
int position) |
SpincastRoute(String id,
Set<HttpMethod> httpMethods,
String path,
Set<RoutingType> routingTypes,
List<IHandler<R>> beforeFilters,
IHandler<R> mainHandler,
List<IHandler<R>> afterFilters,
Set<Integer> positions,
Set<String> acceptedContentTypes)
Constructor
|
StaticResource(StaticResourceType staticResourceType,
String urlPath,
String resourcePath,
IHandler<R> generator,
IStaticResourceCorsConfig corsConfig,
IStaticResourceCacheConfig cacheConfig) |
| Constructor and Description |
|---|
SpincastRoute(String id,
Set<HttpMethod> httpMethods,
String path,
Set<RoutingType> routingTypes,
List<IHandler<R>> beforeFilters,
IHandler<R> mainHandler,
List<IHandler<R>> afterFilters,
Set<Integer> positions,
Set<String> acceptedContentTypes)
Constructor
|
SpincastRoute(String id,
Set<HttpMethod> httpMethods,
String path,
Set<RoutingType> routingTypes,
List<IHandler<R>> beforeFilters,
IHandler<R> mainHandler,
List<IHandler<R>> afterFilters,
Set<Integer> positions,
Set<String> acceptedContentTypes)
Constructor
|
SpincastWebsocketRoute(String id,
String path,
List<IHandler<R>> beforeFilters,
IWebsocketController<R,W> websocketController)
Constructor
|
| Modifier and Type | Field and Description |
|---|---|
static IHandler<IDefaultRequestContext> |
SpincastTestUtils.dummyRouteHandler |
Copyright © 2016. All rights reserved.