Deprecated API


Contents
Deprecated Interfaces
org.apache.camel.component.cxf.CxfConstants
           
org.apache.camel.spi.ManagementAware
          will be removed in Camel 3.0. Instead use Spring JMX annotations, see this FAQ entry 
 

Deprecated Classes
org.apache.camel.model.AOPDefinition
          will be removed in the future. You can for example use Processor and InterceptStrategy to do AOP in Camel. 
org.apache.camel.processor.BatchProcessor
          may be removed in the future when we overhaul the resequencer EIP 
org.apache.camel.converter.jaxb.JaxbConverter
          will be removed in the near future 
org.apache.camel.model.SetOutHeaderDefinition
          not really needed, will be removed in the future 
 

Deprecated Fields
org.apache.camel.component.cxf.CxfConstants.CAMEL_EXCHANGE
           
org.apache.camel.component.cxf.CxfConstants.CAMEL_TRANSPORT_PREFIX
           
org.apache.camel.component.cxf.CxfConstants.CXF_EXCHANGE
           
org.apache.camel.converter.jaxp.XmlConverter.DEFAULT_CHARSET_PROPERTY
           
org.apache.camel.component.mina.MinaEndpoint.HEADER_LOCAL_ADDRESS
           
org.apache.camel.component.mina.MinaEndpoint.HEADER_MINA_IOSESSION
           
org.apache.camel.component.mina.MinaEndpoint.HEADER_REMOTE_ADDRESS
           
 

Deprecated Methods
org.apache.camel.builder.RouteBuilder.addRoutes(RoutesBuilder)
          will be removed in Camel 3.0. Instead use includeRoutes instead. 
org.apache.camel.model.ProcessorDefinition.aop()
          to be removed in the near future. Instead you can use interceptors or processors to do AOP with Camel. 
org.apache.camel.management.mbean.ManagedBrowsableEndpoint.browseMessageAsXml(Integer)
          use ManagedBrowsableEndpoint.browseAllMessagesAsXml(Boolean) instead 
org.apache.camel.util.ObjectHelper.close(Closeable, String, Logger)
          will be removed in Camel 3.0. Instead use IOHelper.close(java.io.Closeable, String, org.slf4j.Logger) instead 
org.apache.camel.Message.createExchangeId()
          will be removed in Camel 3.0. It is discouraged for messages to create exchange ids 
org.apache.camel.util.IOHelper.createIOException(String, Throwable)
          IOException support nested exception in Java 1.6. Will be removed in Camel 3.0 
org.apache.camel.util.IOHelper.createIOException(Throwable)
          IOException support nested exception in Java 1.6. Will be removed in Camel 3.0 
org.apache.camel.converter.jaxp.XmlConverter.createTransfomer()
          use XmlConverter.createTransformer(), will be removed in Camel 3.0 
org.apache.camel.converter.jaxp.StaxConverter.createXMLEventReader(InputStream)
          will be removed in Camel 3.0. Use the method which has 2 parameters. 
org.apache.camel.converter.jaxp.StaxConverter.createXMLStreamReader(InputStream)
          will be removed in Camel 3.0. Use the method which has 2 parameters. 
org.apache.camel.component.cxf.transport.CamelConduit.getCamelTemplate()
           
org.apache.camel.processor.RedeliveryPolicy.getRedeliverDelay()
          will be removed in the near future. Instead use RedeliveryPolicy.getRedeliveryDelay() 
org.apache.camel.model.TryDefinition.handled(boolean)
          will be removed in Camel 3.0. Instead of using handled(false) you can re-throw the exception from a Processor or use the ProcessorDefinition.throwException(Exception) 
org.apache.camel.model.CatchDefinition.handled(boolean)
          will be removed in Camel 3.0. Instead of using handled(false) you can re-throw the exception from a Processor or use the ProcessorDefinition.throwException(Exception) 
org.apache.camel.model.TryDefinition.handled(Expression)
          will be removed in Camel 3.0. Instead of using handled(false) you can re-throw the exception from a Processor or use the ProcessorDefinition.throwException(Exception) 
