Re: Jetty component. Is it possible do nut put request body into header?
Thanks for your reply. I have already found how to fix this problem. I extended DefaultHttpBinding and overridden populateRequestParameters() method. It couldn't use removeHeaders() in camel dsl because header which contains request body didn't have static name. There were such code: String[] pair = param.split(=, 2); String name = URLDecoder.decode(pair[0], charset); String value = URLDecoder.decode(pair[1], charset); So I couldn't know header name. Regards, Evgeniy -- View this message in context: http://camel.465427.n5.nabble.com/Jetty-component-Is-it-possible-do-not-put-request-body-into-header-tp5735358p5735428.html Sent from the Camel - Users mailing list archive at Nabble.com.
Jetty component. Is it possible do nut put request body into header?
I work with big messages(about 1mb) and jetty component reads the message body into camel exchange header. It causes such errors: WARN header full: java.lang.RuntimeException: Header6144 So, how can I make jetty component do not put HttpRequest body into headers? Regards, Evgeniy -- View this message in context: http://camel.465427.n5.nabble.com/Jetty-component-Is-it-possible-do-nut-put-request-body-into-header-tp5735358.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Jetty component. Is it possible do nut put request body into header?
Can I have a look at your camel route? It could be easy to remove the message header just by using the removeHeaders DSL[1]. [1]http://camel.apache.org/how-to-avoid-sending-some-or-all-message-headers.html -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese) Twitter: willemjiang Weibo: 姜宁willem On Tuesday, July 9, 2013 at 11:33 PM, Evgeniy wrote: I work with big messages(about 1mb) and jetty component reads the message body into camel exchange header. It causes such errors: WARN header full: java.lang.RuntimeException: Header6144 So, how can I make jetty component do not put HttpRequest body into headers? Regards, Evgeniy -- View this message in context: http://camel.465427.n5.nabble.com/Jetty-component-Is-it-possible-do-nut-put-request-body-into-header-tp5735358.html Sent from the Camel - Users mailing list archive at Nabble.com (http://Nabble.com).