[muscle] Re: Another Java MUSCLE client patch

  • From: Jeremy Friesner <jaf@xxxxxxxxxxxx>
  • To: Lior Okman <lior.okman@xxxxxxxxxxxxxxxxxx>
  • Date: Thu, 11 Jan 2007 16:58:59 -0800

Hi Lior,

I've integrated your patch, plus I went in and made _outgoingEncoding a 
private variable, and added a getOutgoingEncoding() final-method that the 
subclasses use to access it instead of accessing it directly.  That way there 
is no way that a subclass can change the encoding without calling 
setOutgoingEncoding().

I've updated the muscle3.30b.zip again... this time I wrote a script so I can 
do it faster next time ;^)

Jeremy

On Thursday 11 January 2007 16:15, Lior Okman wrote:
> Hi Jeremy
>
>
> One last patch for today. :)
>
> This one adds a setOutgoingEncoding() to the AbstractMessageIOGateway
> interface and implementing classes. This way the client can choose to
> change the outgoing encoding dynamically, without needing to disconnect
> and reconnect to the server.
>
> Also, I split the or condition in the flatten() methods that checks for
> flatSize<32 and the default encoding, and prevented flattenedSize() from
> being called more than once in the MessageIOGateway classes.
>
>
> Thanks,
> Lior

Other related posts: