Interface ICamelRouteEndpointSvc


public interface ICamelRouteEndpointSvc
Service to send messages to camel module routes. Can be autowired from hybrid providers.
  • Method Details

    • sendToCamelRoute

      @Deprecated(since="2024.08") CompletableFuture<Object> sendToCamelRoute(String theModuleId, String theDirectRouteName, Object theInput, Map<String,Object> theHeaders)
      Deprecated.
      Send asynchronous request to camel module/route specified. This method has been marked as deprecated. Please use send(String, String, Object, Map) instead.
      Parameters:
      theModuleId - the camel target module ID
      theDirectRouteName - the camel target module route ID
      theInput - the input object
      theHeaders - the request headers
      Returns:
      CompletableFuture the asynchronous send response body
    • send

      org.apache.camel.Exchange send(String theModuleId, String theEndpointUri, Object theInput, Map<String,Object> theHeaders)
      Send a Camel message to a direct endpoint available in the specified module using the provided body and headers. Please note that the direct directive will be added if not present in the endpoint uri.
      Parameters:
      theModuleId - the target module id
      theEndpointUri - the endpoint uri
      theInput - the body object
      theHeaders - the headers to include in the message
      Returns:
      the returned Exchange object