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

2017-02-20 Thread slew77
Hi, The motivation is to protect the system from dealing with a message that larger than anticipated. Ideally I want to do this as the message is streamed to us, rather than doing any type of conversion to string after it's already been fully received. I also don't want to wait for the codec to f

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

2017-02-13 Thread Siano, Stephan
al Message- From: souciance [mailto:souciance.eqdam.ras...@gmail.com] Sent: Montag, 13. Februar 2017 12:25 To: users@camel.apache.org Subject: Re: Netty4 HL7 - reject messages larger than a specified size Just a guess, but can't you convert the byte array into a string and verify the size?

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

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.