| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public boolean | |
| public List | Returns: the list of supported media typesReturn the list of media types supported by this converter. |
| public default List | Returns: the list of media types supported for the given classthe type of class to check clazz)Return the list of media types supported by this converter for the given class. |
| public T | Returns: the converted objectthe type of object to return. This type must have previously been passed to the
clazz, HttpInputMessage canRead method of this interface, which must have returned true.the HTTP input message to read from inputMessage)Read an object of the given type from the given input message, and returns it. |
| public void | write(T
the object to write to the output message. The type of this object must have previously been
passed to the t, MediaType canWrite method of this interface, which must have returned true.the content type to use when writing. May be contentType, HttpOutputMessage null to indicate that the
default content type of the converter must be used. If not null, this media type must have
previously been passed to the canWrite method of this interface, which must have
returned true.the message to write to outputMessage)Write a given object to the given output message. |
| canRead | back to summary |
|---|---|
| public boolean canRead(Class<?> clazz, MediaType mediaType) Indicates whether the given class can be read by this converter. | |
| canWrite | back to summary |
|---|---|
| public boolean canWrite(Class<?> clazz, MediaType mediaType) Indicates whether the given class can be written by this converter. | |
| getSupportedMediaTypes | back to summary |
|---|---|
| public List Return the list of media types supported by this converter. The list may
not apply to every possible target element type and calls to this method
should typically be guarded via | |
| getSupportedMediaTypes | back to summary |
|---|---|
| public default List Return the list of media types supported by this converter for the given
class. The list may differ from | |
| read | back to summary |
|---|---|
| public T read(Class<? extends T> clazz, HttpInputMessage inputMessage) throws IOException, HttpMessageNotReadableException Read an object of the given type from the given input message, and returns it.
| |
| write | back to summary |
|---|---|
| public void write(T t, MediaType contentType, HttpOutputMessage outputMessage) throws IOException, HttpMessageNotWritableException Write a given object to the given output message.
| |