org.apache.camel.model.CatchDefinition.handled(Expression)
          will be removed in Camel 3.0. Instead of using handled(false) you can re-throw the exception from a Processor or use the ProcessorDefinition.throwException(Exception) 
org.apache.camel.model.TryDefinition.handled(Predicate)
          will be removed in Camel 3.0. Instead of using handled(false) you can re-throw the exception from a Processor or use the ProcessorDefinition.throwException(Exception) 
org.apache.camel.model.CatchDefinition.handled(Predicate)
          will be removed in Camel 3.0. Instead of using handled(false) you can re-throw the exception from a Processor or use the ProcessorDefinition.throwException(Exception) 
org.apache.camel.model.ProcessorDefinition.idempotentConsumer(IdempotentRepository)
          will be removed in Camel 3.0. Instead use any of the other methods 
org.apache.camel.model.ProcessorDefinition.inOnly()
          use ProcessorDefinition.setExchangePattern(org.apache.camel.ExchangePattern) instead 
org.apache.camel.model.ProcessorDefinition.inOut()
          use ProcessorDefinition.setExchangePattern(org.apache.camel.ExchangePattern) instead 
org.apache.camel.test.junit4.TestSupport.isJava15()
          will be removed in the near future as Camel now requires JDK1.6+ 
org.apache.camel.testng.TestSupport.isJava15()
          will be removed in the near future as Camel now requires JDK1.6+ 
org.apache.camel.component.jms.JmsConfiguration.isSubscriptionDurable()
           
org.apache.camel.component.jms.JmsConfiguration.isTransactedInOut()
           
org.apache.camel.model.WireTapDefinition.newExchange(Expression)
          will be removed in Camel 3.0 Instead use WireTapDefinition.newExchangeBody(org.apache.camel.Expression) 
org.apache.camel.processor.exceptionpolicy.ExceptionPolicyKey.newInstance(Class)
          will be removed in the near future. Use the constructor instead. 
org.apache.camel.processor.exceptionpolicy.ExceptionPolicyKey.newInstance(Class, WhenDefinition)
          will be removed in the near future. Use the constructor instead. 
org.apache.camel.model.ToDefinition.pattern(ExchangePattern)
          will be removed in the near future. Instead use ProcessorDefinition.inOnly() or ProcessorDefinition.inOut() 
org.apache.camel.builder.DefaultErrorHandlerBuilder.redeliverDelay(long)
          will be removed in the near future. Use DefaultErrorHandlerBuilder.redeliveryDelay(long) instead 
org.apache.camel.model.OnExceptionDefinition.redeliverDelay(long)
          will be removed in the near future. Instead use OnExceptionDefinition.redeliveryDelay(String) 
org.apache.camel.processor.RedeliveryPolicy.redeliverDelay(long)
          will be removed in the near future. Instead use RedeliveryPolicy.redeliveryDelay(long) instead 
org.apache.camel.builder.ProcessorBuilder.removeFaultHeader(String)
          will be removed in the near future. Instead use ProcessorBuilder.removeHeader(String) 
org.apache.camel.model.ProcessorDefinition.removeFaultHeader(String)
          will be removed in the near future. Instead use ProcessorDefinition.removeHeader(String) 
org.apache.camel.model.ProcessorDefinition.routingSlip(String)
          prefer to use ProcessorDefinition.routingSlip(org.apache.camel.Expression) instead 
org.apache.camel.model.ProcessorDefinition.routingSlip(String, boolean)
          prefer to use ProcessorDefinition.routingSlip() instead 
org.apache.camel.model.ProcessorDefinition.routingSlip(String, String)
          prefer to use ProcessorDefinition.routingSlip(org.apache.camel.Expression, String) instead 
org.apache.camel.model.ProcessorDefinition.routingSlip(String, String, boolean)
          prefer to use ProcessorDefinition.routingSlip() instead 
