public abstract class AbstractAsyncResponseWebService extends AbstractWebService
Constructor and Description |
---|
AbstractAsyncResponseWebService() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canDropCorrelation(Object response)
Determines whether correlation items related to the given message can be dropped.
|
protected String[] |
getAlternativeResponseKeys(Object response)
Determines the set of correlation keys for the given response message,
which are alternative to the WS-Addressing message ID referenced in the
<ReplyTo> header.
|
protected org.apache.camel.Exchange |
process(Object body,
Map<String,Object> headers,
org.apache.camel.ExchangePattern exchangePattern)
Before calling the base method, determines correlation key
and stores it into message headers.
|
getConsumer, process, setConsumer
protected boolean canDropCorrelation(Object response)
Per default, always returns true
.
response
- response message.true
when correlation items related
to the given message can be dropped.protected org.apache.camel.Exchange process(Object body, Map<String,Object> headers, org.apache.camel.ExchangePattern exchangePattern)
process
in class AbstractWebService
body
- contents of the in-message body to be processed.headers
- additional in-message headers (can be null
).exchangePattern
- pattern of the exchange put into the route.protected String[] getAlternativeResponseKeys(Object response)
Per default, this method returns null
.
response
- response message.null
alternative keys,
or null
, when no keys could have been extracted.Copyright © 2018 Open eHealth Foundation. All rights reserved.