org.apache.camel.impl
Class ExchangeSupport<M,R,F>

java.lang.Object
  extended by org.apache.camel.impl.ExchangeSupport<M,R,F>
All Implemented Interfaces:
Exchange<M,R,F>
Direct Known Subclasses:
DefaultExchange

public abstract class ExchangeSupport<M,R,F>
extends Object
implements Exchange<M,R,F>

A base class useful for implementing other typesafe exchanges

Version:
$Revision: 520124 $

Constructor Summary
ExchangeSupport()
           
 
Method Summary
 Exception getException()
          Returns the exception associated with this exchange
 F getFault()
          Returns the fault message
 M getRequest()
          Returns the request message
 R getResponse()
          Returns the response message
 void setException(Exception exception)
          Sets the exception associated with this exchange
 void setFault(F fault)
           
 void setRequest(M request)
           
 void setResponse(R response)
           
 
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.Exchange
getHeader, getHeaders, setHeader
 

Constructor Detail

ExchangeSupport

public ExchangeSupport()
Method Detail

getException

public Exception getException()
Description copied from interface: Exchange
Returns the exception associated with this exchange

Specified by:
getException in interface Exchange<M,R,F>

setException

public void setException(Exception exception)
Description copied from interface: Exchange
Sets the exception associated with this exchange

Specified by:
setException in interface Exchange<M,R,F>

getFault

public F getFault()
Description copied from interface: Exchange
Returns the fault message

Specified by:
getFault in interface Exchange<M,R,F>

setFault

public void setFault(F fault)

getRequest

public M getRequest()
Description copied from interface: Exchange
Returns the request message

Specified by:
getRequest in interface Exchange<M,R,F>

setRequest

public void setRequest(M request)

getResponse

public R getResponse()
Description copied from interface: Exchange
Returns the response message

Specified by:
getResponse in interface Exchange<M,R,F>

setResponse

public void setResponse(R response)


Copyright © 2007 Apache Software Foundation. All Rights Reserved.