public class UriListHttpMessageConverter extends Object implements HttpMessageConverter<org.springframework.hateoas.ResourceSupport>
Converter to render all Links contained in a ResourceSupport as text/uri-list and
parse a request of that media type back into a ResourceSupport 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.ResourceSupport |
read(Class<? extends org.springframework.hateoas.ResourceSupport> clazz,
HttpInputMessage inputMessage) |
void |
write(org.springframework.hateoas.ResourceSupport resource,
MediaType contentType,
HttpOutputMessage outputMessage) |
public boolean canRead(Class<?> clazz, MediaType mediaType)
canRead in interface HttpMessageConverter<org.springframework.hateoas.ResourceSupport>public boolean canWrite(Class<?> clazz, MediaType mediaType)
canWrite in interface HttpMessageConverter<org.springframework.hateoas.ResourceSupport>public List<MediaType> getSupportedMediaTypes()
getSupportedMediaTypes in interface HttpMessageConverter<org.springframework.hateoas.ResourceSupport>public org.springframework.hateoas.ResourceSupport read(Class<? extends org.springframework.hateoas.ResourceSupport> clazz, HttpInputMessage inputMessage) throws IOException, HttpMessageNotReadableException
read in interface HttpMessageConverter<org.springframework.hateoas.ResourceSupport>IOExceptionHttpMessageNotReadableExceptionpublic void write(org.springframework.hateoas.ResourceSupport resource,
MediaType contentType,
HttpOutputMessage outputMessage)
throws IOException,
HttpMessageNotWritableException
write in interface HttpMessageConverter<org.springframework.hateoas.ResourceSupport>IOExceptionHttpMessageNotWritableExceptionCopyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.