You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by mat <fo...@gmail.com> on 2007/12/03 10:57:14 UTC

Compress Filter?

I just wonder how to implement a compress filter(The one with Mina
compresses the whole message, However mine protocol needs only compressing
the body part of message)? Thanks.

Re: Compress Filter?

Posted by mat <fo...@gmail.com>.
Actually now I do the compression in the encoder class. That is why I was
thinking if it was neccessary add a compression filter to do the compression
job? Any suggestion? BTW, anyone used compression filter provided by Mina?

On 12/3/07, Mark <el...@gmail.com> wrote:
>
> for such a custom protocol, you will probably have to roll your own
> classes.  You should be able to use the compression filter as a guide
> though.
>
> --Mark
>
>
> On Dec 3, 2007 4:57 AM, mat <fo...@gmail.com> wrote:
>
> > I just wonder how to implement a compress filter(The one with Mina
> > compresses the whole message, However mine protocol needs only
> compressing
> > the body part of message)? Thanks.
> >
>
>
>
> --
> --------------------------------
> The adjuration to be "normal" seems shockingly repellent to me; I see
> neither hope nor comfort in sinking to that low level. I think it is
> ignorance that makes people think of abnormality only with horror and
> allows
> them to remain undismayed at the proximity of "normal" to average and
> mediocre. For surely anyone who achieves anything is, essentially,
> abnormal.
>    Dr. Karl Menninger
>

Re: Compress Filter?

Posted by Mark <el...@gmail.com>.
for such a custom protocol, you will probably have to roll your own
classes.  You should be able to use the compression filter as a guide
though.

--Mark


On Dec 3, 2007 4:57 AM, mat <fo...@gmail.com> wrote:

> I just wonder how to implement a compress filter(The one with Mina
> compresses the whole message, However mine protocol needs only compressing
> the body part of message)? Thanks.
>



-- 
--------------------------------
The adjuration to be "normal" seems shockingly repellent to me; I see
neither hope nor comfort in sinking to that low level. I think it is
ignorance that makes people think of abnormality only with horror and allows
them to remain undismayed at the proximity of "normal" to average and
mediocre. For surely anyone who achieves anything is, essentially, abnormal.
    Dr. Karl Menninger