| Package | Description |
|---|---|
| org.spincast.core.controllers | |
| org.spincast.core.routing | |
| org.spincast.core.websocket |
| 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.
|
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.
|
Copyright © 2016. All rights reserved.