public class JsonSerializerMiddlewares extends Object
Modifier and Type | Method and Description |
---|---|
static <T> Middleware<AsyncHandler<T>,AsyncHandler<Response<okio.ByteString>>> |
jsonSerialize(com.fasterxml.jackson.databind.ObjectWriter objectWriter)
Middleware that serializes the result of the inner handler using the supplied
ObjectWriter , and sets the Content-Type header to application/json. |
static <T> Middleware<AsyncHandler<Response<T>>,AsyncHandler<Response<okio.ByteString>>> |
jsonSerializeResponse(com.fasterxml.jackson.databind.ObjectWriter objectWriter)
Middleware that serializes the payload of the result response of the inner handler using
the supplied
ObjectWriter , and sets the Content-Type header to application/json. |
static <T> Middleware<SyncHandler<Response<T>>,AsyncHandler<Response<okio.ByteString>>> |
jsonSerializeResponseSync(com.fasterxml.jackson.databind.ObjectWriter objectWriter) |
static <T> Middleware<SyncHandler<T>,AsyncHandler<Response<okio.ByteString>>> |
jsonSerializeSync(com.fasterxml.jackson.databind.ObjectWriter objectWriter) |
public static <T> Middleware<AsyncHandler<T>,AsyncHandler<Response<okio.ByteString>>> jsonSerialize(com.fasterxml.jackson.databind.ObjectWriter objectWriter)
ObjectWriter
, and sets the Content-Type header to application/json.public static <T> Middleware<AsyncHandler<Response<T>>,AsyncHandler<Response<okio.ByteString>>> jsonSerializeResponse(com.fasterxml.jackson.databind.ObjectWriter objectWriter)
ObjectWriter
, and sets the Content-Type header to application/json.public static <T> Middleware<SyncHandler<T>,AsyncHandler<Response<okio.ByteString>>> jsonSerializeSync(com.fasterxml.jackson.databind.ObjectWriter objectWriter)
public static <T> Middleware<SyncHandler<Response<T>>,AsyncHandler<Response<okio.ByteString>>> jsonSerializeResponseSync(com.fasterxml.jackson.databind.ObjectWriter objectWriter)
Copyright © 2016. All rights reserved.