public final class RoutesXml extends Object
| Modifier and Type | Method and Description |
|---|---|
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
|
public static org.apache.camel.model.RoutesDefinition loadRoutesFromXML(String xml) throws JAXBException
JAXBExceptionpublic static org.apache.camel.model.RoutesDefinition loadRoutesFromClasspath(String uri) throws JAXBException
JAXBExceptionpublic static org.apache.camel.model.RoutesDefinition loadRoutesFromURL(URL url) throws JAXBException, IOException
URLJAXBExceptionIOExceptionpublic static org.apache.camel.model.RoutesDefinition loadRoutesFromURL(String url) throws IOException, JAXBException
URLIOExceptionJAXBExceptionpublic static org.apache.camel.model.RoutesDefinition loadRoutesFromFile(File file) throws JAXBException, FileNotFoundException
FileJAXBExceptionFileNotFoundExceptionpublic static org.apache.camel.model.RoutesDefinition loadRoutesFromFile(String fileName) throws JAXBException, FileNotFoundException
FileJAXBExceptionFileNotFoundExceptionApache Camel