eclipse-ee4j / eclipse-ee4j/jersey

Pass Annotations on AsyncResponse to Resume Method

Open
#4,767 0 comments 0 reactions 0 assignees View on GitHub
async AsyncResponse
Dominant language
Java
Stars
730
Forks
382
PR merge metrics
No merged PRs in 30d

Description

I am requesting a modification to the org.glassfish.jersey.server.ServerRuntime.AsyncResponder class to pass the annotations on the AsyncResponse parameter when the response is constructed. This would put it inline with how the response is constructed with a synchronous response, using the annotations on the method. Please let me know what you think.

I see three classes that need modifying:

- org.glassfish.jersey.server.AsyncContext to allow annotations to be set.
- The aforementioned org.glassfish.jersey.server.ServerRuntime.AsyncResponder which will implement the method in AsyncContext and use the annotations for response processing.
- org.glassfish.jersey.server.internal.inject.AsyncResponseValueParamProvider to set the annotations on the AsyncContext

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.