<div dir="ltr">Hi Michael,<div>yes, my usecase is: upload multiple images in one request (multipart).</div><div>If we manage to find time to work on it together, that's fine. </div><div>However I believe it would be the best to discuss during lunch and then work remotely (with pull requests).</div><div>Cheers, Balz</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 30, 2017 at 1:57 PM, Michael Wechner <span dir="ltr"><<a href="mailto:michael.wechner@wyona.com" target="_blank">michael.wechner@wyona.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div class="m_8144094493720917486moz-cite-prefix">Hi Balz<br>
<br>
I am not sure currently how to do this best.<br>
<br>
What about doing together a short hackthon?<br>
<br>
I am currently working on various REST interfaces for Yulup<br>
<br>
<a class="m_8144094493720917486moz-txt-link-freetext" href="https://www.yulup.com/en/documentation/swagger-ui/index.html" target="_blank">https://www.yulup.com/en/<wbr>documentation/swagger-ui/<wbr>index.html</a><br>
<br>
and I would like to add more interfaces and would be to upload
multiple images with one request, which I guess would also be your
usecase, right? Or what is your usecase?<br>
<br>
Thanks<br>
<br>
Michael<br>
<br>
<br>
Am 28.03.17 um 17:35 schrieb basZero:<br>
</div><div><div class="h5">
<blockquote type="cite">
<div dir="ltr">Hi,
<div><br>
</div>
<div>I want to extend my realm by a resource that can handle
multipart POST requests according to the Servlet Spec 3.0.</div>
<div><br>
</div>
<div>In order to make use of the Servlet 3.0 features, the
servlet class must be annotated by @MultipartConfig, e.g.</div>
<div><br>
</div>
<div>
<div>@MultipartConfig</div>
<div>public class YanelMultipartServlet extends HttpServlet {</div>
</div>
<div> ...</div>
<div>}</div>
<div><br>
</div>
<div>Currently I think everything is mapped to the YanelServlet
in web.xml</div>
<div><br>
</div>
<div>My question is: how should I extend Yanel?</div>
<div>What probably has to be done:</div>
<div><br>
</div>
<div>- Somehow extend web.xml so that a certain realm path gets
mapped to the new YanelMultipartServlet</div>
<div>- Maybe YanelMultipartServlet can be a subclass of
YanelServlet, which then would find out the mapped resource
and the processing of the request could still be done in the
resource.</div>
<div><br>
</div>
<div>So, how should I do this?</div>
<div><br>
</div>
<div>Use Case why I need this:</div>
<div>in Servlet 3.0 you can easily process all parts in a
multipart request like this:</div>
<div>Collection<Part> parts = request.getParts();<br>
</div>
<div><br>
</div>
<div>Then you can iterate over all parts.</div>
<div><br>
</div>
<div>But the getParts() method only works correctly if the
servlet is annotated by @MultipartConfig</div>
<div><br>
</div>
<div>Cheers, Balz</div>
<div><br>
</div>
</div>
<br>
<fieldset class="m_8144094493720917486mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
<br>
</div></div></div>
<br>--<br>
Yanel-development mailing list <a href="mailto:Yanel-development@wyona.com">Yanel-development@wyona.com</a><br>
<a href="http://mx2.wyona.com/cgi-bin/mailman/listinfo/yanel-development" rel="noreferrer" target="_blank">http://mx2.wyona.com/cgi-bin/<wbr>mailman/listinfo/yanel-<wbr>development</a><br></blockquote></div><br></div>