public void build(ClientRequest request, Object object) { request.body(mediaType, object, type, genericType, annotations); }
public void build(ClientRequest request, Object object) { request.body(mediaType, object, type, genericType, annotations); }
public void build(ClientRequest request, Object object) { request.body(mediaType, object, type, genericType, annotations); }
public void build(ClientRequest request, Object object) { request.body(mediaType, object, type, genericType, annotations); }
public ClientRequest body(MediaType contentType, Object data, Type genericType) { return body(contentType, data, data.getClass(), genericType, null); }
public ClientRequest body(MediaType contentType, Object data, Type genericType) { return body(contentType, data, data.getClass(), genericType, null); }
public ClientRequest body(MediaType contentType, Object data) { return body(contentType, data, data.getClass(), null, null); }
public ClientRequest body(MediaType contentType, Object data) { return body(contentType, data, data.getClass(), null, null); }
public ClientRequest body(String contentType, Object data) { return body(MediaType.valueOf(contentType), data, data.getClass(), null, null); }
public ClientRequest body(String contentType, Object data) { return body(MediaType.valueOf(contentType), data, data.getClass(), null, null); }
/** * Called back from * {@link RestfulHttpMethod#setUpArgs(ClientRequestConfigurer, JsonRepresentation)} */ public ClientRequestConfigurer body(final JsonRepresentation requestArgs) { clientRequest.body(MediaType.APPLICATION_JSON_TYPE, requestArgs.toString()); return this; }
protected static void addToRequestBody(ClientRequest restRequest, Object obj) throws Exception { String body = convertObjectToJsonString(obj); logger.debug( "]] " + body ); restRequest.body(MediaType.APPLICATION_JSON_TYPE, body); }
/** * Called back from * {@link HttpMethod#setUpArgs(ClientRequestConfigurer, JsonRepresentation)} */ ClientRequestConfigurer body(final JsonRepresentation requestArgs) { clientRequest.body(MediaType.APPLICATION_JSON_TYPE, requestArgs.toString()); return this; }
public ClientRequest body(MediaType contentType, Object data, GenericType genericType) { return body(contentType, data, genericType.getType(), genericType .getGenericType(), null); }
public ClientResponse<String> post(String url, String contentType, Object data) throws Exception { ClientRequest request = new ClientRequest(url); request.body(contentType, data); ClientResponse response = request.post(); return response; }
public ClientRequest body(MediaType contentType, Object data, GenericType genericType) { return body(contentType, data, genericType.getType(), genericType .getGenericType(), null); }
public ClientResponse<String> put(String url, String contentType, Object data) throws Exception { ClientRequest request = new ClientRequest(url); request.body(contentType, data); ClientResponse response = request.put(); return response; }
client.body(request.entity().getContentType(), request.entity().getEntity());