Package | Description |
---|---|
com.spotify.apollo.route |
Modifier and Type | Method and Description |
---|---|
default <V> SyncHandler<V> |
SyncHandler.flatMap(Function<? super T,? extends SyncHandler<? extends V>> mapFunction)
Create a new
SyncHandler that will map the return value of
invoke(RequestContext) through the given map function. |
default <V> SyncHandler<V> |
SyncHandler.map(Function<? super T,? extends V> mapFunction)
Create a new
SyncHandler that will map the return value of
invoke(RequestContext) through the given map function. |
Modifier and Type | Method and Description |
---|---|
static <T> Middleware<SyncHandler<Response<T>>,AsyncHandler<Response<okio.ByteString>>> |
HtmlSerializerMiddlewares.htmlSerializeResponseSync(String templateName)
Sync middleware for a Response object.
|
static <T> Middleware<SyncHandler<T>,AsyncHandler<Response<okio.ByteString>>> |
HtmlSerializerMiddlewares.htmlSerializeSync(String templateName)
Sync middleware for POJO.
|
static <T> Middleware<SyncHandler<Response<T>>,AsyncHandler<Response<okio.ByteString>>> |
JsonSerializerMiddlewares.jsonSerializeResponseSync(com.fasterxml.jackson.databind.ObjectWriter objectWriter) |
static <T> Middleware<SyncHandler<T>,AsyncHandler<Response<okio.ByteString>>> |
JsonSerializerMiddlewares.jsonSerializeSync(com.fasterxml.jackson.databind.ObjectWriter objectWriter) |
Modifier and Type | Method and Description |
---|---|
static <T> Route<AsyncHandler<T>> |
Route.sync(String method,
String uri,
SyncHandler<T> handler) |
static <T> AsyncHandler<T> |
Middleware.syncToAsync(SyncHandler<T> handler) |
Modifier and Type | Method and Description |
---|---|
default <V> SyncHandler<V> |
SyncHandler.flatMap(Function<? super T,? extends SyncHandler<? extends V>> mapFunction)
Create a new
SyncHandler that will map the return value of
invoke(RequestContext) through the given map function. |
default <V> AsyncHandler<V> |
AsyncHandler.flatMapSync(Function<? super T,? extends SyncHandler<? extends V>> mapFunction)
Synchronous version of
AsyncHandler.flatMap(Function) . |
Copyright © 2016. All rights reserved.