de.escalon.hypermedia.spring.siren.SirenMessageConverter Maven / Gradle / Ivy
package de.escalon.hypermedia.spring.siren;
import com.fasterxml.jackson.core.JsonEncoding;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import de.escalon.hypermedia.spring.DocumentationProvider;
import org.springframework.hateoas.RelProvider;
import org.springframework.http.HttpInputMessage;
import org.springframework.http.HttpOutputMessage;
import org.springframework.http.MediaType;
import org.springframework.http.converter.AbstractHttpMessageConverter;
import org.springframework.http.converter.HttpMessageNotReadableException;
import org.springframework.http.converter.HttpMessageNotWritableException;
import java.io.IOException;
import java.nio.charset.Charset;
import java.util.Collection;
/**
* Http message converter which converts Spring Hateoas resource beans to siren messages. Treats the following rels as
* navigational by default: "self", "next", "previous", "prev". Created by Dietrich on 18.04.2016.
*/
public class SirenMessageConverter extends AbstractHttpMessageConverter