/** * Sets headers on the request. * * @param values The header values. * @return This object (for method chaining). * @throws RestCallException */ public RestCall headers(Map<String,Object> values) throws RestCallException { return header(null, values, false, null, null); }
/** * Sets the client version by setting the value for the <js>"X-Client-Version"</js> header. * * @param version The version string (e.g. <js>"1.2.3"</js>) * @return This object (for method chaining). * @throws RestCallException */ public RestCall clientVersion(String version) throws RestCallException { return header("X-Client-Version", version); }
/** * Sets <code>Debug: value</code> header on this request. * * @return This object (for method chaining). * @throws RestCallException */ public RestCall debug() throws RestCallException { header("Debug", true); return this; }
/** * Sets headers on the request. * * @param values The header values. * @return This object (for method chaining). * @throws RestCallException */ public RestCall headers(Map<String,Object> values) throws RestCallException { return header(null, values, false, null, null); }
/** * Sets the client version by setting the value for the <js>"X-Client-Version"</js> header. * * @param version The version string (e.g. <js>"1.2.3"</js>) * @return This object (for method chaining). * @throws RestCallException */ public RestCall clientVersion(String version) throws RestCallException { return header("X-Client-Version", version); }
/** * Sets the client version by setting the value for the <js>"X-Client-Version"</js> header. * * @param version The version string (e.g. <js>"1.2.3"</js>) * @return This object (for method chaining). * @throws RestCallException */ public RestCall clientVersion(String version) throws RestCallException { return header("X-Client-Version", version); }
/** * Sets headers on the request. * * @param values The header values. * @return This object (for method chaining). * @throws RestCallException */ public RestCall headers(Map<String,Object> values) throws RestCallException { return header(null, values, false, null, null); }
/** * Sets <code>Debug: value</code> header on this request. * * @return This object (for method chaining). * @throws RestCallException */ public RestCall debug() throws RestCallException { header("Debug", true); return this; }
/** * Sets the value for the <code>Authorization</code> request header. * * <p> * This is a shortcut for calling <code>header(<js>"Authorization"</js>, value);</code> * * @param value The new header value. * @return This object (for method chaining). * @throws RestCallException */ public RestCall authorization(Object value) throws RestCallException { return header("Authorization", value); }
/** * Sets the value for the <code>Connection</code> request header. * * <p> * This is a shortcut for calling <code>header(<js>"Connection"</js>, value);</code> * * @param value The new header value. * @return This object (for method chaining). * @throws RestCallException */ public RestCall connection(Object value) throws RestCallException { return header("Connection", value); }
/** * Sets the value for the <code>Host</code> request header. * * <p> * This is a shortcut for calling <code>header(<js>"Host"</js>, value);</code> * * @param value The new header value. * @return This object (for method chaining). * @throws RestCallException */ public RestCall host(Object value) throws RestCallException { return header("Host", value); }
/** * Sets the value for the <code>Referer</code> request header. * * <p> * This is a shortcut for calling <code>header(<js>"Referer"</js>, value);</code> * * @param value The new header value. * @return This object (for method chaining). * @throws RestCallException */ public RestCall referer(Object value) throws RestCallException { return header("Referer", value); }
/** * Sets <code>Debug: value</code> header on this request. * * @return This object (for method chaining). * @throws RestCallException */ public RestCall debug() throws RestCallException { header("Debug", true); return this; }
/** * Sets the value for the <code>If-Match</code> request header. * * <p> * This is a shortcut for calling <code>header(<js>"If-Match"</js>, value);</code> * * @param value The new header value. * @return This object (for method chaining). * @throws RestCallException */ public RestCall ifMatch(Object value) throws RestCallException { return header("If-Match", value); }
/** * Sets the value for the <code>Origin</code> request header. * * <p> * This is a shortcut for calling <code>header(<js>"Origin"</js>, value);</code> * * @param value The new header value. * @return This object (for method chaining). * @throws RestCallException */ public RestCall origin(Object value) throws RestCallException { return header("Origin", value); }
/** * Sets the value for the <code>Warning</code> request header. * * <p> * This is a shortcut for calling <code>header(<js>"Warning"</js>, value);</code> * * @param value The new header value. * @return This object (for method chaining). * @throws RestCallException */ public RestCall warning(Object value) throws RestCallException { return header("Warning", value); }
/** * Sets the value for the <code>Accept-Language</code> request header. * * <p> * This is a shortcut for calling <code>header(<js>"Accept-Language"</js>, value);</code> * * @param value The new header value. * @return This object (for method chaining). * @throws RestCallException */ public RestCall acceptLanguage(Object value) throws RestCallException { return header("Accept-Language", value); }
/** * Sets the value for the <code>Authorization</code> request header. * * <p> * This is a shortcut for calling <code>header(<js>"Authorization"</js>, value);</code> * * @param value The new header value. * @return This object (for method chaining). * @throws RestCallException */ public RestCall authorization(Object value) throws RestCallException { return header("Authorization", value); }
/** * Sets the value for the <code>Expect</code> request header. * * <p> * This is a shortcut for calling <code>header(<js>"Expect"</js>, value);</code> * * @param value The new header value. * @return This object (for method chaining). * @throws RestCallException */ public RestCall expect(Object value) throws RestCallException { return header("Expect", value); }
/** * Sets the value for the <code>TE</code> request header. * * <p> * This is a shortcut for calling <code>header(<js>"TE"</js>, value);</code> * * @param value The new header value. * @return This object (for method chaining). * @throws RestCallException */ public RestCall te(Object value) throws RestCallException { return header("TE", value); }