List of usage examples for org.springframework.http.converter HttpMessageConverter interface-usage
From source file org.obiba.onyx.core.service.impl.ParticipantHttpMessageConverter.java
/** * Rest utility that reads from the HTTP response and creates a {@link Participant} from that. */ public class ParticipantHttpMessageConverter implements HttpMessageConverter<Participant> { public boolean canRead(Class<?> clazz, MediaType mediaType) {
From source file jetbrains.buildServer.vsoRooms.rest.impl.StringJsonConverter.java
/** * @author Evgeniy.Koshkin */ public class StringJsonConverter implements HttpMessageConverter<String> { public boolean canRead(Class<?> aClass, MediaType mediaType) {
From source file com.edu.common.MappingJackson2HttpMessageConverter.java
public class MappingJackson2HttpMessageConverter implements HttpMessageConverter<UserVo> { @Override public boolean canRead(Class<?> clazz, MediaType mediaType) { return true; }
From source file org.androidannotations.test15.rest.EBeanConverter.java
@EBean public class EBeanConverter implements HttpMessageConverter { @Override public boolean canRead(Class aClass, MediaType mediaType) { return false;
From source file com.future.spring.rest.BufferedImageHttpMessageConverter.java
public class BufferedImageHttpMessageConverter implements HttpMessageConverter<BufferedImage> { /* (non-Javadoc) * @see org.springframework.http.converter.HttpMessageConverter#canRead(java.lang.Class, org.springframework.http.MediaType) */ @Override
From source file net.gbmb.collector.rest.HttpRecordMessageConverter.java
public class HttpRecordMessageConverter implements HttpMessageConverter<CollectionRecord> { private static final ObjectMapper MAPPER = new ObjectMapper(); @Override public boolean canRead(Class<?> aClass, MediaType mediaType) {
From source file com.p5solutions.core.json.SessionBindingHttpMessageConverter.java
/**
* The Interface SessionBindingHttpMessageConverter. Allows an
* {@link HttpMessageConverter} to be session binding object aware when reading
* /writing out Stream. This is used in conjunction with
* {@link ExtendedAnnotationMethodHandlerAdapter} which will delegate most of
* its work to the {@link AnnotationMethodHandlerAdapter}.
From source file org.urlshortener.core.converter.UrlShortenerMessageConverter.java
public class UrlShortenerMessageConverter implements HttpMessageConverter<String> { public static String LS = System.getProperty("line.separator"); public List<MediaType> getSupportedMediaTypes() { return Collections.singletonList(new MediaType("text", "plain"));
From source file example.xmlbeam.XmlBeamHttpMessageConverter.java
/**
* A read-only {@link HttpMessageConverter} to create XMLBeam-based projection instances for interfaces.
*
* @author Oliver Gierke
* @see http://www.xmlbeam.org
*/
From source file org.spearal.spring.rest.SpearalMessageConverter.java
/** * Spring MVC message converter * * @author William DRAI */ public class SpearalMessageConverter implements HttpMessageConverter<Object> {