| Package | Description |
|---|---|
| org.spincast.core.routing | |
| org.spincast.plugins.routing |
| Modifier and Type | Method and Description |
|---|---|
Route<R> |
RouteBuilder.create(Handler<R> mainHandler)
Creates and returns the route without adding it to
the router.
|
Route<R> |
Router.getRoute(String routeId)
Gets a route using its
routeId. |
Route<R> |
RouteHandlerMatch.getSourceRoute()
The route associated with this match.
|
| Modifier and Type | Method and Description |
|---|---|
List<Route<R>> |
Router.getGlobalAfterFiltersRoutes()
Gets the global "after" filters.
|
List<Route<R>> |
Router.getGlobalBeforeFiltersRoutes()
Gets the global "before" filters.
|
List<Route<R>> |
Router.getMainRoutes()
Gets the main routes.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Router.addRoute(Route<R> route)
Adds a route, directly.
|
| Modifier and Type | Class and Description |
|---|---|
class |
RouteDefault<R extends RequestContext<?>> |
| Modifier and Type | Method and Description |
|---|---|
Route<R> |
RouteBuilderDefault.create(Handler<R> mainHandler) |
protected Route<R> |
SpincastRouter.createHttpRouteFromWebsocketRoute(WebsocketRoute<R,W> websocketRoute) |
Route<R> |
RouteFactory.createRoute(String id,
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) |
Route<R> |
SpincastRouter.getRoute(String routeId) |
Route<R> |
RouteHandlerMatchDefault.getSourceRoute() |
| Modifier and Type | Method and Description |
|---|---|
protected Map<Integer,List<Route<R>>> |
SpincastRouter.getGlobalAfterFiltersPerPosition() |
List<Route<R>> |
SpincastRouter.getGlobalAfterFiltersRoutes() |
protected Map<Integer,List<Route<R>>> |
SpincastRouter.getGlobalBeforeFiltersPerPosition() |
List<Route<R>> |
SpincastRouter.getGlobalBeforeFiltersRoutes() |
List<Route<R>> |
SpincastRouter.getMainRoutes() |
| Modifier and Type | Method and Description |
|---|---|
void |
SpincastRouter.addRoute(Route<R> route) |
RouteHandlerMatch<R> |
RouteHandlerMatchFactory.create(Route<R> sourceRoute,
Handler<R> routeHandler,
Map<String,String> params,
int position) |
protected RouteHandlerMatch<R> |
SpincastRouter.createNoMatchingParamsHandlerMatch(Route<R> route,
String id,
Handler<R> handler,
int position)
Creates an handler match with no matching params.
|
protected List<RouteHandlerMatch<R>> |
SpincastRouter.createRegularHandlerMatches(RoutingType routingType,
Route<R> route,
HttpMethod httpMethod,
List<String> acceptedContentTypes,
URL url,
int position)
Get the matches (filters and main handle) if the route matches the URL and
HTTP method, or returns NULL otherwise.
|
protected boolean |
SpincastRouter.isRouteMatchAcceptedContentType(Route<R> route,
List<String> requestContentTypes) |
protected boolean |
SpincastRouter.isRouteMatchHttpMethod(Route<R> route,
HttpMethod httpMethod)
Validate if a route matches the given HTTP method.
|
protected boolean |
SpincastRouter.isRoutingTypeMatch(RoutingType routingType,
Route<R> route) |
| Constructor and Description |
|---|
RouteHandlerMatchDefault(Route<R> sourceRoute,
Handler<R> routeHandler,
Map<String,String> params,
int position) |
Copyright © 2018. All rights reserved.