Module spring.data.rest.webmvc
Class UriListHttpMessageConverter
java.lang.Object
org.springframework.data.rest.webmvc.convert.UriListHttpMessageConverter
- All Implemented Interfaces:
HttpMessageConverter<RepresentationModel<?>>
public class UriListHttpMessageConverter
extends Object
implements HttpMessageConverter<RepresentationModel<?>>
Converter to render all Links contained in a RepresentationModel as text/uri-list and
parse a request of that media type back into a RepresentationModel instance.- Author:
- Jon Brisbin, Greg Turnquist, Oliver Gierke
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanread(Class<? extends RepresentationModel<?>> clazz, HttpInputMessage inputMessage) voidwrite(RepresentationModel<?> resource, MediaType contentType, HttpOutputMessage outputMessage) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.http.converter.HttpMessageConverter
getSupportedMediaTypes
-
Constructor Details
-
UriListHttpMessageConverter
public UriListHttpMessageConverter()
-
-
Method Details
-
canRead
- Specified by:
canReadin interfaceHttpMessageConverter<RepresentationModel<?>>
-
canWrite
- Specified by:
canWritein interfaceHttpMessageConverter<RepresentationModel<?>>
-
getSupportedMediaTypes
- Specified by:
getSupportedMediaTypesin interfaceHttpMessageConverter<RepresentationModel<?>>
-
read
public RepresentationModel<?> read(Class<? extends RepresentationModel<?>> clazz, HttpInputMessage inputMessage) throws IOException, HttpMessageNotReadableException - Specified by:
readin interfaceHttpMessageConverter<RepresentationModel<?>>- Throws:
IOExceptionHttpMessageNotReadableException
-
write
public void write(RepresentationModel<?> resource, MediaType contentType, HttpOutputMessage outputMessage) throws IOException, HttpMessageNotWritableException - Specified by:
writein interfaceHttpMessageConverter<RepresentationModel<?>>- Throws:
IOExceptionHttpMessageNotWritableException
-