Re: Netty4 HL7 - reject messages larger than a specified size

2017-02-13 Thread slew77
Hi, Please can someone help with this? Thanks, Steve. -- View this message in context: http://camel.465427.n5.nabble.com/Netty4-HL7-reject-messages-larger-than-a-specified-size-tp5793695p5793826.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Netty4 HL7 - reject messages larger than a specified size

2017-02-13 Thread souciance
Just a guess, but can't you convert the byte array into a string and verify the size? On Mon, Feb 13, 2017 at 12:10 PM, slew77 [via Camel] < ml-node+s465427n5793826...@n5.nabble.com> wrote: > Hi, > > Please can someone help with this? > > Thanks, > Steve. > > -- > If y

REST-DSL Reference Manual

2017-02-13 Thread IanPea
Does there exist a complete REST-DSL Manual(Refernce) I see little extracts here and there, but some kind of Reference Manual, about all the features it has, seems to be nowhere :-) Possibly it could be in the FAQ . Kind regards Ian Pea. -- View this message in context: http://camel.46

Re: REST-DSL Reference Manual

2017-02-13 Thread Claus Ibsen
Hi The docs are here http://camel.apache.org/rest-dsl There are also unit tests and examples using rest-dsl https://github.com/apache/camel/tree/master/examples Then its also covered in some book such as Camel in Action 2 On Mon, Feb 13, 2017 at 8:24 PM, IanPea wrote: > > Does there exist a co

rest-search returning text/uri-list

2017-02-13 Thread IanPea
Would REST-DSL, handle(create) return-message,content-type Accept: text/uri-list ? Such uri-list, would be nice to return, as compact result, of a search on a REST-resource. Best regards Ian Pea -- View this message in context: http://camel.465427.n5.nabble.com/rest-

RE: Netty4 HL7 - reject messages larger than a specified size

2017-02-13 Thread Siano, Stephan
Hi, I would strongly recommend not to convert the byte array into a string, just to determine the size, a byte array has a length attribute (and first converting it into a String would triple the memory consumption (the original byte array plus the String (which uses two bytes per character)) w