users@jax-rs-spec.java.net

[jax-rs-spec users] Proposal for tiny API extension

From: Markus KARG <markus_at_headcrashing.eu>
Date: Sun, 25 Sep 2016 11:53:47 +0200

Experts,

 

it is tedious that one cannot provide a proxy URL in a portable way (see
also https://java.net/jira/browse/JAX_RS_SPEC-492).

 

I assume that all current JAX-RS 2.0 compliant containers already use native
literals to enable HTTP proxies, so it should be done in minutes to
implement some additional, cross-product literals to do the same in a
portable way. :-)

 

Hence I'd like to propose a tiny API extension to be included in JSR 370. It
should take less than one hour to implement, but would help people to write
portable code:

 

Let us extend javax.ws.rs.core.Configuration by the following literals:

 

public static String PROXY_URL = "javax.ws.rs.core.ProxyURL";

 

public static String PROXY_USER = "javax.ws.rs.core.ProxyUser";

 

public static String PROXY_PASSWORD = "javax.ws.rs.core.ProxyPassword";

 

Comments, votes? :-)

 

-Markus