public class Route extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
Route.After |
static interface |
Route.Aware |
static interface |
Route.Before |
static interface |
Route.Decorator |
static interface |
Route.Handler |
Modifier and Type | Field and Description |
---|---|
static Route.Handler |
FAVICON |
static Route.Handler |
METHOD_NOT_ALLOWED |
static Route.Handler |
NOT_FOUND |
Constructor and Description |
---|
Route(String method,
String pattern,
List<String> pathKeys,
Type returnType,
Route.Handler handler,
Route.Handler pipeline,
Renderer renderer,
Map<String,Parser> parsers) |
Route(String method,
String pattern,
Type returnType,
Route.Handler handler,
Route.Handler pipeline,
Renderer renderer,
Map<String,Parser> parsers) |
Modifier and Type | Method and Description |
---|---|
Object |
handle() |
Route.Handler |
handler() |
String |
method() |
Parser |
parser(MediaType contentType) |
List<String> |
pathKeys() |
String |
pattern() |
Route.Handler |
pipeline() |
Route |
pipeline(Route.Handler pipeline) |
Renderer |
renderer() |
Type |
returnType() |
Route |
returnType(Type returnType) |
String |
toString() |
public static final Route.Handler NOT_FOUND
public static final Route.Handler METHOD_NOT_ALLOWED
public static final Route.Handler FAVICON
public Route(@Nonnull String method, @Nonnull String pattern, @Nonnull List<String> pathKeys, @Nonnull Type returnType, @Nonnull Route.Handler handler, @Nonnull Route.Handler pipeline, @Nonnull Renderer renderer, @Nonnull Map<String,Parser> parsers)
@Nonnull public Route.Handler handler()
@Nonnull public Route.Handler pipeline()
public Object handle()
@Nonnull public Route pipeline(Route.Handler pipeline)
Copyright © 2019. All rights reserved.