Package org.openwms.common.comm.osip
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 Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
private static final byte[]
private final org.openwms.common.comm.config.Osip
private final List
<OSIPSerializer<T>> private Map
<String, OSIPSerializer<T>> private static final org.slf4j.Logger
-
Constructor Summary
ConstructorsConstructorDescriptionPayloadSerializer
(org.openwms.common.comm.config.Osip driver, List<OSIPSerializer<T>> serializers) -
Method Summary
Modifier and TypeMethodDescription(package private) void
void
serialize
(T obj, OutputStream outputStream) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.core.serializer.Serializer
serializeToByteArray
-
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
-
serializersMap
-
-
Constructor Details
-
PayloadSerializer
public PayloadSerializer(org.openwms.common.comm.config.Osip driver, List<OSIPSerializer<T>> serializers)
-
-
Method Details
-
onPostConstruct
@PostConstruct void onPostConstruct() -
serialize
- Specified by:
serialize
in interfaceorg.springframework.core.serializer.Serializer<T extends Payload>
- Throws:
IOException
-