Interface TelegramDeserializer<T>


public interface TelegramDeserializer<T>
A TelegramDeserializer is able to deserialize an incoming telegram String to a known type of Message.
Author:
Heiko Scherrer
See Also:
  • Message
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.messaging.Message<T>
    deserialize(String telegram, Map<String,Object> headers)
    Try to deserialize the telegram String into a valid Message.
    Return the telegram type this mapper is responsible for.
  • Method Details

    • deserialize

      org.springframework.messaging.Message<T> deserialize(String telegram, Map<String,Object> headers)
      Try to deserialize the telegram String into a valid Message. Implementations may throw some kind of RuntimeException if the type of telegram is not known and cannot be deserialized.
      Parameters:
      telegram - The telegram String to deserialize
      headers - A map with the headers passed along the telegram
      Returns:
      The deserialized telegram as Message
    • forType

      String forType()
      Return the telegram type this mapper is responsible for.
      Returns:
      the telegram type as String