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 Link
s 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 TypeMethodDescriptionboolean
boolean
read
(Class<? extends RepresentationModel<?>> clazz, HttpInputMessage inputMessage) void
write
(RepresentationModel<?> resource, MediaType contentType, HttpOutputMessage outputMessage) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.http.converter.HttpMessageConverter
getSupportedMediaTypes
-
Constructor Details
-
UriListHttpMessageConverter
public UriListHttpMessageConverter()
-
-
Method Details
-
canRead
- Specified by:
canRead
in interfaceHttpMessageConverter<RepresentationModel<?>>
-
canWrite
- Specified by:
canWrite
in interfaceHttpMessageConverter<RepresentationModel<?>>
-
getSupportedMediaTypes
- Specified by:
getSupportedMediaTypes
in interfaceHttpMessageConverter<RepresentationModel<?>>
-
read
public RepresentationModel<?> read(Class<? extends RepresentationModel<?>> clazz, HttpInputMessage inputMessage) throws IOException, HttpMessageNotReadableException - Specified by:
read
in interfaceHttpMessageConverter<RepresentationModel<?>>
- Throws:
IOException
HttpMessageNotReadableException
-
write
public void write(RepresentationModel<?> resource, MediaType contentType, HttpOutputMessage outputMessage) throws IOException, HttpMessageNotWritableException - Specified by:
write
in interfaceHttpMessageConverter<RepresentationModel<?>>
- Throws:
IOException
HttpMessageNotWritableException
-