public static UniversalEntity create(ContentType contentType, File file, int chunkSize) { return create(contentType, file.toPath(), chunkSize); }
public static UniversalEntity create(ContentType contentType, File file, int chunkSize) { return create(contentType, file.toPath(), chunkSize); }
public static UniversalEntity create(ContentType contentType, File file, int chunkSize) { return create(contentType, file.toPath(), chunkSize); }
/** * Converts this FormData to a RequestEntity using the given encoding. */ public RequestEntity toEntity(HttpCharset charset) { return HttpEntities.create(ContentTypes.create(MediaTypes.APPLICATION_X_WWW_FORM_URLENCODED, charset), fields.render(charset)); }
/** * Converts this FormData to a RequestEntity using the given encoding. */ public RequestEntity toEntity(HttpCharset charset) { return HttpEntities.create(ContentTypes.create(MediaTypes.APPLICATION_X_WWW_FORM_URLENCODED, charset), fields.render(charset)); }
/** * Converts this FormData to a RequestEntity using the given encoding. */ public RequestEntity toEntity(HttpCharset charset) { return HttpEntities.create(ContentTypes.create(MediaTypes.APPLICATION_X_WWW_FORM_URLENCODED, charset), fields.render(charset)); }
/** * Converts this FormData to a RequestEntity using the given encoding. */ public RequestEntity toEntity(HttpCharset charset) { return HttpEntities.create(ContentTypes.create(MediaTypes.APPLICATION_X_WWW_FORM_URLENCODED, charset), fields.render(charset)); }
HttpEntities.create(optionalContentType.get(), ByteString.ByteStrings.fromString(payload.toString()))); } else { httpResponse = httpResponse.withEntity( HttpEntities.create(payload.toString())); if (optionalContentType.isPresent()) { httpResponse = httpResponse.withEntity( HttpEntities.create(optionalContentType.get(), rawPayload.array())); } else { httpResponse = httpResponse.withEntity( HttpEntities.create(rawPayload.array()));