Class RestDslParser


  • public final class RestDslParser
    extends Object
    A Camel parser that parses Camel Java Rest DSL source code.

    This implementation is higher level details, and uses the lower level parser CamelJavaRestDslParserHelper.

    • Method Detail

      • parseRestConfiguration

        public static List<RestConfigurationDetails> parseRestConfiguration​(org.jboss.forge.roaster.model.source.JavaClassSource clazz,
                                                                            String baseDir,
                                                                            String fullyQualifiedFileName,
                                                                            boolean includeInlinedRouteBuilders)
        Parses the java source class and build a rest configuration model of the discovered rest configurations in the java source class.
        Parameters:
        clazz - the java source class
        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​(org.jboss.forge.roaster.model.source.JavaClassSource clazz,
                                                                String baseDir,
                                                                String fullyQualifiedFileName,
                                                                boolean includeInlinedRouteBuilders)
        Parses the java source class and build a rest service model of the discovered rest services in the java source class.
        Parameters:
        clazz - the java source class
        baseDir - the base of the source code
        fullyQualifiedFileName - the fully qualified source code file name
        Returns:
        a list of rest services