public class RouteDefault<R extends RequestContext<?>> extends Object implements Route<R>
| Constructor and Description |
|---|
RouteDefault(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)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getAcceptedContentTypes()
The
Content-Types this route
accepts (names all lowercased). |
List<Handler<R>> |
getAfterFilters()
The "after" filters, if any.
|
List<Handler<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.
|
Handler<R> |
getMainHandler()
The main handler.
|
String |
getPath()
The route path.
|
int |
getPosition()
The position 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 RouteDefault(@Nullable String id, Set<HttpMethod> httpMethods, String path, Set<RoutingType> routingTypes, @Nullable List<Handler<R>> beforeFilters, Handler<R> mainHandler, @Nullable List<Handler<R>> afterFilters, int position, @Nullable Set<String> acceptedContentTypes, @Nullable Set<String> filterIdsToSkip)
public Set<HttpMethod> getHttpMethods()
RouteHTTP methods this route applies to.getHttpMethods in interface Route<R extends RequestContext<?>>public Set<String> getAcceptedContentTypes()
RouteContent-Types this route
accepts (names all lowercased).getAcceptedContentTypes in interface Route<R extends RequestContext<?>>public String getId()
RoutegetId in interface Route<R extends RequestContext<?>>public String getPath()
RoutegetPath in interface Route<R extends RequestContext<?>>public Set<RoutingType> getRoutingTypes()
Routerouting types the route should be considered for.getRoutingTypes in interface Route<R extends RequestContext<?>>public List<Handler<R>> getBeforeFilters()
RoutegetBeforeFilters in interface Route<R extends RequestContext<?>>public Handler<R> getMainHandler()
RoutegetMainHandler in interface Route<R extends RequestContext<?>>public List<Handler<R>> getAfterFilters()
RoutegetAfterFilters in interface Route<R extends RequestContext<?>>public int getPosition()
RoutegetPosition in interface Route<R extends RequestContext<?>>public Set<String> getFilterIdsToSkip()
RoutegetFilterIdsToSkip in interface Route<R extends RequestContext<?>>Copyright © 2017. All rights reserved.