Package org.apache.camel.parser
Class RestDslParser
- java.lang.Object
-
- org.apache.camel.parser.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 parserCamelJavaRestDslParserHelper
.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.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.
-
-
-
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 classbaseDir
- 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(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 classbaseDir
- the base of the source codefullyQualifiedFileName
- the fully qualified source code file name- Returns:
- a list of rest services
-
-