Class DefaultMessagePropertiesConverter

    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultMessagePropertiesConverter()
      Construct an instance where LongStrings will be returned unconverted when longer than 1024 bytes.
      DefaultMessagePropertiesConverter​(int longStringLimit)
      Construct an instance where LongStrings will be returned unconverted when longer than this limit.
      DefaultMessagePropertiesConverter​(int longStringLimit, boolean convertLongLongStrings)
      Construct an instance where LongStrings will be returned unconverted or as a DataInputStream when longer than this limit.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.rabbitmq.client.AMQP.BasicProperties fromMessageProperties​(org.springframework.amqp.core.MessageProperties source, java.lang.String charset)  
      org.springframework.amqp.core.MessageProperties toMessageProperties​(com.rabbitmq.client.AMQP.BasicProperties source, com.rabbitmq.client.Envelope envelope, java.lang.String charset)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultMessagePropertiesConverter

        public DefaultMessagePropertiesConverter()
        Construct an instance where LongStrings will be returned unconverted when longer than 1024 bytes.
      • DefaultMessagePropertiesConverter

        public DefaultMessagePropertiesConverter​(int longStringLimit)
        Construct an instance where LongStrings will be returned unconverted when longer than this limit.
        Parameters:
        longStringLimit - the limit.
        Since:
        1.4.4
      • DefaultMessagePropertiesConverter

        public DefaultMessagePropertiesConverter​(int longStringLimit,
                                                 boolean convertLongLongStrings)
        Construct an instance where LongStrings will be returned unconverted or as a DataInputStream when longer than this limit. Use this constructor with 'true' to restore pre-1.6 behavior.
        Parameters:
        longStringLimit - the limit.
        convertLongLongStrings - LongString when false, DataInputStream when true.
        Since:
        1.6
    • Method Detail

      • toMessageProperties

        public org.springframework.amqp.core.MessageProperties toMessageProperties​(com.rabbitmq.client.AMQP.BasicProperties source,
                                                                                   com.rabbitmq.client.Envelope envelope,
                                                                                   java.lang.String charset)
        Specified by:
        toMessageProperties in interface MessagePropertiesConverter
      • fromMessageProperties

        public com.rabbitmq.client.AMQP.BasicProperties fromMessageProperties​(org.springframework.amqp.core.MessageProperties source,
                                                                              java.lang.String charset)
        Specified by:
        fromMessageProperties in interface MessagePropertiesConverter