rest - Apache Camel Restlet Producer body key -


I have a problem to recycle the body. My passage in Apache camels is:

 from  ("timer: msgGen? Period = 2000") .setBody (simple ("one test") .to ("restlet: http: // Local host: 8888 / restletMethod = "post");   

Localhost: 8888 is Fitzler ()

There is race-response on intelligence:

  A% 20 test and breadcrumb id = ID-W530-60491-1415112773228-0-11 and removed time = Mars% 20 Nov% 2004% 2015% 3A 53% 3A 066% 20 CETE 202014  

Better reading Encoded for:

  A test and breadcrumb id = id-W530-60491-1415112773228 -0-11 and removed time = Tuesday Nov 04 15:53:06 CET 2014  

But I think it should be:

  body = a test & amp; BreadcrumbId = ID-W530-60491-1415112773228-0-11 and removed time = Tuesday, November 04 15:53:06 CET 2014  

The key "body" is missing, or am I Do I know incorrectly?

Is this a bug or a feature? How can I solve this? To get a key-value pair?

Thanks

OK, I solved this problem:

From
  ("timer: msgGen? Period = 2000") .setBody (simple ("A Test")). ("Http4: // localhost: 8888 /");  

You need this behavior dependencies:

  & lt; Dependency & gt; & Lt; Group & gt; Org.apache.camel & lt; / Group & gt; & Lt; ArtifactId & gt; Camel-http4 & lt; / ArtifactId> & Lt; Version & gt; 2.14.0 & lt; / Edition & gt; & Lt; / Dependencies & gt;  

Thanks for the help


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -