org.yestech.publish.service
Class CamelXmlPublishConsumer

java.lang.Object
  extended by org.yestech.publish.service.CamelXmlPublishConsumer
All Implemented Interfaces:
IPublishConsumer

public class CamelXmlPublishConsumer
extends Object
implements IPublishConsumer

A camel based consumer that assumes the body of a Message is of type IArtifact. The consumer converts the raw message to an IArtifact then puts it back into the exchange, after doing that it publishes the IArtifact.

Version:
$Revision: $
Author:
Artie Copeland

Constructor Summary
CamelXmlPublishConsumer()
           
 
Method Summary
 Map<String,Object> getHeaderParameters()
           
 IPublishProcessor getProcessor()
           
 File getTempDirectory()
           
 void process(org.apache.camel.Exchange exchange)
           
 void recieve(IArtifact artifact)
           
 void setHeaderParameters(Map<String,Object> headerParameters)
           
 void setProcessor(IPublishProcessor processor)
           
 void setTempDirectory(File tempDirectory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CamelXmlPublishConsumer

public CamelXmlPublishConsumer()
Method Detail

getProcessor

public IPublishProcessor getProcessor()

getTempDirectory

public File getTempDirectory()

setTempDirectory

public void setTempDirectory(File tempDirectory)

setProcessor

public void setProcessor(IPublishProcessor processor)

getHeaderParameters

public Map<String,Object> getHeaderParameters()

setHeaderParameters

public void setHeaderParameters(Map<String,Object> headerParameters)

process

public void process(org.apache.camel.Exchange exchange)

recieve

public void recieve(IArtifact artifact)
Specified by:
recieve in interface IPublishConsumer


Copyright © 2010 YES Technology Association. All Rights Reserved.