/** * Returns a parsed <code>Proxy-Authorization</code> header. * * @param value The <code>Proxy-Authorization</code> header string. * @return The parsed <code>Proxy-Authorization</code> header, or <jk>null</jk> if the string was null. */ public static ProxyAuthorization forString(String value) { if (value == null) return null; return new ProxyAuthorization(value); }
/** * Returns the <code>Proxy-Authorization</code> header on the request. * * <p> * Authorization credentials for connecting to a proxy. * * <h5 class='figure'>Example:</h5> * <p class='bcode w800'> * Proxy-Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ== * </p> * * @return The parsed <code>Proxy-Authorization</code> header on the request, or <jk>null</jk> if not found. */ public ProxyAuthorization getProxyAuthorization() { return ProxyAuthorization.forString(getString("Proxy-Authorization")); }
@RestMethod public String proxyAuthorization(ProxyAuthorization proxyAuthorization) { return proxyAuthorization.toString(); } @RestMethod
/** * Returns the <code>Proxy-Authorization</code> header on the request. * * <p> * Authorization credentials for connecting to a proxy. * * <h5 class='figure'>Example:</h5> * <p class='bcode w800'> * Proxy-Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ== * </p> * * @return The parsed <code>Proxy-Authorization</code> header on the request, or <jk>null</jk> if not found. */ public ProxyAuthorization getProxyAuthorization() { return ProxyAuthorization.forString(getString("Proxy-Authorization")); }
/** * Returns a parsed <code>Proxy-Authorization</code> header. * * @param value The <code>Proxy-Authorization</code> header string. * @return The parsed <code>Proxy-Authorization</code> header, or <jk>null</jk> if the string was null. */ public static ProxyAuthorization forString(String value) { if (value == null) return null; return new ProxyAuthorization(value); }
/** * Returns the <code>Proxy-Authorization</code> header on the request. * * <p> * Authorization credentials for connecting to a proxy. * * <h5 class='figure'>Example:</h5> * <p class='bcode w800'> * Proxy-Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ== * </p> * * @return The parsed <code>Proxy-Authorization</code> header on the request, or <jk>null</jk> if not found. */ public ProxyAuthorization getProxyAuthorization() { return ProxyAuthorization.forString(getString("Proxy-Authorization")); }
/** * Returns a parsed <code>Proxy-Authorization</code> header. * * @param value The <code>Proxy-Authorization</code> header string. * @return The parsed <code>Proxy-Authorization</code> header, or <jk>null</jk> if the string was null. */ public static ProxyAuthorization forString(String value) { if (value == null) return null; return new ProxyAuthorization(value); }