Package | Description |
---|---|
com.spotify.apollo | |
com.spotify.apollo.meta | |
com.spotify.apollo.route | |
com.spotify.apollo.test.unit |
Modifier and Type | Method and Description |
---|---|
Environment.RoutingEngine |
Environment.RoutingEngine.registerAutoRoute(Route<? extends AsyncHandler<?>> route)
Registers a
Route . |
Environment.RoutingEngine |
Environment.RoutingEngine.registerRoute(Route<? extends AsyncHandler<? extends Response<okio.ByteString>>> route)
Registers a
Route . |
Modifier and Type | Method and Description |
---|---|
Environment.RoutingEngine |
Environment.RoutingEngine.registerRoutes(Stream<? extends Route<? extends AsyncHandler<? extends Response<okio.ByteString>>>> routes)
Registers routes.
|
Modifier and Type | Method and Description |
---|---|
Stream<Route<? extends AsyncHandler<?>>> |
MetaApplication.routes() |
Modifier and Type | Method and Description |
---|---|
static <T> Route<AsyncHandler<T>> |
Route.async(String method,
String uri,
AsyncHandler<T> handler) |
<K> Route<K> |
Route.copy(String method,
String uri,
K handler,
Route.DocString docString) |
static <H> Route<H> |
Route.create(String method,
String uri,
H handler) |
static <H> Route<H> |
Route.create(String method,
String uri,
H handler,
Route.DocString docString) |
static <T> Route<AsyncHandler<T>> |
Route.future(String method,
String uri,
ListenableFutureHandler<T> handler) |
Route<AsyncHandler<Response<okio.ByteString>>> |
VersionedRoute.route()
Base route that should be mapped to some versions.
|
static <T> Route<AsyncHandler<T>> |
Route.sync(String method,
String uri,
SyncHandler<T> handler) |
static <H,K> Route<K> |
Route.with(Middleware<? super H,? extends K> m,
String method,
String uri,
H handler)
Allows creating routes with middleware and lambdas in a type-inference-proof way.
|
default Route<H> |
Route.withDocString(String summary,
String description) |
default <K> Route<K> |
Route.withHandler(K handler) |
default <K> Route<K> |
Route.withMiddleware(Middleware<? super H,? extends K> middleware) |
default Route<H> |
Route.withPrefix(String prefix) |
Modifier and Type | Method and Description |
---|---|
Stream<Route<AsyncHandler<Response<okio.ByteString>>>> |
Versions.expand(Stream<VersionedRoute> versionedRouteStream) |
Stream<? extends Route<? extends AsyncHandler<?>>> |
RouteProvider.routes() |
Modifier and Type | Method and Description |
---|---|
static VersionedRoute |
VersionedRoute.of(Route<AsyncHandler<Response<okio.ByteString>>> route)
Create a new com.spotify.apollo.route.VersionedRoute, which is valid from version 0.
|
Modifier and Type | Method and Description |
---|---|
static org.hamcrest.Matcher<Route> |
RouteMatchers.hasMethod(String method) |
static org.hamcrest.Matcher<Route> |
RouteMatchers.hasUri(String uri) |
static org.hamcrest.Matcher<Route> |
RouteMatchers.hasUriAndMethod(String method,
String uri)
Build a matcher.
|
Copyright © 2016. All rights reserved.