| Package | Description |
|---|---|
| org.spincast.core.routing | |
| org.spincast.plugins.routing |
| Modifier and Type | Method and Description |
|---|---|
static RoutingType |
RoutingType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RoutingType[] |
RoutingType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
Set<RoutingType> |
IRoute.getRoutingTypes()
The
routing types the route should be considered for. |
| Modifier and Type | Method and Description |
|---|---|
IRoutingResult<R> |
IRouter.route(R requestContext,
RoutingType routingType)
Find the route to use to handle the current request, given the
specified routing type.
|
| Modifier and Type | Method and Description |
|---|---|
Set<RoutingType> |
SpincastRouterConfigDefault.getFilterDefaultRoutingTypes() |
Set<RoutingType> |
ISpincastRouterConfig.getFilterDefaultRoutingTypes()
The routing types to apply a filter to when none is
explicitly specified.
|
Set<RoutingType> |
SpincastRoute.getRoutingTypes() |
Set<RoutingType> |
RouteBuilder.getRoutingTypes() |
| Modifier and Type | Method and Description |
|---|---|
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.isRoutingTypeMatch(RoutingType routingType,
IRoute<R> route) |
IRoutingResult<R> |
SpincastRouter.route(R requestContext,
RoutingType routingType) |
IRoutingResult<R> |
SpincastRouter.route(R requestContext,
String fullUrl,
RoutingType routingType) |
| 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) |
| 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
|
Copyright © 2016. All rights reserved.