public class UriListHttpMessageConverter extends Object implements org.springframework.http.converter.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,
org.springframework.http.MediaType mediaType) |
boolean |
canWrite(Class<?> clazz,
org.springframework.http.MediaType mediaType) |
List<org.springframework.http.MediaType> |
getSupportedMediaTypes() |
org.springframework.hateoas.ResourceSupport |
read(Class<? extends org.springframework.hateoas.ResourceSupport> clazz,
org.springframework.http.HttpInputMessage inputMessage) |
void |
write(org.springframework.hateoas.ResourceSupport resource,
org.springframework.http.MediaType contentType,
org.springframework.http.HttpOutputMessage outputMessage) |
public boolean canRead(Class<?> clazz, org.springframework.http.MediaType mediaType)
canRead in interface org.springframework.http.converter.HttpMessageConverter<org.springframework.hateoas.ResourceSupport>public boolean canWrite(Class<?> clazz, org.springframework.http.MediaType mediaType)
canWrite in interface org.springframework.http.converter.HttpMessageConverter<org.springframework.hateoas.ResourceSupport>public List<org.springframework.http.MediaType> getSupportedMediaTypes()
getSupportedMediaTypes in interface org.springframework.http.converter.HttpMessageConverter<org.springframework.hateoas.ResourceSupport>public org.springframework.hateoas.ResourceSupport read(Class<? extends org.springframework.hateoas.ResourceSupport> clazz, org.springframework.http.HttpInputMessage inputMessage) throws IOException, org.springframework.http.converter.HttpMessageNotReadableException
read in interface org.springframework.http.converter.HttpMessageConverter<org.springframework.hateoas.ResourceSupport>IOExceptionorg.springframework.http.converter.HttpMessageNotReadableExceptionpublic void write(org.springframework.hateoas.ResourceSupport resource,
org.springframework.http.MediaType contentType,
org.springframework.http.HttpOutputMessage outputMessage)
throws IOException,
org.springframework.http.converter.HttpMessageNotWritableException
write in interface org.springframework.http.converter.HttpMessageConverter<org.springframework.hateoas.ResourceSupport>IOExceptionorg.springframework.http.converter.HttpMessageNotWritableExceptionCopyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.