org.fusesource.fabric.camel.c24io
Class C24IOSink

java.lang.Object
  extended by org.fusesource.fabric.camel.c24io.C24IOSource
      extended by org.fusesource.fabric.camel.c24io.C24IOSink
All Implemented Interfaces:
org.apache.camel.Processor

public class C24IOSink
extends C24IOSource

Transforms an C24 data object into some output format

Version:
$Revision$

Constructor Summary
C24IOSink()
           
C24IOSink(biz.c24.io.api.presentation.Sink sink)
           
 
Method Summary
 C24IOSink binary()
          Sets the output sink to be binary
static C24IOSink c24Sink()
           
static C24IOSink c24Sink(biz.c24.io.api.presentation.Sink sink)
           
 biz.c24.io.api.presentation.Sink getSink()
           
 C24IOSink java()
          Sets the output sink to be Java
 void process(org.apache.camel.Exchange exchange)
           
 C24IOSink sax()
          Sets the output sink to be SAX
 void setSink(biz.c24.io.api.presentation.Sink sink)
           
 C24IOSink tagValuePair()
          Sets the output sink to be tag value pair
 C24IOSink text()
          Sets the output sink to be text
protected  biz.c24.io.api.data.ComplexDataObject transformDataObject(org.apache.camel.Exchange exchange, biz.c24.io.api.data.ComplexDataObject dataObject)
           
protected  biz.c24.io.api.data.ComplexDataObject unmarshalDataObject(org.apache.camel.Exchange exchange)
           
 C24IOSink xml()
          Sets the output sink to be XML
 
Methods inherited from class org.fusesource.fabric.camel.c24io.C24IOSource
binarySource, c24Source, c24Source, c24Source, element, element, getElement, getSource, javaSource, parseDataObject, saxSource, setSource, textSource, xmlSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

C24IOSink

public C24IOSink()

C24IOSink

public C24IOSink(biz.c24.io.api.presentation.Sink sink)
Method Detail

c24Sink

public static C24IOSink c24Sink()

c24Sink

public static C24IOSink c24Sink(biz.c24.io.api.presentation.Sink sink)

process

public void process(org.apache.camel.Exchange exchange)
             throws java.lang.Exception
Specified by:
process in interface org.apache.camel.Processor
Overrides:
process in class C24IOSource
Throws:
java.lang.Exception

getSink

public biz.c24.io.api.presentation.Sink getSink()

setSink

public void setSink(biz.c24.io.api.presentation.Sink sink)

text

public C24IOSink text()
Sets the output sink to be text


binary

public C24IOSink binary()
Sets the output sink to be binary


xml

public C24IOSink xml()
Sets the output sink to be XML


sax

public C24IOSink sax()
Sets the output sink to be SAX


tagValuePair

public C24IOSink tagValuePair()
Sets the output sink to be tag value pair


java

public C24IOSink java()
Sets the output sink to be Java


unmarshalDataObject

protected biz.c24.io.api.data.ComplexDataObject unmarshalDataObject(org.apache.camel.Exchange exchange)
                                                             throws org.apache.camel.InvalidPayloadException,
                                                                    java.io.IOException
Throws:
org.apache.camel.InvalidPayloadException
java.io.IOException

transformDataObject

protected biz.c24.io.api.data.ComplexDataObject transformDataObject(org.apache.camel.Exchange exchange,
                                                                    biz.c24.io.api.data.ComplexDataObject dataObject)
                                                             throws biz.c24.io.api.data.ValidationException
Throws:
biz.c24.io.api.data.ValidationException


Copyright © 2013 Red Hat. All Rights Reserved.