org.apache.camel
Interface ProducerTemplate<E extends Exchange>

All Superinterfaces:
Service
All Known Implementing Classes:
CamelTemplate

public interface ProducerTemplate<E extends Exchange>
extends Service

Version:
$Revision: $

Method Summary
 E send(E exchange)
          Sends the exchange to the default endpoint
 E send(Endpoint<E> endpoint, E exchange)
          Sends the exchange to the given endpoint
 E send(Endpoint<E> endpoint, Processor processor)
          Sends an exchange to an endpoint using a supplied
 E send(Processor processor)
          Sends an exchange to the default endpoint using a supplied
 E send(String endpointUri, E exchange)
          Sends the exchange to the given endpoint
 E send(String endpointUri, Processor processor)
          Sends an exchange to an endpoint using a supplied
 Object sendBody(Endpoint<E> endpoint, Object body)
          Send the body to an endpoint
 Object sendBody(Object body)
          Sends the body to the default endpoint and returns the result content
 Object sendBody(String endpointUri, Object body)
          Send the body to an endpoint
 Object sendBodyAndHeader(Object body, String header, Object headerValue)
          Sends the body to the default endpoint with a specified header and header value
 Object sendBodyAndHeaders(Object body, Map<String,Object> headers)
          Sends the body to the default endpoint with the specified headers and header values
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Method Detail

send

E send(E exchange)
Sends the exchange to the default endpoint

Parameters:
exchange - the exchange to send

send

E send(Processor processor)
Sends an exchange to the default endpoint using a supplied

Parameters:
processor - the transformer used to populate the new exchange

sendBody

Object sendBody(Object body)
Sends the body to the default endpoint and returns the result content

Parameters:
body - the body to send
Returns:
the returned message body

sendBodyAndHeader

Object sendBodyAndHeader(Object body,
                         String header,
                         Object headerValue)
Sends the body to the default endpoint with a specified header and header value

Parameters:
body - the payload send
header - the header name
headerValue - the header value
Returns:
the result

sendBodyAndHeaders

Object sendBodyAndHeaders(Object body,
                          Map<String,Object> headers)
Sends the body to the default endpoint with the specified headers and header values

Parameters:
body - the payload send
Returns:
the result

send

E send(String endpointUri,
       E exchange)
Sends the exchange to the given endpoint

Parameters:
endpointUri - the endpoint URI to send the exchange to
exchange - the exchange to send

send

E send(String endpointUri,
       Processor processor)
Sends an exchange to an endpoint using a supplied

Parameters:
endpointUri - the endpoint URI to send the exchange to
processor - the transformer used to populate the new exchange

send

E send(Endpoint<E> endpoint,
       E exchange)
Sends the exchange to the given endpoint

Parameters:
endpoint - the endpoint to send the exchange to
exchange - the exchange to send

send

E send(Endpoint<E> endpoint,
       Processor processor)
Sends an exchange to an endpoint using a supplied

Parameters:
endpoint - the endpoint to send the exchange to
processor - the transformer used to populate the new exchange

sendBody

Object sendBody(Endpoint<E> endpoint,
                Object body)
Send the body to an endpoint

Parameters:
endpoint -
body - = the payload
Returns:
the result

sendBody

Object sendBody(String endpointUri,
                Object body)
Send the body to an endpoint

Parameters:
endpointUri -
body - = the payload
Returns:
the result


Copyright © 2007 Apache Software Foundation. All Rights Reserved.