Skip to content

Integrate Jakarta Servlet API into Hartshorn Web #1166

@GuusLieben

Description

@GuusLieben

Description

The initial version of Hartshorn Web was built around custom request/response interfaces. While this is technically sufficient, it lacks a 'well known' interface to the world. As such, we should support the Jakarta Servlet API, either with a custom implementation (not preferred) or by sufficiently updating implementations to support it (preferred).

Use case

We use Jakarta's APIs throughout Hartshorn (Jakarta Inject, Jakarta Annotations), which help us provide a commonly known API to new users (even if we don't strictly adhere to their specification).

For the web API this is all the more relevant, as the Jakarta Servlet API is by far the most common across Java web frameworks (Jetty, Spring, Javalin, Spark, etc). As such it has the most support from third party libraries (e.g. Apache Commons, Micrometer, Sentry, etc)

Related issues

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions