public class UriListHttpMessageConverter extends Object implements HttpMessageConverter<org.springframework.hateoas.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.| Constructor and Description |
|---|
UriListHttpMessageConverter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRead(Class<?> clazz,
MediaType mediaType) |
boolean |
canWrite(Class<?> clazz,
MediaType mediaType) |
List<MediaType> |
getSupportedMediaTypes() |
org.springframework.hateoas.RepresentationModel<?> |
read(Class<? extends org.springframework.hateoas.RepresentationModel<?>> clazz,
HttpInputMessage inputMessage) |
void |
write(org.springframework.hateoas.RepresentationModel<?> resource,
MediaType contentType,
HttpOutputMessage outputMessage) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSupportedMediaTypespublic boolean canRead(Class<?> clazz, MediaType mediaType)
canRead in interface HttpMessageConverter<org.springframework.hateoas.RepresentationModel<?>>public boolean canWrite(Class<?> clazz, MediaType mediaType)
canWrite in interface HttpMessageConverter<org.springframework.hateoas.RepresentationModel<?>>public List<MediaType> getSupportedMediaTypes()
getSupportedMediaTypes in interface HttpMessageConverter<org.springframework.hateoas.RepresentationModel<?>>public org.springframework.hateoas.RepresentationModel<?> read(Class<? extends org.springframework.hateoas.RepresentationModel<?>> clazz, HttpInputMessage inputMessage) throws IOException, HttpMessageNotReadableException
read in interface HttpMessageConverter<org.springframework.hateoas.RepresentationModel<?>>IOExceptionHttpMessageNotReadableExceptionpublic void write(org.springframework.hateoas.RepresentationModel<?> resource,
MediaType contentType,
HttpOutputMessage outputMessage)
throws IOException,
HttpMessageNotWritableException
write in interface HttpMessageConverter<org.springframework.hateoas.RepresentationModel<?>>IOExceptionHttpMessageNotWritableExceptionCopyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.