List of usage examples for org.springframework.util MimeType MimeType
public MimeType(String type)
From source file:org.springframework.cloud.stream.app.log.sink.LogSinkApplicationTests.java
@Test public void testJsonContentType() { Message<byte[]> message = MessageBuilder.withPayload("{\"foo\":\"bar\"}".getBytes()) .setHeader("contentType", new MimeType("json")).build(); this.testMessage(message, "{\"foo\":\"bar\"}"); }