@CamelConfiguration public class DirectCallWsRoute extends AbstractBasicRoute
DirectCallRegistry
.EXTERNAL_ROUTE_SUFFIX, IN_ROUTE_SUFFIX, OUT_ROUTE_SUFFIX, ROUTE_ID_DELIMITER, ROUTE_SUFFIX
Constructor and Description |
---|
DirectCallWsRoute() |
Modifier and Type | Method and Description |
---|---|
protected void |
doConfigure()
Defines routes and route specific configuration.
|
Object |
getRequest(String callId)
Gets request to external system.
|
String |
getWsUri(String callId)
Gets URI for calling external system.
|
void |
removeCallParams(String callId) |
void |
setHeader(String callId,
org.apache.camel.Exchange exchange)
Sets request header if available.
|
addEventNotifier, configure, doErrorHandling, exceptionHandling, getBean, getExternalRouteId, getInRouteId, getInWsUri, getInWsUri, getOutRouteId, getOutWsSoap12Uri, getOutWsSoap12Uri, getOutWsUri, getOutWsUri, getRouteId, isAsynch, printMessageHistory, toString
getApplicationContext, lookup, lookup, setApplicationContext, transactionErrorHandler, transactionErrorHandler, transactionErrorHandler, transactionErrorHandler
addRoutes, addRoutesToCamelContext, checkInitialized, configureRest, configureRests, configureRoute, configureRoutes, createContainer, errorHandler, from, from, from, from, fromF, getContext, getRestCollection, getRestConfigurations, getRouteCollection, includeRoutes, intercept, interceptFrom, interceptFrom, interceptSendToEndpoint, onCompletion, onException, onException, populateRests, populateRoutes, rest, rest, restConfiguration, restConfiguration, setErrorHandlerBuilder, setRestCollection, setRouteCollection
bean, bean, bean, bean, body, body, bodyAs, constant, createErrorHandlerBuilder, deadLetterChannel, deadLetterChannel, defaultErrorHandler, endpoint, endpoint, endpoints, endpoints, exceptionMessage, exchangeProperty, faultBody, faultBodyAs, getErrorHandlerBuilder, header, language, loggingErrorHandler, loggingErrorHandler, loggingErrorHandler, loggingErrorHandler, method, method, method, method, noErrorHandler, outBody, outBody, property, regexReplaceAll, regexReplaceAll, sendTo, setContext, setContext, simple, simple, simpleF, simpleF, systemProperty, systemProperty, xpath, xpath
protected void doConfigure() throws Exception
AbstractBasicRoute
doConfigure
in class AbstractBasicRoute
Exception
- can be thrown during configuration@Handler public void setHeader(@Header(value="callId") String callId, org.apache.camel.Exchange exchange)
callId
- Call ID for getting call parameters from DirectCallRegistry
exchange
- Camel exchange@Handler public Object getRequest(@Header(value="callId") String callId)
callId
- Call ID for getting call parameters from DirectCallRegistry
@Handler public String getWsUri(@Header(value="callId") String callId)
callId
- Call ID for getting call parameters from DirectCallRegistry
@Handler public void removeCallParams(@Header(value="callId") String callId)
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.