Package org.jboss.resteasy.client.core.executors
package org.jboss.resteasy.client.core.executors
-
ClassDescriptionWe use
FileEntity
as theHttpEntity
implementation when the request OutputStream has been saved to a File on disk (because it was too large to fit into memory seeRestCFHttpClientExecutor#writeRequestBodyToOutputStream(ClientRequest)
); however, we have to delete the File supporting theFileEntity
, otherwise the disk will soon run out of space - remember that there can be very huge files, in GB range, processed on a regular basis - and FileEntity exposes its content File as a protected field.Enumeration to represent memory units.