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

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