public class SpincastRoute<R extends IRequestContext<?>> extends Object implements IRoute<R>
| 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,
Set<String> filterIdsToSkip)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getAcceptedContentTypes()
The
Content-Types this route
accepts (names all lowercased). |
List<IHandler<R>> |
getAfterFilters()
The "after" filters, if any.
|
List<IHandler<R>> |
getBeforeFilters()
The "before" filters, if any.
|
Set<String> |
getFilterIdsToSkip()
The ids of the filters that should be skipped for this
route.
|
Set<HttpMethod> |
getHttpMethods()
The
HTTP methods this route applies to. |
String |
getId()
The route id.
|
IHandler<R> |
getMainHandler()
The main handler.
|
String |
getPath()
The route path.
|
List<Integer> |
getPositions()
The positions at which this route should be run during a
routing process.
|
Set<RoutingType> |
getRoutingTypes()
The
routing types the route should be considered for. |
String |
toString() |
public SpincastRoute(@Nullable String id, Set<HttpMethod> httpMethods, String path, Set<RoutingType> routingTypes, @Nullable List<IHandler<R>> beforeFilters, IHandler<R> mainHandler, @Nullable List<IHandler<R>> afterFilters, Set<Integer> positions, @Nullable Set<String> acceptedContentTypes, @Nullable Set<String> filterIdsToSkip)
public Set<HttpMethod> getHttpMethods()
IRouteHTTP methods this route applies to.getHttpMethods in interface IRoute<R extends IRequestContext<?>>public Set<String> getAcceptedContentTypes()
IRouteContent-Types this route
accepts (names all lowercased).getAcceptedContentTypes in interface IRoute<R extends IRequestContext<?>>public String getId()
IRoutegetId in interface IRoute<R extends IRequestContext<?>>public String getPath()
IRoutegetPath in interface IRoute<R extends IRequestContext<?>>public Set<RoutingType> getRoutingTypes()
IRouterouting types the route should be considered for.getRoutingTypes in interface IRoute<R extends IRequestContext<?>>public List<IHandler<R>> getBeforeFilters()
IRoutegetBeforeFilters in interface IRoute<R extends IRequestContext<?>>public IHandler<R> getMainHandler()
IRoutegetMainHandler in interface IRoute<R extends IRequestContext<?>>public List<IHandler<R>> getAfterFilters()
IRoutegetAfterFilters in interface IRoute<R extends IRequestContext<?>>public List<Integer> getPositions()
IRoutegetPositions in interface IRoute<R extends IRequestContext<?>>public Set<String> getFilterIdsToSkip()
IRoutegetFilterIdsToSkip in interface IRoute<R extends IRequestContext<?>>Copyright © 2016. All rights reserved.