org.apache.camel.util.ValueHolder.set(V)
          should be immutable, will be removed in Camel 3.0 
org.apache.camel.component.cxf.transport.CamelConduit.setCamelTemplate(ProducerTemplate)
           
org.apache.camel.spi.PackageScanClassResolver.setClassLoaders(Set)
          will be removed in Camel 3.0. Use PackageScanClassResolver.addClassLoader(ClassLoader) instead. 
org.apache.camel.model.ProcessorDefinition.setFaultHeader(String, Expression)
          use ProcessorDefinition.setHeader(String, org.apache.camel.Expression) 
org.apache.camel.model.ProcessorDefinition.setOutHeader(String)
          use ProcessorDefinition.setHeader(String) 
org.apache.camel.model.ProcessorDefinition.setOutHeader(String, Expression)
          use ProcessorDefinition.setHeader(String, org.apache.camel.Expression) 
org.apache.camel.processor.RedeliveryPolicy.setRedeliverDelay(long)
          will be removed in the near future. Instead use RedeliveryPolicy.setRedeliveryDelay(long) 
org.apache.camel.impl.DefaultCamelContext.setRoutes(List)
           
org.apache.camel.component.jms.JmsConfiguration.setSubscriptionDurable(boolean)
           
org.apache.camel.component.jms.JmsComponent.setSubscriptionDurable(boolean)
           
org.apache.camel.component.jms.JmsConfiguration.setTransactedInOut(boolean)
           
org.apache.camel.management.mbean.ManagedRoute.shutdown()
          will be removed in the near future. Use stop and remove instead 
org.apache.camel.management.mbean.ManagedRoute.shutdown(long)
          will be removed in the near future. Use stop and remove instead 
org.apache.camel.CamelContext.shutdownRoute(String)
          use CamelContext.stopRoute(String) and CamelContext.removeRoute(String) 
org.apache.camel.CamelContext.shutdownRoute(String, long, TimeUnit)
          use CamelContext.stopRoute(String, long, java.util.concurrent.TimeUnit) and CamelContext.removeRoute(String) 
org.apache.camel.converter.IOConverter.toByteArray(BufferedReader)
          will be removed in Camel 3.0. Use the method which has 2 parameters. 
org.apache.camel.converter.IOConverter.toByteArray(Reader)
          will be removed in Camel 3.0. Use the method which has 2 parameters. 
org.apache.camel.converter.IOConverter.toByteArray(String)
          will be removed in Camel 3.0. Use the method which has 2 parameters. 
org.apache.camel.converter.IOConverter.toInputStream(BufferedReader)
          will be removed in Camel 3.0. Use the method which has 2 parameters. 
org.apache.camel.converter.jaxp.XmlConverter.toInputStream(Document)
          will be removed in Camel 3.0. Use the method which has 2 parameters. 
org.apache.camel.converter.jaxp.XmlConverter.toInputStream(DOMSource)
          will be removed in Camel 3.0. Use the method which has 2 parameters. 
org.apache.camel.converter.IOConverter.toInputStream(String)
          will be removed in Camel 3.0. Use the method which has 2 parameters. 
org.apache.camel.converter.IOConverter.toReader(File)
          will be removed in Camel 3.0. Use the method which has 2 parameters. 
org.apache.camel.converter.IOConverter.toReader(InputStream)
          will be removed in Camel 3.0. Use the method which has 2 parameters. 
org.apache.camel.converter.jaxp.XmlConverter.toReaderFromSource(Source)
          will be removed in Camel 3.0. Use the method which has 2 parameters. 
org.apache.camel.converter.jaxp.XmlConverter.toSAXSource(InputStream)
          will be removed in Camel 3.0. Use the method which has 2 parameters. 
org.apache.camel.converter.jaxp.XmlConverter.toSAXSource(Source)
          will be removed in Camel 3.0. Use the method which has 2 parameters. 
org.apache.camel.converter.jaxp.XmlConverter.toSAXSource(String)
          will be removed in Camel 3.0. Use the method which has 2 parameters. 
