<div dir="ltr">hi Stuart,<div>I have a ResponseCommitListener added to my handler, I want this to write to the cache, so that my reponseWrapper will take of the error handling if the ResponsecommitListener faces any error while storing the response to cache.</div><div><br></div><div>I understand HttpResponseConduit constructs the headers and then pushes the response.</div><div>But the confusion is, how will i get a access to response Headers and body in the my ResponseCommitListener? </div><div><br></div><div> </div><div>My approach is valid? if not ,any suggestion?</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 27, 2017 at 8:03 AM, Stuart Douglas <span dir="ltr">&lt;<a href="mailto:sdouglas@redhat.com" target="_blank">sdouglas@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Whatever code is writing to the cache needs to just hold onto the<br>
exchange and send an error response as required.<br>
<br>
Stuart<br>
<div><div class="h5"><br>
On Fri, Feb 24, 2017 at 5:31 PM, Rohan Emmanuel<br>
&lt;<a href="mailto:rohan.emmanuel07@gmail.com">rohan.emmanuel07@gmail.com</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt; i had a similar query, i want to store the entire response for my book<br>
&gt; keeping , before it is flush out on to socket connection.<br>
&gt; if while storing the response(using a cache to store) any IO error occurs ,<br>
&gt; i want to send out 500 error instead.<br>
&gt;<br>
&gt; Any thoughts on how can this be achieved?<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Regards,<br>
&gt; Rohan Emmanuel<br>
&gt;<br>
</div></div>&gt; ______________________________<wbr>_________________<br>
&gt; undertow-dev mailing list<br>
&gt; <a href="mailto:undertow-dev@lists.jboss.org">undertow-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/undertow-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/undertow-dev</a><br>
______________________________<wbr>_________________<br>
undertow-dev mailing list<br>
<a href="mailto:undertow-dev@lists.jboss.org">undertow-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/undertow-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/undertow-dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Regards,<br>Rohan Emmanuel</div></div>
</div>