public class FiliResponseWriterSelector extends Object implements ResponseWriterSelector
|Constructor and Description|
Constructor for default writer selector.
|Modifier and Type||Method and Description|
Add a customized format writer pair to the Map.
Selects a ResponseWriter given the format type from request.
public FiliResponseWriterSelector(CsvResponseWriter csvResponseWriter, JsonResponseWriter jsonResponseWriter, JsonApiResponseWriter jsonApiResponseWriter)
csvResponseWriter- The CSV writer which serialize output into csv format
jsonResponseWriter- The Json writer which serialize output into csv format
jsonApiResponseWriter- The JsonApi writer which serialize output into csv format
public Optional<ResponseWriter> select(ApiRequest request)
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.