public interface Router
Modifier and Type | Interface and Description |
---|---|
static interface |
Router.Match |
Modifier and Type | Field and Description |
---|---|
static String |
CONNECT |
static String |
DELETE |
static String |
GET
HTTP Methods:
|
static String |
HEAD |
static List<String> |
METHODS
HTTP Methods:
|
static String |
OPTIONS |
static String |
PATCH |
static String |
POST |
static String |
PUT |
static String |
TRACE |
static final String GET
static final String POST
static final String PUT
static final String DELETE
static final String PATCH
static final String HEAD
static final String CONNECT
static final String OPTIONS
static final String TRACE
@Nonnull AttributeMap getAttributes()
@Nonnull Router decorator(@Nonnull Route.Decorator decorator)
@Nonnull Router before(@Nonnull Route.Before before)
@Nonnull Router after(@Nonnull Route.After after)
@Nonnull Route route(@Nonnull String method, @Nonnull String pattern, @Nonnull Route.Handler handler)
@Nonnull Router.Match match(@Nonnull Context ctx)
404
handler.
See Route.NOT_FOUND
.ctx
- Web Context.@Nonnull Router errorCode(@Nonnull Class<? extends Throwable> type, @Nonnull StatusCode statusCode)
@Nonnull StatusCode errorCode(@Nonnull Throwable cause)
@Nonnull default Router error(@Nonnull StatusCode statusCode, @Nonnull ErrorHandler handler)
@Nonnull default Router error(@Nonnull Class<? extends Throwable> type, @Nonnull ErrorHandler handler)
@Nonnull default Router error(@Nonnull Predicate<StatusCode> predicate, @Nonnull ErrorHandler handler)
@Nonnull Router error(@Nonnull ErrorHandler handler)
@Nonnull ErrorHandler getErrorHandler()
@Nonnull org.slf4j.Logger getLog()
@Nonnull Router responseHandler(ResponseHandler factory)
@Nonnull static String normalizePath(@Nonnull String path, boolean caseSensitive, boolean ignoreTrailingSlash)
Copyright © 2019. All rights reserved.