| Package | Description |
|---|---|
| org.spincast.core.controllers | |
| org.spincast.core.routing | |
| org.spincast.core.websocket |
| 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.
|
Route<R> |
RouteBuilder.create(Handler<R> mainHandler)
Creates and returns the route without adding it to
the router.
|
StaticResource<R> |
StaticResourceFactory.create(StaticResourceType staticResourceType,
String url,
String path,
Handler<R> generator,
StaticResourceCorsConfig corsConfig,
StaticResourceCacheConfig cacheConfig,
boolean ignoreQueryString) |
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 |
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.
|
void |
StaticResourceBuilder.save(Handler<R> generator)
Saves the static resource route.
|
void |
RouteBuilder.save(Handler<R> mainHandler)
Creates the route and saves it to the router.
|
void |
StaticResourceBuilder.save(Handler<R> generator,
boolean ignoreQueryString)
Saves the static resource route.
|
| 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.
|
Copyright © 2017. All rights reserved.