Class 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 parser CamelXmlRestDslParserHelper.

    • 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 stream
        baseDir - the base of the source code
        fullyQualifiedFileName - 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 stream
        baseDir - the base of the source code
        fullyQualifiedFileName - the fully qualified source code file name
        Returns:
        a list of rest services