Package org.apache.camel.parser
Class RestDslParser
java.lang.Object
org.apache.camel.parser.RestDslParser
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 Summary
Modifier and TypeMethodDescriptionstatic List<RestConfigurationDetails>parseRestConfiguration(org.jboss.forge.roaster.model.source.JavaClassSource clazz, 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 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 Details
-
parseRestConfiguration
public static List<RestConfigurationDetails> parseRestConfiguration(org.jboss.forge.roaster.model.source.JavaClassSource clazz, 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 classfullyQualifiedFileName- 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 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 classfullyQualifiedFileName- the fully qualified source code file name- Returns:
- a list of rest services
-