Class AvroBinaryHttpMessageConverter

java.lang.Object
org.springframework.http.converter.AbstractHttpMessageConverter<org.apache.avro.specific.SpecificRecord>
ch.admin.bit.jeap.processarchive.web.AvroBinaryHttpMessageConverter
All Implemented Interfaces:
org.springframework.http.converter.HttpMessageConverter<org.apache.avro.specific.SpecificRecord>

public class AvroBinaryHttpMessageConverter extends org.springframework.http.converter.AbstractHttpMessageConverter<org.apache.avro.specific.SpecificRecord>
HttpMessageConverter transparently serializing generated Avro classes to binary avro.
  • Field Summary

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

    logger
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.apache.avro.specific.SpecificRecord
    readInternal(Class<? extends org.apache.avro.specific.SpecificRecord> clazz, org.springframework.http.HttpInputMessage inputMessage)
     
    protected boolean
    supports(Class<?> clazz)
     
    protected void
    writeInternal(org.apache.avro.specific.SpecificRecord specificRecord, 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, supportsRepeatableWrites, 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

    • AvroBinaryHttpMessageConverter

      public AvroBinaryHttpMessageConverter()
  • Method Details

    • supports

      protected boolean supports(Class<?> clazz)
      Specified by:
      supports in class org.springframework.http.converter.AbstractHttpMessageConverter<org.apache.avro.specific.SpecificRecord>
    • readInternal

      protected org.apache.avro.specific.SpecificRecord readInternal(Class<? extends org.apache.avro.specific.SpecificRecord> clazz, org.springframework.http.HttpInputMessage inputMessage) throws IOException
      Specified by:
      readInternal in class org.springframework.http.converter.AbstractHttpMessageConverter<org.apache.avro.specific.SpecificRecord>
      Throws:
      IOException
    • writeInternal

      protected void writeInternal(org.apache.avro.specific.SpecificRecord specificRecord, org.springframework.http.HttpOutputMessage outputMessage) throws IOException
      Specified by:
      writeInternal in class org.springframework.http.converter.AbstractHttpMessageConverter<org.apache.avro.specific.SpecificRecord>
      Throws:
      IOException