Package org.openwms.common.comm.osip
Class CommonMessageFactory
java.lang.Object
org.openwms.common.comm.osip.CommonMessageFactory
A CommonMessageFactory.
- Author:
- Heiko Scherrer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OSIPHeader
createHeader
(String telegram) Create aOSIPHeader
from a passed telegram structure.static org.springframework.messaging.MessageHeaders
createHeaders
(String telegram, Map<String, Object> headers) static <T extends Payload>
org.springframework.messaging.MessageHeadersgetOSIPHeaders
(org.springframework.messaging.Message<T> message)
-
Constructor Details
-
CommonMessageFactory
private CommonMessageFactory()
-
-
Method Details
-
createHeader
Create aOSIPHeader
from a passed telegram structure.- Parameters:
telegram
- The telegram- Returns:
- A
OSIPHeader
instance
-
createHeaders
-
getOSIPHeaders
public static <T extends Payload> org.springframework.messaging.MessageHeaders getOSIPHeaders(org.springframework.messaging.Message<T> message)
-