Claus Ibsen created CAMEL-25243:
-----------------------------------

             Summary: camel-jbang - source editor: Java DSL completion inside 
arguments (expression builders) and for the REST DSL
                 Key: CAMEL-25243
                 URL: https://issues.apache.org/jira/browse/CAMEL-25243
             Project: Camel
          Issue Type: Improvement
          Components: camel-jbang
            Reporter: Claus Ibsen


Follow-up of CAMEL-25241 (Java DSL route chain completion in the source editor 
of camel-jbang), for two of its listed limitations:

* the expression builders inside the arguments: Tab after body(). header("x"). 
simple(".."). in .split(..), .filter(..), .setBody(..)... offers the methods of 
the builder (tokenize, isEqualTo, convertTo, regexReplaceAll...), walked from 
the RouteBuilder method the expression starts with;
* the REST DSL and the other chains that do not start with a route: 
rest("/api").get("/x").to(..), restConfiguration()., routeTemplate(..)., with 
the param()...endParam() and responseMessage() sub-builders.

Same approach: read from the text so it works while the file does not parse, 
reflection over the model and builder classes, documentation from the catalog 
where it has it, and a recall check over the Java routes of the repo.

_Claude Code on behalf of davsclaus_



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to