public final class RoutesXml extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.apache.camel.model.RoutesDefinition |
loadRoutesFromClasspath(org.apache.camel.model.ModelCamelContext camelContext,
String uri)
Loads the routes from the classpath
|
static org.apache.camel.model.RoutesDefinition |
loadRoutesFromFile(org.apache.camel.model.ModelCamelContext camelContext,
File file)
Loads the routes from a
File |
static org.apache.camel.model.RoutesDefinition |
loadRoutesFromFile(org.apache.camel.model.ModelCamelContext camelContext,
String fileName)
Loads the routes from a
File |
static org.apache.camel.model.RoutesDefinition |
loadRoutesFromURL(org.apache.camel.model.ModelCamelContext camelContext,
String url)
Loads the routes from a
URL |
static org.apache.camel.model.RoutesDefinition |
loadRoutesFromURL(org.apache.camel.model.ModelCamelContext camelContext,
URL url)
Loads the routes from a
URL |
static org.apache.camel.model.RoutesDefinition |
loadRoutesFromXML(org.apache.camel.model.ModelCamelContext camelContext,
String xml)
Loads the routes from the given XML content
|
public static org.apache.camel.model.RoutesDefinition loadRoutesFromXML(org.apache.camel.model.ModelCamelContext camelContext,
String xml)
throws JAXBException
JAXBExceptionpublic static org.apache.camel.model.RoutesDefinition loadRoutesFromClasspath(org.apache.camel.model.ModelCamelContext camelContext,
String uri)
throws JAXBException
JAXBExceptionpublic static org.apache.camel.model.RoutesDefinition loadRoutesFromURL(org.apache.camel.model.ModelCamelContext camelContext,
URL url)
throws JAXBException,
IOException
URLJAXBExceptionIOExceptionpublic static org.apache.camel.model.RoutesDefinition loadRoutesFromURL(org.apache.camel.model.ModelCamelContext camelContext,
String url)
throws IOException,
JAXBException
URLIOExceptionJAXBExceptionpublic static org.apache.camel.model.RoutesDefinition loadRoutesFromFile(org.apache.camel.model.ModelCamelContext camelContext,
File file)
throws JAXBException,
FileNotFoundException
FileJAXBExceptionFileNotFoundExceptionpublic static org.apache.camel.model.RoutesDefinition loadRoutesFromFile(org.apache.camel.model.ModelCamelContext camelContext,
String fileName)
throws JAXBException,
FileNotFoundException
FileJAXBExceptionFileNotFoundExceptionApache Camel