org.apache.camel.component.file
Class GenericFileExchange<T>

java.lang.Object
  extended by org.apache.camel.impl.DefaultExchange
      extended by org.apache.camel.component.file.GenericFileExchange<T>
All Implemented Interfaces:
Exchange, PollingConsumerAware

public class GenericFileExchange<T>
extends DefaultExchange
implements PollingConsumerAware


Field Summary
 
Fields inherited from class org.apache.camel.impl.DefaultExchange
context
 
Fields inherited from interface org.apache.camel.Exchange
AGGREGATED_INDEX, AGGREGATED_SIZE, ASYNC_WAIT, BATCH_COMPLETE, BATCH_INDEX, BATCH_SIZE, BEAN_HOLDER, BEAN_METHOD_NAME, BEAN_MULTI_PARAMETER_ARRAY, CHARSET_NAME, CONTENT_TYPE, DATASET_INDEX, EXCEPTION_CAUGHT, EXCEPTION_HANDLED, FAILURE_HANDLED, FILE_LOCAL_WORK_PATH, FILE_NAME, FILE_NAME_ONLY, FILE_NAME_PRODUCED, FILE_PARENT, FILE_PATH, FILTERED, HTTP_CHARACTER_ENCODING, HTTP_METHOD, HTTP_PATH, HTTP_QUERY, HTTP_RESPONSE_CODE, HTTP_URI, INTERCEPTED_ENDPOINT, LOG_DEBUG_BODY_MAX_CHARS, LOOP_INDEX, LOOP_SIZE, MULTICAST_INDEX, ON_COMPLETION, REDELIVERED, REDELIVERY_COUNTER, ROLLBACK_ONLY, ROUTE_STOP, SPLIT_INDEX, SPLIT_SIZE, TIMER_FIRED_TIME, TIMER_NAME, TIMER_PERIOD, TIMER_TIME, TRANSACTED
 
Constructor Summary
GenericFileExchange(DefaultExchange parent, GenericFile<T> file)
           
GenericFileExchange(Endpoint fromEndpoint)
           
 
Method Summary
 void exchangePolled(Exchange exchange)
          Callback when an Exchange has been pooled.
 GenericFile<T> getGenericFile()
           
 Exchange newInstance()
          Creates a new exchange instance with empty messages, headers and properties
protected  void populateHeaders(GenericFile<T> file)
           
 void setGenericFile(GenericFile<T> file)
           
 
Methods inherited from class org.apache.camel.impl.DefaultExchange
addOnCompletion, configureMessage, copy, copyFrom, createExchangeId, createFaultMessage, createInMessage, createOutMessage, getContext, getException, getException, getExchangeId, getFault, getFault, getFromEndpoint, getIn, getOut, getOut, getPattern, getProperties, getProperty, getProperty, getUnitOfWork, hasFault, hasOut, isFailed, isRollbackOnly, isTransacted, newCopy, removeFault, removeProperty, setException, setExchangeId, setFault, setFromEndpoint, setIn, setOut, setPattern, setProperties, setProperty, setUnitOfWork, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GenericFileExchange

public GenericFileExchange(Endpoint fromEndpoint)

GenericFileExchange

public GenericFileExchange(DefaultExchange parent,
                           GenericFile<T> file)
Method Detail

populateHeaders

protected void populateHeaders(GenericFile<T> file)

getGenericFile

public GenericFile<T> getGenericFile()

setGenericFile

public void setGenericFile(GenericFile<T> file)

newInstance

public Exchange newInstance()
Description copied from interface: Exchange
Creates a new exchange instance with empty messages, headers and properties

Specified by:
newInstance in interface Exchange
Overrides:
newInstance in class DefaultExchange

exchangePolled

public void exchangePolled(Exchange exchange)
Description copied from interface: PollingConsumerAware
Callback when an Exchange has been pooled.

Specified by:
exchangePolled in interface PollingConsumerAware
Parameters:
exchange - the exchange


Copyright © 2009 Apache Software Foundation. All Rights Reserved.