Where can I find some examples of ChannelLocal in use?<div><br></div><div>I&#39;m not getting the results I expect, but I don&#39;t think I&#39;m using it correctly either.</div><div><br></div><div>MD</div><div><br><br><div class="gmail_quote">
On Sun, Oct 16, 2011 at 7:14 AM, Norman Maurer <span dir="ltr">&lt;<a href="mailto:norman.maurer@googlemail.com">norman.maurer@googlemail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
You can set anything you want as attachment. But it&#39;s only visible in<br>
the same handler....<br>
<br>
If you want to share stuff between handler you should checkout ChannelLocal<br>
<br>
Bye<br>
Norman<br>
2011/10/16, Matt DeLuco &lt;<a href="mailto:list_usr@spacebox.net">list_usr@spacebox.net</a>&gt;:<br>
<div><div></div><div class="h5">&gt; Before composing this message I had noticed<br>
&gt; ChannelHandlerContext.setAttachment(Object) and getAttachment().  But<br>
&gt; for some reason I came to the conclusion that it wasn&#39;t intended for<br>
&gt; what I want to do.<br>
&gt;<br>
&gt; I came to that conclusion in part because I found it strange that it&#39;s<br>
&gt; only possible to set one attachment, rather than being able to attach<br>
&gt; a set (or map) of objects.  Could I just attach a map to the context<br>
&gt; and store whatever I want in that map, to pass objects between<br>
&gt; ChannelHandlers?<br>
&gt;<br>
&gt; MD<br>
&gt;<br>
&gt;<br>
&gt; On Sat, Oct 15, 2011 at 9:42 PM, Matt DeLuco &lt;<a href="mailto:list_usr@spacebox.net">list_usr@spacebox.net</a>&gt; wrote:<br>
&gt;&gt; Is it possible to pass data between ChannelHandlers, or store data<br>
&gt;&gt; somewhere that the handlers in a specific pipeline/channel can access<br>
&gt;&gt; throughout the lifetime of the request?<br>
&gt;&gt;<br>
&gt;&gt; For example, I have my own class for dealing with http cookies,<br>
&gt;&gt; &quot;CookieMap&quot;.  I&#39;d like to have a SimpleChannelHandler that creates a<br>
&gt;&gt; CookieMap to be used by handlers further upstream, and then sets the<br>
&gt;&gt; cookies in the CookieMap on the response on their way back downstream.<br>
&gt;&gt;<br>
&gt;&gt; MD<br>
&gt;&gt;<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; netty-users mailing list<br>
&gt; <a href="mailto:netty-users@lists.jboss.org">netty-users@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/netty-users" target="_blank">https://lists.jboss.org/mailman/listinfo/netty-users</a><br>
&gt;<br>
_______________________________________________<br>
netty-users mailing list<br>
<a href="mailto:netty-users@lists.jboss.org">netty-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/netty-users" target="_blank">https://lists.jboss.org/mailman/listinfo/netty-users</a><br>
</blockquote></div><br></div>