Class SimulateRequestBodyConverter

  • All Implemented Interfaces:
    org.springframework.http.converter.HttpMessageConverter<SimulateRequestBody>

    @Component
    public class SimulateRequestBodyConverter
    extends org.springframework.http.converter.AbstractHttpMessageConverter<SimulateRequestBody>
    • Field Summary

      • Fields inherited from class org.springframework.http.converter.AbstractHttpMessageConverter

        logger
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected SimulateRequestBody readInternal​(java.lang.Class<? extends SimulateRequestBody> aClass, org.springframework.http.HttpInputMessage httpInputMessage)  
      protected boolean supports​(java.lang.Class<?> aClass)  
      protected void writeInternal​(SimulateRequestBody simulateRequestBody, org.springframework.http.HttpOutputMessage httpOutputMessage)  
      • 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
    • Constructor Detail

      • SimulateRequestBodyConverter

        public SimulateRequestBodyConverter()
    • Method Detail

      • supports

        protected boolean supports​(java.lang.Class<?> aClass)
        Specified by:
        supports in class org.springframework.http.converter.AbstractHttpMessageConverter<SimulateRequestBody>
      • readInternal

        protected SimulateRequestBody readInternal​(java.lang.Class<? extends SimulateRequestBody> aClass,
                                                   org.springframework.http.HttpInputMessage httpInputMessage)
                                            throws java.io.IOException,
                                                   org.springframework.http.converter.HttpMessageNotReadableException
        Specified by:
        readInternal in class org.springframework.http.converter.AbstractHttpMessageConverter<SimulateRequestBody>
        Throws:
        java.io.IOException
        org.springframework.http.converter.HttpMessageNotReadableException
      • writeInternal

        protected void writeInternal​(SimulateRequestBody simulateRequestBody,
                                     org.springframework.http.HttpOutputMessage httpOutputMessage)
                              throws java.io.IOException,
                                     org.springframework.http.converter.HttpMessageNotWritableException
        Specified by:
        writeInternal in class org.springframework.http.converter.AbstractHttpMessageConverter<SimulateRequestBody>
        Throws:
        java.io.IOException
        org.springframework.http.converter.HttpMessageNotWritableException