Package sonia.scm.net.ahc
Class FileContent
java.lang.Object
sonia.scm.net.ahc.FileContent
- All Implemented Interfaces:
Content
Sets the content of the file to the request.
- Since:
- 1.46
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
prepare
(AdvancedHttpRequestWithBody request) Sets the content length of the file as request header.void
process
(OutputStream output) Copies the content of the file to the output stream.
-
Constructor Details
-
FileContent
-
-
Method Details
-
prepare
Sets the content length of the file as request header. -
process
Copies the content of the file to the output stream.- Specified by:
process
in interfaceContent
- Parameters:
output
- output stream- Throws:
IOException
-