org.apache.camel.processor.interceptor
Class StreamCaching

java.lang.Object
  extended by org.apache.camel.processor.interceptor.StreamCaching
All Implemented Interfaces:
InterceptStrategy

public final class StreamCaching
extends Object
implements InterceptStrategy

InterceptStrategy implementation to configure stream caching on a RouteContext


Method Summary
static void disable(RouteContext context)
          Disable stream caching for a RouteContext
static void enable(RouteContext context)
          Enable stream caching for a RouteContext
 Processor wrapProcessorInInterceptors(ProcessorType processorType, Processor target)
          This method is invoked by ProcessorType.wrapProcessor(RouteContext, Processor) to give the implementor an opportunity to wrap the target processor in a route.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

wrapProcessorInInterceptors

public Processor wrapProcessorInInterceptors(ProcessorType processorType,
                                             Processor target)
                                      throws Exception
This method is invoked by ProcessorType.wrapProcessor(RouteContext, Processor) to give the implementor an opportunity to wrap the target processor in a route.

Specified by:
wrapProcessorInInterceptors in interface InterceptStrategy
Parameters:
processorType - the object that invokes this method
target - the processor to be wrapped
Returns:
processor wrapped with an interceptor or not wrapped
Throws:
Exception - can be thrown

enable

public static void enable(RouteContext context)
Enable stream caching for a RouteContext

Parameters:
context - the route context

disable

public static void disable(RouteContext context)
Disable stream caching for a RouteContext

Parameters:
context - the route context


Copyright © 2009 IONA Open Source Community. All Rights Reserved.