Package org.apache.camel.parser
Class XmlRestDslParser
- java.lang.Object
-
- org.apache.camel.parser.XmlRestDslParser
-
public final class XmlRestDslParser extends Object
A Camel XML parser that parses Camel XML Rest DSL source code. This implementation is higher level details, and uses the lower level parserCamelXmlRestDslParserHelper
.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<RestConfigurationDetails>
parseRestConfiguration(InputStream xml, String baseDir, String fullyQualifiedFileName)
Parses the XML file and build a rest configuration model of the discovered rest configurations in the XML source file.static List<RestServiceDetails>
parseRestService(InputStream xml, String baseDir, String fullyQualifiedFileName)
Parses the java source class and build a rest service model of the discovered rest services in the java source class.
-
-
-
Method Detail
-
parseRestConfiguration
public static List<RestConfigurationDetails> parseRestConfiguration(InputStream xml, String baseDir, String fullyQualifiedFileName)
Parses the XML file and build a rest configuration model of the discovered rest configurations in the XML source file.- Parameters:
xml
- the xml file as input streambaseDir
- the base of the source codefullyQualifiedFileName
- the fully qualified source code file name- Returns:
- a list of rest configurations (often there is only one)
-
parseRestService
public static List<RestServiceDetails> parseRestService(InputStream xml, String baseDir, String fullyQualifiedFileName)
Parses the java source class and build a rest service model of the discovered rest services in the java source class.- Parameters:
xml
- the xml file as input streambaseDir
- the base of the source codefullyQualifiedFileName
- the fully qualified source code file name- Returns:
- a list of rest services
-
-