| 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> |
Route.getRoutingTypes()
The
routing types the route should be considered for. |
| Modifier and Type | Method and Description |
|---|---|
RoutingResult<R> |
Router.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> |
SpincastRouterConfig.getFilterDefaultRoutingTypes()
The routing types to apply a filter (none "0" position)
when none is explicitly specified.
|
Set<RoutingType> |
RouteDefault.getRoutingTypes() |
Set<RoutingType> |
RouteBuilderDefault.getRoutingTypes() |
| Modifier and Type | Method and Description |
|---|---|
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.isRoutingTypeMatch(RoutingType routingType,
Route<R> route) |
RoutingResult<R> |
SpincastRouter.route(R requestContext,
RoutingType routingType) |
RoutingResult<R> |
SpincastRouter.route(R requestContext,
String fullUrl,
RoutingType routingType) |
| Modifier and Type | Method and Description |
|---|---|
Route<R> |
RouteFactory.createRoute(String id,
boolean isWebsocketRoute,
boolean isResourceRoute,
StaticResource<R> staticResource,
boolean isSpicastCoreRouteOrPluginRoute,
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,
boolean skipResources,
Object specs,
Object[] specsParameters,
boolean specsIgnore) |
| Constructor and Description |
|---|
RouteDefault(String id,
boolean isWebsocketRoute,
boolean isResourceRoute,
StaticResource<R> staticResource,
boolean spicastCoreRouteOrPluginRoute,
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,
boolean skipResources,
Object specs,
Object[] specsParameters,
boolean specsIgnore)
Constructor
|
Copyright © 2019. All rights reserved.