org.fusesource.fabric.camel.c24io
Class C24IOSource<T extends C24IOSource>

java.lang.Object
  extended by org.fusesource.fabric.camel.c24io.C24IOSource<T>
All Implemented Interfaces:
org.apache.camel.Processor
Direct Known Subclasses:
C24IOSink

public class C24IOSource<T extends C24IOSource>
extends java.lang.Object
implements org.apache.camel.Processor

A parser of objects using the C24 IO

Version:
$Revision$

Constructor Summary
C24IOSource()
           
C24IOSource(biz.c24.io.api.data.Element element)
           
 
Method Summary
 T binarySource()
          Sets the source parser to XML
static C24IOSource c24Source(java.lang.Class<?> elementType)
           
static C24IOSource c24Source(biz.c24.io.api.data.Element element)
           
static C24IOSource c24Source(java.lang.String modelClassName)
           
static biz.c24.io.api.data.Element element(java.lang.Class<?> elementType)
           
static biz.c24.io.api.data.Element element(java.lang.String modelClassName)
           
 biz.c24.io.api.data.Element getElement()
           
 biz.c24.io.api.presentation.Source getSource()
           
 T javaSource()
          Sets the source parser to XML
protected  biz.c24.io.api.data.ComplexDataObject parseDataObject(org.apache.camel.Exchange exchange)
           
 void process(org.apache.camel.Exchange exchange)
           
 T saxSource()
          Sets the source parser to SAX
 void setSource(biz.c24.io.api.presentation.Source source)
           
 T textSource()
          Sets the source parser to text
 T xmlSource()
          Sets the source parser to XML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

C24IOSource

public C24IOSource()

C24IOSource

public C24IOSource(biz.c24.io.api.data.Element element)
Method Detail

c24Source

public static C24IOSource c24Source(java.lang.String modelClassName)

c24Source

public static C24IOSource c24Source(java.lang.Class<?> elementType)

c24Source

public static C24IOSource c24Source(biz.c24.io.api.data.Element element)

process

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

parseDataObject

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

element

public static biz.c24.io.api.data.Element element(java.lang.String modelClassName)

element

public static biz.c24.io.api.data.Element element(java.lang.Class<?> elementType)

getElement

public biz.c24.io.api.data.Element getElement()

getSource

public biz.c24.io.api.presentation.Source getSource()

setSource

public void setSource(biz.c24.io.api.presentation.Source source)

textSource

public T textSource()
Sets the source parser to text


xmlSource

public T xmlSource()
Sets the source parser to XML


saxSource

public T saxSource()
Sets the source parser to SAX


binarySource

public T binarySource()
Sets the source parser to XML


javaSource

public T javaSource()
Sets the source parser to XML



Copyright © 2013 Red Hat. All Rights Reserved.