org.apache.camel.cdi
Class RoutesXml

java.lang.Object
  extended by org.apache.camel.cdi.RoutesXml

public final class RoutesXml
extends Object

A helper class for loading route definitions from a file, URL or the classpath


Method Summary
static org.apache.camel.model.RoutesDefinition loadRoutesFromClasspath(String uri)
          Loads the routes from the classpath
static org.apache.camel.model.RoutesDefinition loadRoutesFromFile(File file)
          Loads the routes from a File
static org.apache.camel.model.RoutesDefinition loadRoutesFromFile(String fileName)
          Loads the routes from a File
static org.apache.camel.model.RoutesDefinition loadRoutesFromURL(String url)
          Loads the routes from a URL
static org.apache.camel.model.RoutesDefinition loadRoutesFromURL(URL url)
          Loads the routes from a URL
static org.apache.camel.model.RoutesDefinition loadRoutesFromXML(String xml)
          Loads the routes from the given XML content
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

loadRoutesFromXML

public static org.apache.camel.model.RoutesDefinition loadRoutesFromXML(String xml)
                                                                 throws JAXBException
Loads the routes from the given XML content

Throws:
JAXBException

loadRoutesFromClasspath

public static org.apache.camel.model.RoutesDefinition loadRoutesFromClasspath(String uri)
                                                                       throws JAXBException
Loads the routes from the classpath

Throws:
JAXBException

loadRoutesFromURL

public static org.apache.camel.model.RoutesDefinition loadRoutesFromURL(URL url)
                                                                 throws JAXBException,
                                                                        IOException
Loads the routes from a URL

Throws:
JAXBException
IOException

loadRoutesFromURL

public static org.apache.camel.model.RoutesDefinition loadRoutesFromURL(String url)
                                                                 throws IOException,
                                                                        JAXBException
Loads the routes from a URL

Throws:
IOException
JAXBException

loadRoutesFromFile

public static org.apache.camel.model.RoutesDefinition loadRoutesFromFile(File file)
                                                                  throws JAXBException,
                                                                         FileNotFoundException
Loads the routes from a File

Throws:
JAXBException
FileNotFoundException

loadRoutesFromFile

public static org.apache.camel.model.RoutesDefinition loadRoutesFromFile(String fileName)
                                                                  throws JAXBException,
                                                                         FileNotFoundException
Loads the routes from a File

Throws:
JAXBException
FileNotFoundException


Apache Camel