[
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?
org.eclipse.jetty.http.MultiPart.Part has the following documented API.
- Joakim
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.
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