public final class XmlRouteParser extends Object
CamelJavaParserHelper
.Modifier and Type | Method and Description |
---|---|
static void |
parseXmlRouteEndpoints(InputStream xml,
String baseDir,
String fullyQualifiedFileName,
List<CamelEndpointDetails> endpoints)
Parses the XML source to discover Camel endpoints.
|
static void |
parseXmlRouteRouteIds(InputStream xml,
String baseDir,
String fullyQualifiedFileName,
List<CamelRouteDetails> routes)
Parses the XML source to discover Camel routes with id's assigned.
|
static void |
parseXmlRouteSimpleExpressions(InputStream xml,
String baseDir,
String fullyQualifiedFileName,
List<CamelSimpleExpressionDetails> simpleExpressions)
Parses the XML source to discover Camel endpoints.
|
static List<CamelNodeDetails> |
parseXmlRouteTree(InputStream xml,
String baseDir,
String fullyQualifiedFileName)
Parses the XML file and build a route model (tree) of the discovered routes in the XML source file.
|
public static List<CamelNodeDetails> parseXmlRouteTree(InputStream xml, String baseDir, String fullyQualifiedFileName)
xml
- the xml file as input streambaseDir
- the base of the source codefullyQualifiedFileName
- the fully qualified source code file namepublic static void parseXmlRouteEndpoints(InputStream xml, String baseDir, String fullyQualifiedFileName, List<CamelEndpointDetails> endpoints) throws Exception
xml
- the xml file as input streambaseDir
- the base of the source codefullyQualifiedFileName
- the fully qualified source code file nameendpoints
- list to add discovered and parsed endpointsException
public static void parseXmlRouteSimpleExpressions(InputStream xml, String baseDir, String fullyQualifiedFileName, List<CamelSimpleExpressionDetails> simpleExpressions) throws Exception
xml
- the xml file as input streambaseDir
- the base of the source codefullyQualifiedFileName
- the fully qualified source code file namesimpleExpressions
- list to add discovered and parsed simple expressionsException
public static void parseXmlRouteRouteIds(InputStream xml, String baseDir, String fullyQualifiedFileName, List<CamelRouteDetails> routes) throws Exception
xml
- the xml file as input streambaseDir
- the base of the source codefullyQualifiedFileName
- the fully qualified source code file nameroutes
- list to add discovered and parsed routesException
Apache Camel