Package org.openwms.common.comm.osip.err
Class HttpErrorMessageHandler
java.lang.Object
org.openwms.common.comm.osip.err.HttpErrorMessageHandler
- All Implemented Interfaces:
 Function<org.springframework.messaging.support.GenericMessage<ErrorMessage>,Void> 
@Profile("!ASYNCHRONOUS")
@OSIPComponent
@RefreshScope
class HttpErrorMessageHandler
extends Object
implements Function<org.springframework.messaging.support.GenericMessage<ErrorMessage>,Void> 
An HttpErrorMessageHandler is the handler function to accept 
ErrorMessages and
 forward them for processing over HTTP to the routing-service.- Author:
 - Heiko Scherrer
 
- 
Field Summary
Fields - 
Constructor Summary
ConstructorsConstructorDescriptionHttpErrorMessageHandler(org.springframework.web.client.RestTemplate restTemplate, String routingServiceName, String routingServiceProtocol, String routingServiceUsername, String routingServicePassword)  - 
Method Summary
Modifier and TypeMethodDescriptionapply(org.springframework.messaging.support.GenericMessage<ErrorMessage> msg)  
- 
Field Details
- 
restTemplate
private final org.springframework.web.client.RestTemplate restTemplate - 
routingServiceName
 - 
routingServiceProtocol
 - 
routingServiceUsername
 - 
routingServicePassword
 
 - 
 - 
Constructor Details
- 
HttpErrorMessageHandler
HttpErrorMessageHandler(org.springframework.web.client.RestTemplate restTemplate, @Value("${owms.driver.routing-service.name}") String routingServiceName, @Value("${owms.driver.routing-service.protocol}") String routingServiceProtocol, @Value("${owms.driver.routing-service.username}") String routingServiceUsername, @Value("${owms.driver.routing-service.password}") String routingServicePassword)  
 - 
 - 
Method Details
- 
apply
- Specified by:
 applyin interfaceFunction<org.springframework.messaging.support.GenericMessage<ErrorMessage>,Void> 
 
 -