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

    Constructors
    Constructor
    Description
    ErrorDetailHttpMessageConverter(org.springframework.http.MediaType... supportedMediaTypes)
    Erzeugt eine MessageConverter fuer die angegebene Media-Typen.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected ErrorDetail
    readInternal(Class<? extends ErrorDetail> clazz, org.springframework.http.HttpInputMessage inputMessage)
     
    protected boolean
    supports(Class<?> clazz)
    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

      protected boolean supports(Class<?> clazz)
      Indicates whether the given class is supported by this converter.
      Specified by:
      supports in class org.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 class org.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 class org.springframework.http.converter.AbstractHttpMessageConverter<ErrorDetail>
      Throws:
      IOException
      org.springframework.http.converter.HttpMessageNotWritableException