查询参数后添加选项Apache Camel Spring DSL



我正在尝试对以下URL进行获取请求:

http://hellostackexchange?mynameiskees.json

问题是,在将查询参数添加到URI之后,我看不到如何添加选项参数。我的尝试是以下内容:

<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
<camelContext xmlns="http://camel.apache.org/schema/blueprint">
   <route id="hello stackexchange">
       <from uri="timer://counting_camera?fixedRate=true&amp;period=1000" />
       <setHeader headerName="CamelHttpQuery">
       <simple>"mynameiskees.json"</simple>
        </setHeader>
       <to uri=http4://hellostackexchange/>
       <to uri = "direct:test"/>
   </route>
   <route id = "final">
    <from uri="direct:test?authUsername=kees&amp;authPassword=kees"/>
    <to uri="log:result"/>
  </route>
</camelContext>

这会导致错误:

There are 2 parameters that couldn't be set on the endpoint. Check the uri 
if the parameters are spelt correctly and that they are properties of the 
endpoint. Unknown parameters=[{authPassword=kees, authUsername=kees}]

有关如何执行此操作的任何提示?

在@namphibian的帮助下,我做了以下操作,您可以将查询参数添加到标头中,然后将选项添加到您的URI:

<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
<camelContext xmlns="http://camel.apache.org/schema/blueprint">
   <route id="hello stackexchange">
       <from uri="timer://counting_camera?fixedRate=true&amp;period=1000" />
       <setHeader headerName="CamelHttpQuery">
           <simple>"mynameiskees.json"</simple>
       </setHeader>
       <to uri="http4://hellostackexchange?authUsername=kees&amp;authPassword=kees"/>
       <to uri = "log:result"/>
   </route>
</camelContext>