-
- All Implemented Interfaces:
public final class Route.Builder
-
-
Constructor Summary
Constructors Constructor Description Route.Builder()
-
Method Summary
Modifier and Type Method Description final Route.Builderinterceptors(Interceptor interceptor)final Route.Builderattach(Route route)final Route.Builderany(String path, Function1<OAuth2HttpRequest, OAuth2HttpResponse> requestHandler)final Route.Builderoptions(Function1<OAuth2HttpRequest, OAuth2HttpResponse> requestHandler)final Route.Builderget(String path, Function1<OAuth2HttpRequest, OAuth2HttpResponse> requestHandler)final Route.Builderpost(String path, Function1<OAuth2HttpRequest, OAuth2HttpResponse> requestHandler)final Route.Builderput(String path, Function1<OAuth2HttpRequest, OAuth2HttpResponse> requestHandler)final Route.BuilderexceptionHandler(Function2<OAuth2HttpRequest, Throwable, OAuth2HttpResponse> exceptionHandler)final Routebuild()-
-
Method Detail
-
interceptors
final Route.Builder interceptors(Interceptor interceptor)
-
attach
final Route.Builder attach(Route route)
-
any
final Route.Builder any(String path, Function1<OAuth2HttpRequest, OAuth2HttpResponse> requestHandler)
-
options
final Route.Builder options(Function1<OAuth2HttpRequest, OAuth2HttpResponse> requestHandler)
-
get
final Route.Builder get(String path, Function1<OAuth2HttpRequest, OAuth2HttpResponse> requestHandler)
-
post
final Route.Builder post(String path, Function1<OAuth2HttpRequest, OAuth2HttpResponse> requestHandler)
-
put
final Route.Builder put(String path, Function1<OAuth2HttpRequest, OAuth2HttpResponse> requestHandler)
-
exceptionHandler
final Route.Builder exceptionHandler(Function2<OAuth2HttpRequest, Throwable, OAuth2HttpResponse> exceptionHandler)
-
-
-
-