org.apache.camel
Class CamelTemplate<E extends Exchange>

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.impl.DefaultProducerTemplate<E>
          extended by org.apache.camel.CamelTemplate<E>
All Implemented Interfaces:
ProducerTemplate<E>, Service

Deprecated. use ProducerTemplate instead, can be created using CamelContext.createProducerTemplate(). Will be removed in Camel 2.0

@Deprecated
public class CamelTemplate<E extends Exchange>
extends DefaultProducerTemplate<E>

A client helper object (named like Spring's TransactionTemplate & JmsTemplate et al) for working with Camel and sending Message instances in an Exchange to an Endpoint.

Version:
$Revision: 663882 $

Constructor Summary
CamelTemplate(CamelContext context)
          Deprecated.  
CamelTemplate(CamelContext context, Endpoint defaultEndpoint)
          Deprecated.  
 
Method Summary
 
Methods inherited from class org.apache.camel.impl.DefaultProducerTemplate
createBodyAndHeaderProcessor, createSetBodyProcessor, doStart, doStop, extractResultBody, extractResultBody, getContext, getDefaultEndpoint, getMandatoryDefaultEndpoint, getProducer, getResolvedEndpoint, hasFaultMessage, isUseEndpointCache, newInstance, request, request, requestBody, requestBody, requestBodyAndHeader, requestBodyAndHeader, requestBodyAndHeaders, requestBodyAndHeaders, resolveMandatoryEndpoint, send, send, send, send, send, send, send, send, send, send, sendBody, sendBody, sendBody, sendBody, sendBody, sendBodyAndHeader, sendBodyAndHeader, sendBodyAndHeader, sendBodyAndHeader, sendBodyAndHeader, sendBodyAndHeaders, sendBodyAndHeaders, sendBodyAndHeaders, sendBodyAndHeaders, sendBodyAndHeaders, setDefaultEndpoint, setDefaultEndpointUri, setUseEndpointCache
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
addChildService, getThreadName, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, nextThreadCounter, removeChildService, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Constructor Detail

CamelTemplate

public CamelTemplate(CamelContext context)
Deprecated. 

CamelTemplate

public CamelTemplate(CamelContext context,
                     Endpoint defaultEndpoint)
Deprecated. 


Copyright © 2009 Apache Software Foundation. All Rights Reserved.