eclipse-ee4j / eclipse-ee4j/jersey

Proxying a request

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

Description

As the mailing list is inactive, this looks like the the only place to ask questions.

What is the easiest way to proxy a request with Jersey? I.e. whatever request a resource implementation receives, it needs to send it further using the Client API.

Do I really need to reconstruct everything (media types, entity, headers) from `UriInfo`, `HttpHeaders` etc. using the Client API? Parse the entities using the readers only for them to be serialized again using the writers?

If there is a `Response` class shared by the server and the client, why isn't there a corresponding `Request` class? (`javax.ws.rs.core.Request` is not that.)

Unless I'm missing something, this looks like an omission in the uniform interface implementation.

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.