Netty codecs have "protected" method preventing easy reuse outside pipeline

Prashant Shewale pvshewale at gmail.com
Fri May 27 00:27:26 EDT 2011


I guess you can do the same using CodecEmbedder

On Thu, May 26, 2011 at 10:07 PM, Abraham Menacherry <
abrahammenacherry at gmail.com> wrote:

> Bruno,
>
> I am not asking to make the existing protected method public, but to add a
> new public method which does not take channel handler ctx parameter.
>
> This in my opinion will provide the easiest re-use of Netty provided coders
> outside a channel handler context. No need to make any additional classes
> from user perspective.
>
> For e.g. StringEncoder encoder = new StringEncoder()
> ChannelBuffer buffer = encoder.encode("MyString");
> Thanks,
> Abraham.
>
> --
> View this message in context:
> http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Netty-codecs-have-protected-method-preventing-easy-reuse-outside-pipeline-tp6380824p6407728.html
> Sent from the Netty User Group mailing list archive at Nabble.com.
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/netty-users/attachments/20110527/c0ceb432/attachment.html 


More information about the netty-users mailing list