Class TelegramTransformer<T>

java.lang.Object
org.openwms.common.comm.transformer.tcp.TelegramTransformer<T>
All Implemented Interfaces:
Transformable<T>

public class TelegramTransformer<T> extends Object implements Transformable<T>
A TelegramTransformer transforms incoming String telegram structures to Payloads. Therefor it delegates to an appropriate TelegramDeserializer instance that is able to map the incoming telegram String into a supported Java message type. This mechanism can be easily extended by putting new bean instances of TelegramDeserializer to the classpath.
Author:
Heiko Scherrer
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • onPostConstruct

      @PostConstruct void onPostConstruct()
    • transform

      @Transformer public org.springframework.messaging.Message<T> transform(String telegram, @Headers Map<String,Object> headers)
      Transformer method to transform a telegram String telegram into a Payload.
      Specified by:
      transform in interface Transformable<T>
      Parameters:
      telegram - The incoming telegram String
      Returns:
      The Payload is transformable
      Throws:
      MessageMismatchException - if no appropriate type was found.