Class PayloadSerializer<T extends Payload>

java.lang.Object
org.openwms.common.comm.osip.PayloadSerializer<T>
All Implemented Interfaces:
org.springframework.core.serializer.Serializer<T>

@Primary @OSIPComponent public class PayloadSerializer<T extends Payload> extends Object implements org.springframework.core.serializer.Serializer<T>
A PayloadSerializer.
Author:
Heiko Scherrer
  • Field Details

    • BOOT_LOGGER

      private static final org.slf4j.Logger BOOT_LOGGER
    • TELEGRAM_LOGGER

      private static final org.slf4j.Logger TELEGRAM_LOGGER
    • CRLF

      private static final byte[] CRLF
    • driver

      private final org.openwms.common.comm.config.Osip driver
    • serializers

      private final List<OSIPSerializer<T extends Payload>> serializers
    • serializersMap

      private Map<String,OSIPSerializer<T extends Payload>> serializersMap
  • Constructor Details

    • PayloadSerializer

      public PayloadSerializer(org.openwms.common.comm.config.Osip driver, List<OSIPSerializer<T>> serializers)
  • Method Details

    • onPostConstruct

      @PostConstruct void onPostConstruct()
    • serialize

      public void serialize(T obj, OutputStream outputStream) throws IOException
      Specified by:
      serialize in interface org.springframework.core.serializer.Serializer<T extends Payload>
      Throws:
      IOException