Package org.openwms.common.comm.osip.upd
Class HttpUpdateMessageHandler
java.lang.Object
org.openwms.common.comm.osip.upd.HttpUpdateMessageHandler
- All Implemented Interfaces:
Function<org.springframework.messaging.support.GenericMessage<UpdateMessage>,
Void>
@Profile("!ASYNCHRONOUS")
@OSIPComponent
@RefreshScope
class HttpUpdateMessageHandler
extends Object
implements Function<org.springframework.messaging.support.GenericMessage<UpdateMessage>,Void>
A HttpUpdateMessageHandler forwards updates to the transportUnits services to the routing service.
- Author:
- Heiko Scherrer
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHttpUpdateMessageHandler
(org.springframework.web.client.RestTemplate restTemplate, String routingServiceName, String routingServiceProtocol, String routingServiceUsername, String routingServicePassword) -
Method Summary
Modifier and TypeMethodDescriptionapply
(org.springframework.messaging.support.GenericMessage<UpdateMessage> msg) (package private) static UpdateVO
getRequest
(org.springframework.messaging.support.GenericMessage<UpdateMessage> msg)
-
Field Details
-
Constructor Details
-
HttpUpdateMessageHandler
HttpUpdateMessageHandler(org.springframework.web.client.RestTemplate restTemplate, @Value("${owms.driver.server.routing-service.name:routing-service}") String routingServiceName, @Value("${owms.driver.server.routing-service.protocol:http}") String routingServiceProtocol, @Value("${owms.driver.server.routing-service.username:user}") String routingServiceUsername, @Value("${owms.driver.server.routing-service.password:sa}") String routingServicePassword)
-
-
Method Details
-
getRequest
-
apply
- Specified by:
apply
in interfaceFunction<org.springframework.messaging.support.GenericMessage<UpdateMessage>,
Void>
-