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 TypeMethodDescriptionvoidprepare(AdvancedHttpRequestWithBody request) Sets the content length of the file as request header.voidprocess(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:
processin interfaceContent- Parameters:
output- output stream- Throws:
IOException
-