Javadoc
We use
org.apache.http.entity.FileEntity as the
HttpEntity implementation when the request OutputStream has been
saved to a File on disk (because it was too large to fit into memory see however, we have to delete
the File supporting the FileEntity
, 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. For the enclosing parent class (
ApacheHttpClient4Engine ) to be
able to get a handle to this content File and delete it, this class expose the content File.
This class is private scoped to prevent access to this content File outside of the parent class.