/** * Invoke the request using <code>PATCH</code> method with given <code>entity</code> request payload and receive * a response back. * @param <T> Response type * @param entity Request payload * @param responseType Expected response payload type * @return {@link ResponseEntity} object as a result of the request invocation * @throws HttpClientInvocationException Internal invocation failure (for example, an I/O error on communication * channel or expected and actual payload type mismatch) * @throws UnsuccessfulResponseException In case the status code of the response returned by the server is not a * successful type status code, i.e. it is not a <code>2xx</code> status code */ @Override default <T> ResponseEntity<T> patch(RequestEntity<?> entity, ResponseType<T> responseType) { return invoke(HttpMethod.PATCH, entity, responseType); }
/** * Invoke the request using <code>POST</code> method with given <code>entity</code> request payload and receive * a response back. * <p> * The response type is conventionally of {@link Void} type, because no response paylod is expected from this * invocation. Refer to the other <code>post</code> methods to obtain a response payload. * </p> * @param entity Request payload * @return {@link ResponseEntity} object as a result of the request invocation * @throws HttpClientInvocationException Internal invocation failure (for example, an I/O error on communication * channel or expected and actual payload type mismatch) */ @Override default ResponseEntity<Void> post(RequestEntity<?> entity) { return invoke(HttpMethod.POST, entity, ResponseType.of(Void.class)); }
/** * Invoke the request using <code>PUT</code> method with given <code>entity</code> request payload and receive a * response back. * @param <T> Response type * @param entity Request payload * @param responseType Expected response payload type * @return {@link ResponseEntity} object as a result of the request invocation * @throws HttpClientInvocationException Internal invocation failure (for example, an I/O error on communication * channel or expected and actual payload type mismatch) */ @Override default <T> ResponseEntity<T> put(RequestEntity<?> entity, ResponseType<T> responseType) { return invoke(HttpMethod.PUT, entity, responseType); }
/** * Invoke the request using <code>POST</code> method with given <code>entity</code> request payload and receive * a response back. * @param <T> Response type * @param entity Request payload * @param responseType Expected response payload type * @return {@link ResponseEntity} object as a result of the request invocation * @throws HttpClientInvocationException Internal invocation failure (for example, an I/O error on communication * channel or expected and actual payload type mismatch) */ @Override default <T> ResponseEntity<T> post(RequestEntity<?> entity, Class<T> responseType) { return invoke(HttpMethod.POST, entity, ResponseType.of(responseType)); }
/** * Invoke the request using <code>PATCH</code> method with given <code>entity</code> request payload and receive * a response back. * @param <T> Response type * @param entity Request payload * @param responseType Expected response payload type * @return {@link ResponseEntity} object as a result of the request invocation * @throws HttpClientInvocationException Internal invocation failure (for example, an I/O error on communication * channel or expected and actual payload type mismatch) * @throws UnsuccessfulResponseException In case the status code of the response returned by the server is not a * successful type status code, i.e. it is not a <code>2xx</code> status code */ @Override default <T> ResponseEntity<T> patch(RequestEntity<?> entity, Class<T> responseType) { return invoke(HttpMethod.PATCH, entity, ResponseType.of(responseType)); }
/** * Invoke the request using <code>PUT</code> method with given <code>entity</code> request payload and receive a * response back. * <p> * The response type is conventionally of {@link Void} type, because no response paylod is expected from this * invocation. Refer to the other <code>post</code> methods to obtain a response payload. * </p> * @param entity Request payload * @return {@link ResponseEntity} object as a result of the request invocation * @throws HttpClientInvocationException Internal invocation failure (for example, an I/O error on communication * channel or expected and actual payload type mismatch) */ @Override default ResponseEntity<Void> put(RequestEntity<?> entity) { return invoke(HttpMethod.PUT, entity, ResponseType.of(Void.class)); }
/** * Invoke the request using <code>TRACE</code> method and receive a response back. * <p> * The response type is conventionally of {@link Void} type, because no response paylod is expected from this * invocation. Refer to the other <code>post</code> methods to obtain a response payload. * </p> * @return {@link ResponseEntity} object as a result of the request invocation * @throws HttpClientInvocationException Internal invocation failure (for example, an I/O error on communication * channel or expected and actual payload type mismatch) */ @Override default ResponseEntity<Void> trace() { return invoke(HttpMethod.TRACE, null, ResponseType.of(Void.class)); }
/** * Invoke the request using <code>PUT</code> method with given <code>entity</code> request payload and receive a * response back. * @param <T> Response type * @param entity Request payload * @param responseType Expected response payload type * @return {@link ResponseEntity} object as a result of the request invocation * @throws HttpClientInvocationException Internal invocation failure (for example, an I/O error on communication * channel or expected and actual payload type mismatch) */ @Override default <T> ResponseEntity<T> put(RequestEntity<?> entity, Class<T> responseType) { return invoke(HttpMethod.PUT, entity, ResponseType.of(responseType)); }
/** * Invoke the request using <code>OPTIONS</code> method and receive a response back. * @param <T> Response type * @param responseType Response payload generic type representation * @return {@link ResponseEntity} object as a result of the request invocation * @throws HttpClientInvocationException Internal invocation failure (for example, an I/O error on communication * channel or expected and actual payload type mismatch) */ @Override default <T> ResponseEntity<T> options(ResponseType<T> responseType) { return invoke(HttpMethod.OPTIONS, null, responseType); }
/** * Invoke the request using <code>DELETE</code> method and receive a response back. * @param <T> Response type * @param responseType Response payload generic type representation * @return {@link ResponseEntity} object as a result of the request invocation * @throws HttpClientInvocationException Internal invocation failure (for example, an I/O error on communication * channel or expected and actual payload type mismatch) */ @Override default <T> ResponseEntity<T> delete(ResponseType<T> responseType) { return invoke(HttpMethod.DELETE, null, responseType); }
/** * Invoke the request using <code>GET</code> method and receive a response back. * @param <T> Response type * @param responseType Expected response payload type * @return {@link ResponseEntity} object as a result of the request invocation * @throws HttpClientInvocationException Internal invocation failure (for example, an I/O error on communication * channel or expected and actual payload type mismatch) */ @Override default <T> ResponseEntity<T> get(ResponseType<T> responseType) { return invoke(HttpMethod.GET, null, responseType); }
/** * Invoke the request using <code>POST</code> method with given <code>entity</code> request payload and receive * a response back. * @param <T> Response type * @param entity Request payload * @param responseType Expected response payload type * @return {@link ResponseEntity} object as a result of the request invocation * @throws HttpClientInvocationException Internal invocation failure (for example, an I/O error on communication * channel or expected and actual payload type mismatch) */ @Override default <T> ResponseEntity<T> post(RequestEntity<?> entity, ResponseType<T> responseType) { return invoke(HttpMethod.POST, entity, responseType); }
/** * Invoke the request using <code>OPTIONS</code> method and receive a response back. * <p> * The response type is conventionally of {@link Void} type, because no response paylod is expected from this * invocation. Refer to the other <code>post</code> methods to obtain a response payload. * </p> * @return {@link ResponseEntity} object as a result of the request invocation * @throws HttpClientInvocationException Internal invocation failure (for example, an I/O error on communication * channel) */ @Override default ResponseEntity<Void> options() { return invoke(HttpMethod.OPTIONS, null, ResponseType.of(Void.class)); }
/** * Invoke the request using <code>DELETE</code> method and receive a response back. * <p> * The response type is conventionally of {@link Void} type, because no response paylod is expected from this * invocation. Refer to the other <code>post</code> methods to obtain a response payload. * </p> * @return {@link ResponseEntity} object as a result of the request invocation * @throws HttpClientInvocationException Internal invocation failure (for example, an I/O error on communication * channel) */ @Override default ResponseEntity<Void> delete() { return invoke(HttpMethod.DELETE, null, ResponseType.of(Void.class)); }
/** * Invoke the request using <code>TRACE</code> method and receive a response back. * @param <T> Response type * @param responseType Response payload generic type representation * @return {@link ResponseEntity} object as a result of the request invocation * @throws HttpClientInvocationException Internal invocation failure (for example, an I/O error on communication * channel or expected and actual payload type mismatch) */ @Override default <T> ResponseEntity<T> trace(ResponseType<T> responseType) { return invoke(HttpMethod.TRACE, null, responseType); }
/** * Invoke the request using <code>GET</code> method and receive a response back. * @param <T> Response type * @param responseType Expected response payload type * @return {@link ResponseEntity} object as a result of the request invocation * @throws HttpClientInvocationException Internal invocation failure (for example, an I/O error on communication * channel or expected and actual payload type mismatch) */ @Override default <T> ResponseEntity<T> get(Class<T> responseType) { return invoke(HttpMethod.GET, null, ResponseType.of(responseType)); }
/** * Invoke the request using <code>TRACE</code> method and receive a response back. * @param <T> Response type * @param responseType Expected response payload type * @return {@link ResponseEntity} object as a result of the request invocation * @throws HttpClientInvocationException Internal invocation failure (for example, an I/O error on communication * channel or expected and actual payload type mismatch) */ @Override default <T> ResponseEntity<T> trace(Class<T> responseType) { return invoke(HttpMethod.TRACE, null, ResponseType.of(responseType)); }
/** * Invoke the request using <code>DELETE</code> method and receive a response back. * @param <T> Response type * @param responseType Expected response payload type * @return {@link ResponseEntity} object as a result of the request invocation * @throws HttpClientInvocationException Internal invocation failure (for example, an I/O error on communication * channel or expected and actual payload type mismatch) */ @Override default <T> ResponseEntity<T> delete(Class<T> responseType) { return invoke(HttpMethod.DELETE, null, ResponseType.of(responseType)); }
/** * Invoke the request using <code>HEAD</code> method and receive a response back. * @return {@link ResponseEntity} object as a result of the request invocation * @throws HttpClientInvocationException Internal invocation failure (for example, an I/O error on communication * channel or expected and actual payload type mismatch) */ @Override default ResponseEntity<Void> head() { return invoke(HttpMethod.HEAD, null, ResponseType.of(Void.class)); }
/** * Invoke the request using <code>OPTIONS</code> method and receive a response back. * @param <T> Response type * @param responseType Expected response payload type * @return {@link ResponseEntity} object as a result of the request invocation * @throws HttpClientInvocationException Internal invocation failure (for example, an I/O error on communication * channel or expected and actual payload type mismatch) */ @Override default <T> ResponseEntity<T> options(Class<T> responseType) { return invoke(HttpMethod.OPTIONS, null, ResponseType.of(responseType)); }