Try with jetty:https://xxxxx

On Tue, May 28, 2013 at 8:01 AM, anand_tech <anand29...@gmail.com> wrote:
> Hi,
>
> I have a route like this in Java DSL
>
> from("servlet://abc/?matchOnUriPrefix=true")
>         .process(new Processor()
>                 {
>
>                         @Override
>                         public void process(Exchange arg0) throws Exception
>                         {
>                                 Message inMessage = arg0.getIn();
>                                 String query = 
> inMessage.getHeader(Exchange.HTTP_QUERY, String.class);
>                                 query+="&key="+"encrypted";
>                                 query+="&client="+"blahblah";
>                                 inMessage.setHeader(Exchange.HTTP_QUERY, 
> query);
>
>                         }
>                 })
>
>                 .to(ExchangePattern.InOut,
> "jetty://https://maps.googleapis.com/maps/api/place/photo?bridgeEndpoint=true&throwExceptionOnFailure=false&chunked=false";)
>
>
> The problem is that when jetty component sends http request it skips ":"
> character after https. Here are my logs:
>
> [2013-05-27 16:17:45,591] org.apache.camel.component.jetty.JettyHttpProducer
> DEBUG - Starting producer:
> Producer[https://maps.googleapis.com/maps/api/place/photo?bridgeEndpoint=true&throwExceptionOnFailure=false]
> [2013-05-27 16:17:45,592] org.apache.camel.impl.ProducerCache DEBUG - Adding
> to producer cache with key:
> Endpoint[https://maps.googleapis.com/maps/api/place/photo?bridgeEndpoint=true&throwExceptionOnFailure=false]
> for producer:
> Producer[https://maps.googleapis.com/maps/api/place/photo?bridgeEndpoint=true&throwExceptionOnFailure=false]
> [2013-05-27 16:17:45,593] org.apache.camel.processor.SendProcessor DEBUG -
>>>>>
> Endpoint[https://maps.googleapis.com/maps/api/place/photo?bridgeEndpoint=true&throwExceptionOnFailure=false]
> Exchange[Message: [Body is null]]
> [2013-05-27 16:17:45,599] org.apache.camel.component.jetty.JettyHttpProducer
> DEBUG - *Sending HTTP request to:
> https//maps.googleapis.com:443/maps/api/place/photo?chunked=false&maxwidth=80&photoreference=CnRwAAAAw2ZAy_2j-1qX0acePL_UPebtDtA7O6fFFsjX6tWn0gTWy_iKos50DnznRrjSuZeW90iYcyWYNLwnvpUAVWrdiGYL5HDPKODUFNvmR6jY9lMBRhtXSeTOGRnS3TIOqWDw3uw94gmCcPG-7iyMiPvHtRIQzOy5YEYPCjRjbjDXzCiTLRoUMG3S9rfMT-J0er4bLon_rSqQ_WQ&sensor=true&key=encrypted&client=blahblah*
> [2013-05-27 16:17:45,750]
> org.apache.camel.component.jetty.JettyContentExchange DEBUG - TaskComplete
> with state 7 for url:
> https//maps.googleapis.com:443/maps/api/place/photo?chunked=false&maxwidth=80&photoreference=CnRwAAAAw2ZAy_2j-1qX0acePL_UPebtDtA7O6fFFsjX6tWn0gTWy_iKos50DnznRrjSuZeW90iYcyWYNLwnvpUAVWrdiGYL5HDPKODUFNvmR6jY9lMBRhtXSeTOGRnS3TIOqWDw3uw94gmCcPG-7iyMiPvHtRIQzOy5YEYPCjRjbjDXzCiTLRoUMG3S9rfMT-J0er4bLon_rSqQ_WQ&sensor=true&key=encrypted&client=blahblah
> [2013-05-27 16:17:45,750]
> org.apache.camel.component.jetty.DefaultJettyHttpBinding DEBUG - HTTP
> responseCode: 404
>
> As you can see in the logs "bold" section it is making a http request to
> https//url.... instead of https://  Why is this happening ? Am i missing
> some configuration.
>
> Also i know that i can use http producer directly but the reason i am using
> jetty component is because i want to control the chunking of responses [ i
> need it to be off], and jetty component gives an easy configuration for
> that.
> TIA
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Using-jetty-component-for-http-producer-Weird-behavior-tp5733303.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
www.camelone.org: The open source integration conference.

Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cib...@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to