| Package | Description |
|---|---|
| org.spincast.core.routing | |
| org.spincast.plugins.routing |
| Modifier and Type | Method and Description |
|---|---|
IRoute<R> |
IRouteBuilder.create(IHandler<R> mainHandler)
Creates and returns the route without adding it to
the router.
|
IRoute<R> |
IRouter.getRoute(String routeId)
Gets a route using its
routeId. |
IRoute<R> |
IRouteHandlerMatch.getSourceRoute()
The route associated with this match.
|
| Modifier and Type | Method and Description |
|---|---|
List<IRoute<R>> |
IRouter.getGlobalAfterFiltersRoutes()
Gets the global "after" filters.
|
List<IRoute<R>> |
IRouter.getGlobalBeforeFiltersRoutes()
Gets the global "before" filters.
|
List<IRoute<R>> |
IRouter.getMainRoutes()
Gets the main routes.
|
| Modifier and Type | Method and Description |
|---|---|
void |
IRouter.addRoute(IRoute<R> route)
Adds a route, directly.
|
| Modifier and Type | Class and Description |
|---|---|
class |
SpincastRoute<R extends IRequestContext<?>> |
| Modifier and Type | Method and Description |
|---|---|
IRoute<R> |
RouteBuilder.create(IHandler<R> mainHandler) |
protected IRoute<R> |
SpincastRouter.createHttpRouteFromWebsocketRoute(IWebsocketRoute<R,W> websocketRoute) |
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> acceptedContentTypes,
Set<String> filterIdsToSkip) |
IRoute<R> |
SpincastRouter.getRoute(String routeId) |
IRoute<R> |
RouteHandlerMatch.getSourceRoute() |
| Modifier and Type | Method and Description |
|---|---|
protected Map<Integer,List<IRoute<R>>> |
SpincastRouter.getGlobalAfterFiltersPerPosition() |
List<IRoute<R>> |
SpincastRouter.getGlobalAfterFiltersRoutes() |
protected Map<Integer,List<IRoute<R>>> |
SpincastRouter.getGlobalBeforeFiltersPerPosition() |
List<IRoute<R>> |
SpincastRouter.getGlobalBeforeFiltersRoutes() |
List<IRoute<R>> |
SpincastRouter.getMainRoutes() |
| Modifier and Type | Method and Description |
|---|---|
void |
SpincastRouter.addRoute(IRoute<R> route) |
IRouteHandlerMatch<R> |
IRouteHandlerMatchFactory.create(IRoute<R> sourceRoute,
IHandler<R> routeHandler,
Map<String,String> params,
int position) |
protected IRouteHandlerMatch<R> |
SpincastRouter.createNoMatchingParamsHandlerMatch(IRoute<R> route,
String id,
IHandler<R> handler,
int position)
Creates an handler match with no matching params.
|
protected List<IRouteHandlerMatch<R>> |
SpincastRouter.createRegularHandlerMatches(RoutingType routingType,
IRoute<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(IRoute<R> route,
List<String> requestContentTypes) |
protected boolean |
SpincastRouter.isRouteMatchHttpMethod(IRoute<R> route,
HttpMethod httpMethod)
Validate if a route matches the given HTTP method.
|
protected boolean |
SpincastRouter.isRoutingTypeMatch(RoutingType routingType,
IRoute<R> route) |
| Constructor and Description |
|---|
RouteHandlerMatch(IRoute<R> sourceRoute,
IHandler<R> routeHandler,
Map<String,String> params,
int position) |
Copyright © 2016. All rights reserved.