Package org.apache.camel.parser
Class XmlRestDslParser
java.lang.Object
org.apache.camel.parser.XmlRestDslParser
A Camel XML parser that parses Camel XML Rest DSL source code.
This implementation is higher level details, and uses the lower level parser
CamelXmlRestDslParserHelper.-
Method Summary
Modifier and TypeMethodDescriptionstatic List<RestConfigurationDetails>parseRestConfiguration(InputStream xml, 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 fullyQualifiedFileName) Parses the java source class and build a rest service model of the discovered rest services in the java source class.
-
Method Details
-
parseRestConfiguration
public static List<RestConfigurationDetails> parseRestConfiguration(InputStream xml, 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 streamfullyQualifiedFileName- 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 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 streamfullyQualifiedFileName- the fully qualified source code file name- Returns:
- a list of rest services
-