|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.cdi.RoutesXml
public final class RoutesXml
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 |
---|
public static org.apache.camel.model.RoutesDefinition loadRoutesFromXML(String xml) throws JAXBException
JAXBException
public static org.apache.camel.model.RoutesDefinition loadRoutesFromClasspath(String uri) throws JAXBException
JAXBException
public static org.apache.camel.model.RoutesDefinition loadRoutesFromURL(URL url) throws JAXBException, IOException
URL
JAXBException
IOException
public static org.apache.camel.model.RoutesDefinition loadRoutesFromURL(String url) throws IOException, JAXBException
URL
IOException
JAXBException
public static org.apache.camel.model.RoutesDefinition loadRoutesFromFile(File file) throws JAXBException, FileNotFoundException
File
JAXBException
FileNotFoundException
public static org.apache.camel.model.RoutesDefinition loadRoutesFromFile(String fileName) throws JAXBException, FileNotFoundException
File
JAXBException
FileNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |