Example usage for org.springframework.core.codec Decoder getDecodableMimeTypes

List of usage examples for org.springframework.core.codec Decoder getDecodableMimeTypes

Introduction

In this page you can find the example usage for org.springframework.core.codec Decoder getDecodableMimeTypes.

Prototype

List<MimeType> getDecodableMimeTypes();

Source Link

Document

Return the list of MIME types this decoder supports.

Usage

From source file:org.springframework.http.codec.DecoderHttpMessageReader.java

/**
 * Create an instance wrapping the given {@link Decoder}.
 *//*from   w  w w.j a  va2 s  .c om*/
public DecoderHttpMessageReader(Decoder<T> decoder) {
    Assert.notNull(decoder, "Decoder is required");
    this.decoder = decoder;
    this.mediaTypes = MediaType.asMediaTypes(decoder.getDecodableMimeTypes());
    initLogger(decoder);
}