New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jersey Context #336

obigard opened this Issue Sep 11, 2014 · 0 comments


None yet
2 participants

obigard commented Sep 11, 2014

Action methods supports several injection sources, and one of them is the HttpParameter, for all values related to the HTTP Context. However, this support is limited to known values such as the Request, the Context itself, HTTP Header, Cookies... It would be nice to support the instantiation of custom object.

To provide such feature, we should propose an ParameterFactory service responsible for creating an instance of a given type from the current HTTP Context. When a parameter is annotated with @HttpParameter, it would check if we have a matching ParameterFactory and if it's the case, delegate the construction to this service provider.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment