Package org.openwms.common.comm.tcp
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:
-
Method Summary
-
Method Details
-
deserialize
Try to deserialize thetelegram
String into a validMessage
. 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 deserializeheaders
- 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
-