title: Camel Route from Jetty to Absolute URL
body: <p>I have an <code>OSGi</code> bundle deployed on <code>Apache Karaf</code>. I have a simple camel route:</p>
  
  <pre><code>    &lt;camelContext trace="true" xmlns="http://camel.apache.org/schema/spring"&gt;
          &lt;route&gt;
              &lt;from uri="jetty:http://0.0.0.0:8282/services?handlers=securityHandler&amp;amp;matchOnUriPrefix=true"/&gt;
              &lt;setHeader headerName="CamelHttpQuery"&gt;
                  &lt;constant&gt;wt=xml&amp;amp;rows=1000000&amp;amp;fl=nid,title&amp;amp;fq=sm_vid_Third_parties_with_which_this_organisation_s_content_can_be_shared:%22Indeed%22&lt;/constant&gt;
              &lt;/setHeader&gt;
              &lt;to uri="http://172.28.128.158:8983/solr/targetjobs.co.uk.gtimedia.test/select/?"/&gt;
  
  &lt;!--        &lt;split&gt;
                  &lt;xpath&gt;//int[@name='nid']&lt;/xpath&gt;
              &lt;/split&gt;--&gt;
              &lt;convertBodyTo type="java.lang.String" /&gt;
          &lt;/route&gt;
      &lt;/camelContext&gt;
  </code></pre>
  
  <p>I can not get it working. When I invoke <code>http://localhost:8282/services</code> it should route to the <code>uri</code> specified in below the <code>setHeader</code>. Instead I am getting this exception:</p>
  
  <blockquote>
    <p>java.lang.IllegalArgumentException: Invalid uri: /services.
    If you are forwarding/bridging http endpoints, then enable the bridgeEndpoint
    option on the endpoint:
    Endpoint[<a href="http://172.28.128.158:8983/solr/targetjobs.co.uk.gtimedia.test/select/]" rel="noreferrer">http://172.28.128.158:8983/solr/targetjobs.co.uk.gtimedia.test/select/]</a></p>
  </blockquote>
  
  <p>It says that I need to enable bridge endpoint, but this is not an endpoint, it is an absolute URL to which I am trying to point my route.</p>
  
  <p>I have tried to set up <code>Spring</code> as shown <a href="http://camel.apache.org/http.html#HTTP-SettingMaxConnectionsPerHost" rel="noreferrer">here</a> but this did not work either.I have also tried to change this:</p>
  
  <pre><code>&lt;to uri="http://172.28.128.158:8983/solr/targetjobs.co.uk.gtimedia.test/select/?"/&gt;
  </code></pre>
  
  <p>to this:</p>
  
  <pre><code>&lt;to uri="jetty//http://172.28.128.158:8983/solr/targetjobs.co.uk.gtimedia.test/select/?"/&gt;
  </code></pre>
  
  <p>No success as well. Maybe someone knows how to route from <code>jetty</code> <code>uri</code> to absolute <code>url</code>? </p>