@Override public WebClient type(MediaType ct) { return (WebClient)super.type(ct); }
@Override public WebClient type(String type) { return (WebClient)super.type(type); }
@Override public WebClient type(String type) { return (WebClient)super.type(type); }
@Override public WebClient type(MediaType ct) { return (WebClient)super.type(ct); }
@Override public WebClient type(MediaType ct) { return (WebClient)super.type(ct); }
@Override public WebClient type(String type) { return (WebClient)super.type(type); }
/** * {@inheritDoc} */ @Override public Client type(MediaType ct) { return type(JAXRSUtils.mediaTypeToString(ct)); }
/** * {@inheritDoc} */ public Client type(MediaType ct) { return type(JAXRSUtils.mediaTypeToString(ct)); }
/** * {@inheritDoc} */ @Override public Client type(MediaType ct) { return type(JAXRSUtils.mediaTypeToString(ct)); }
/** * {@inheritDoc} */ public Client header(String name, Object... values) { if (values == null) { throw new IllegalArgumentException(); } if (HttpHeaders.CONTENT_TYPE.equals(name)) { if (values.length > 1) { throw new IllegalArgumentException("Content-Type can have a single value only"); } type(convertParamValue(values[0], null)); } else { for (Object o : values) { possiblyAddHeader(name, convertParamValue(o, null)); } } return this; }
/** * {@inheritDoc} */ @Override public Client header(String name, Object... values) { if (values == null) { throw new IllegalArgumentException(); } if (HttpHeaders.CONTENT_TYPE.equals(name)) { if (values.length > 1) { throw new IllegalArgumentException("Content-Type can have a single value only"); } type(convertParamValue(values[0], null)); } else { for (Object o : values) { possiblyAddHeader(name, convertParamValue(o, null)); } } return this; }
/** * {@inheritDoc} */ @Override public Client header(String name, Object... values) { if (values == null) { throw new IllegalArgumentException(); } if (HttpHeaders.CONTENT_TYPE.equals(name)) { if (values.length > 1) { throw new IllegalArgumentException("Content-Type can have a single value only"); } type(convertParamValue(values[0], null)); } else { for (Object o : values) { possiblyAddHeader(name, convertParamValue(o, null)); } } return this; }