org.apache.camel.converter.jaxp.XmlConverter.toSAXSourceFromDOM(DOMSource)
          will be removed in Camel 3.0. Use the method which has 2 parameters. 
org.apache.camel.converter.jaxp.XmlConverter.toSource(Document)
          use toDOMSource instead 
org.apache.camel.converter.jaxp.XmlConverter.toStreamSource(Source)
          will be removed in Camel 3.0. Use the method which has 2 parameters. 
org.apache.camel.converter.jaxp.XmlConverter.toStreamSourceFromDOM(DOMSource)
          will be removed in Camel 3.0. Use the method which has 2 parameters. 
org.apache.camel.converter.jaxp.XmlConverter.toStreamSourceFromSAX(SAXSource)
          will be removed in Camel 3.0. Use the method which has 2 parameters. 
org.apache.camel.converter.IOConverter.toString(byte[])
          will be removed in Camel 3.0. Use the method which has 2 parameters. 
org.apache.camel.converter.IOConverter.toString(ByteArrayOutputStream)
          will be removed in Camel 3.0. Use the method which has 2 parameters. 
org.apache.camel.converter.IOConverter.toString(File)
          will be removed in Camel 3.0. Use the method which has 2 parameters. 
org.apache.camel.converter.IOConverter.toString(InputStream)
          will be removed in Camel 3.0. Use the method which has 2 parameters. 
org.apache.camel.converter.jaxp.XmlConverter.toString(Node)
          will be removed in Camel 3.0. Use the method which has 2 parameters. 
org.apache.camel.converter.jaxp.XmlConverter.toString(Source)
          will be removed in Camel 3.0. Use the method which has 2 parameters. 
org.apache.camel.converter.IOConverter.toString(URL)
          will be removed in Camel 3.0. Use the method which has 2 parameters. 
org.apache.camel.converter.IOConverter.toWriter(File)
          will be removed in Camel 3.0. Use the method which has 2 parameters. 
org.apache.camel.converter.IOConverter.toWriter(OutputStream)
          will be removed in Camel 3.0. Use the method which has 2 parameters. 
org.apache.camel.model.OnExceptionDefinition.useOriginalBody()
          this method will be removed in Camel 3.0, please use OnExceptionDefinition.useOriginalMessage() 
org.apache.camel.model.ProcessorDefinition.wireTap(String, boolean, Expression)
          use the fluent builder from WireTapDefinition, will be removed in Camel 3.0 
org.apache.camel.model.ProcessorDefinition.wireTap(String, boolean, Processor)
          use the fluent builder from WireTapDefinition, will be removed in Camel 3.0 
org.apache.camel.model.ProcessorDefinition.wireTap(String, ExecutorService)
          use the fluent builder from WireTapDefinition, will be removed in Camel 3.0 
org.apache.camel.model.ProcessorDefinition.wireTap(String, Expression)
          use the fluent builder from WireTapDefinition, will be removed in Camel 3.0 
org.apache.camel.model.ProcessorDefinition.wireTap(String, Processor)
          use the fluent builder from WireTapDefinition, will be removed in Camel 3.0 
org.apache.camel.model.ProcessorDefinition.wireTap(String, String)
          use the fluent builder from WireTapDefinition, will be removed in Camel 3.0 
 

Deprecated Constructors
org.apache.camel.component.http.DefaultHttpBinding()
           
org.apache.camel.component.http4.DefaultHttpBinding()
           
org.apache.camel.component.http.DefaultHttpBinding(HeaderFilterStrategy)
           
org.apache.camel.component.http4.DefaultHttpBinding(HeaderFilterStrategy)
           
org.apache.camel.processor.exceptionpolicy.ExceptionPolicyKey(Class, WhenDefinition)
          will be removed in the near future, use the other constructor 
org.apache.camel.util.ValueHolder()
          should be immutable, will be removed in Camel 3.0 
 



Apache CAMEL