Package discord4j.rest.http
Interface ExchangeStrategies
public interface ExchangeStrategies
Defines the strategies to request and response body conversion.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classA mutable builder for creating anExchangeStrategies -
Method Summary
Modifier and TypeMethodDescriptionstatic ExchangeStrategiesjackson(ObjectMapper mapper) Return anExchangeStrategiesusing the defaults for processing JSON requests using Jackson.List<ReaderStrategy<?>>readers()Retrieve the list of reader strategies to convert a response body.List<WriterStrategy<?>>writers()Retrieve the list of writer strategies to convert a request body.
-
Method Details
-
writers
List<WriterStrategy<?>> writers()Retrieve the list of writer strategies to convert a request body.- Returns:
- a list of writer strategies
-
readers
List<ReaderStrategy<?>> readers()Retrieve the list of reader strategies to convert a response body.- Returns:
- a list of reader strategies
-
jackson
Return anExchangeStrategiesusing the defaults for processing JSON requests using Jackson.- Parameters:
mapper- the Jackson object mapper- Returns:
- the built strategies
-