Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Jetty 12: org.eclipse.jetty.http.MultiPart.Part does not extend Servlet 6 jakarta.servlet.http.Part

How would I know which one I want?

On Thu, Sep 26, 2024 at 5:29 PM Joakim Erdfelt <joakim.erdfelt@xxxxxxxxx> wrote:
org.eclipse.jetty.http.MultiPart.Part has the following documented API.


- Joakim

On Thu, Sep 26, 2024 at 4:27 PM Joakim Erdfelt <joakim.erdfelt@xxxxxxxxx> wrote:
MultiPartFormData.parse() is for a Jetty Core Request object.

Jetty Core has no Servlet dependency, intentionally so.

All Servlet dependencies exist in the associated environment (eg: ee10 for Servlet 6)

If you want a `jakarta.servlet.httpPart` use the HttpServletRequest.getParts() API.

On Thu, Sep 26, 2024 at 3:45 PM Glen Peterson via jetty-users <jetty-users@xxxxxxxxxxx> wrote:
Thank you for Jetty.  I've enjoyed many good years with it!

I'm trying to upgrade from Jetty 11 to 12 and Servlet 5 to 6.

When I call: MultiPartFormData.Parser(MultiPart.extractBoundary(contentType))
...
parser.parse(request).whenComplete()...

I get back org.eclipse.jetty.http.MultiPartFormData.Parts which contains MultiPart.Part objects.  My old code was expecting jakarta.servlet.http.Part.  Is this the same thing?
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jetty-users

Back to the top