Package gdv.xport.srv.web.converter
Klasse ErrorDetailHttpMessageConverter
java.lang.Object
org.springframework.http.converter.AbstractHttpMessageConverter<ErrorDetail>
gdv.xport.srv.web.converter.ErrorDetailHttpMessageConverter
- Alle implementierten Schnittstellen:
org.springframework.http.converter.HttpMessageConverter<ErrorDetail>
public final class ErrorDetailHttpMessageConverter
extends org.springframework.http.converter.AbstractHttpMessageConverter<ErrorDetail>
Klasse ErrorDetailHttpMessageConverter.
- Seit:
- 3.0 (02.11.2017)
- Autor:
- oboehm
-
Feldübersicht
Von Klasse geerbte Felder org.springframework.http.converter.AbstractHttpMessageConverter
logger
-
Konstruktorübersicht
KonstruktorBeschreibungErrorDetailHttpMessageConverter
(org.springframework.http.MediaType... supportedMediaTypes) Erzeugt eine MessageConverter fuer die angegebene Media-Typen. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected 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) Von Klasse geerbte Methoden org.springframework.http.converter.AbstractHttpMessageConverter
addDefaultHeaders, canRead, canRead, canWrite, canWrite, getContentLength, getDefaultCharset, getDefaultContentType, getSupportedMediaTypes, read, setDefaultCharset, setSupportedMediaTypes, supportsRepeatableWrites, write
Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Von Schnittstelle geerbte Methoden org.springframework.http.converter.HttpMessageConverter
getSupportedMediaTypes
-
Konstruktordetails
-
ErrorDetailHttpMessageConverter
public ErrorDetailHttpMessageConverter(org.springframework.http.MediaType... supportedMediaTypes) Erzeugt eine MessageConverter fuer die angegebene Media-Typen.- Parameter:
supportedMediaTypes
- unterstuetzte Media-Typen
-
-
Methodendetails
-
supports
Indicates whether the given class is supported by this converter.- Angegeben von:
supports
in Klasseorg.springframework.http.converter.AbstractHttpMessageConverter<ErrorDetail>
- Parameter:
clazz
- the class to test for support- Gibt zurück:
true
if supported;false
otherwise
-
readInternal
protected ErrorDetail readInternal(Class<? extends ErrorDetail> clazz, org.springframework.http.HttpInputMessage inputMessage) throws org.springframework.http.converter.HttpMessageNotReadableException - Angegeben von:
readInternal
in Klasseorg.springframework.http.converter.AbstractHttpMessageConverter<ErrorDetail>
- Löst aus:
org.springframework.http.converter.HttpMessageNotReadableException
-
writeInternal
protected void writeInternal(ErrorDetail errorDetail, org.springframework.http.HttpOutputMessage outputMessage) throws IOException, org.springframework.http.converter.HttpMessageNotWritableException - Angegeben von:
writeInternal
in Klasseorg.springframework.http.converter.AbstractHttpMessageConverter<ErrorDetail>
- Löst aus:
IOException
org.springframework.http.converter.HttpMessageNotWritableException
-