Package gdv.xport.srv.web.converter
Class ErrorDetailHttpMessageConverter
java.lang.Object
org.springframework.http.converter.AbstractHttpMessageConverter<ErrorDetail>
gdv.xport.srv.web.converter.ErrorDetailHttpMessageConverter
- All Implemented Interfaces:
org.springframework.http.converter.HttpMessageConverter<ErrorDetail>
public final class ErrorDetailHttpMessageConverter
extends org.springframework.http.converter.AbstractHttpMessageConverter<ErrorDetail>
Klasse ErrorDetailHttpMessageConverter.
- Since:
- 3.0 (02.11.2017)
- Author:
- oboehm
-
Field Summary
Fields inherited from class org.springframework.http.converter.AbstractHttpMessageConverter
logger
-
Constructor Summary
ConstructorsConstructorDescriptionErrorDetailHttpMessageConverter
(org.springframework.http.MediaType... supportedMediaTypes) Erzeugt eine MessageConverter fuer die angegebene Media-Typen. -
Method Summary
Modifier and TypeMethodDescriptionprotected ErrorDetail
readInternal
(Class<? extends ErrorDetail> clazz, org.springframework.http.HttpInputMessage inputMessage) protected boolean
Indicates whether the given class is supported by this converter.protected void
writeInternal
(ErrorDetail errorDetail, org.springframework.http.HttpOutputMessage outputMessage) Methods inherited from class org.springframework.http.converter.AbstractHttpMessageConverter
addDefaultHeaders, canRead, canRead, canWrite, canWrite, getContentLength, getDefaultCharset, getDefaultContentType, getSupportedMediaTypes, read, setDefaultCharset, setSupportedMediaTypes, write
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
-
ErrorDetailHttpMessageConverter
public ErrorDetailHttpMessageConverter(org.springframework.http.MediaType... supportedMediaTypes) Erzeugt eine MessageConverter fuer die angegebene Media-Typen.- Parameters:
supportedMediaTypes
- unterstuetzte Media-Typen
-
-
Method Details
-
supports
Indicates whether the given class is supported by this converter.- Specified by:
supports
in classorg.springframework.http.converter.AbstractHttpMessageConverter<ErrorDetail>
- Parameters:
clazz
- the class to test for support- Returns:
true
if supported;false
otherwise
-
readInternal
protected ErrorDetail readInternal(Class<? extends ErrorDetail> clazz, org.springframework.http.HttpInputMessage inputMessage) throws org.springframework.http.converter.HttpMessageNotReadableException - Specified by:
readInternal
in classorg.springframework.http.converter.AbstractHttpMessageConverter<ErrorDetail>
- Throws:
org.springframework.http.converter.HttpMessageNotReadableException
-
writeInternal
protected void writeInternal(ErrorDetail errorDetail, org.springframework.http.HttpOutputMessage outputMessage) throws IOException, org.springframework.http.converter.HttpMessageNotWritableException - Specified by:
writeInternal
in classorg.springframework.http.converter.AbstractHttpMessageConverter<ErrorDetail>
- Throws:
IOException
org.springframework.http.converter.HttpMessageNotWritableException
-