org.apache.camel.component.cxf.transport
Class CamelTransportBase

java.lang.Object
  extended by org.apache.camel.component.cxf.transport.CamelTransportBase

public class CamelTransportBase
extends Object

Version:
$Revision: 535478 $

Constructor Summary
CamelTransportBase(org.apache.camel.CamelContext camelContext, org.apache.cxf.Bus bus, org.apache.cxf.service.model.EndpointInfo endpointInfo, boolean b, String baseBeanNameSuffix)
           
 
Method Summary
 void close()
           
 String getReplyDestination()
           
protected  void marshal(Object payload, String replyTo, org.apache.camel.Exchange exchange)
          Populates a Camel exchange with a payload
 void populateIncomingContext(org.apache.camel.Exchange exchange, org.apache.cxf.message.MessageImpl inMessage, String camelServerRequestHeaders)
           
 void setMessageProperties(org.apache.cxf.message.Message inMessage, org.apache.camel.Exchange reply)
           
 byte[] unmarshal(org.apache.camel.Exchange exchange)
          Unmarshal the payload of an incoming message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CamelTransportBase

public CamelTransportBase(org.apache.camel.CamelContext camelContext,
                          org.apache.cxf.Bus bus,
                          org.apache.cxf.service.model.EndpointInfo endpointInfo,
                          boolean b,
                          String baseBeanNameSuffix)
Method Detail

populateIncomingContext

public void populateIncomingContext(org.apache.camel.Exchange exchange,
                                    org.apache.cxf.message.MessageImpl inMessage,
                                    String camelServerRequestHeaders)

getReplyDestination

public String getReplyDestination()

setMessageProperties

public void setMessageProperties(org.apache.cxf.message.Message inMessage,
                                 org.apache.camel.Exchange reply)

close

public void close()

marshal

protected void marshal(Object payload,
                       String replyTo,
                       org.apache.camel.Exchange exchange)
Populates a Camel exchange with a payload

Parameters:
payload - the message payload, expected to be either of type String or byte[] depending on payload type
replyTo - the ReplyTo destination if any
exchange - the underlying exchange to marshal to

unmarshal

public byte[] unmarshal(org.apache.camel.Exchange exchange)
Unmarshal the payload of an incoming message.



Copyright © 2007 Apache Software Foundation. All Rights Reserved.