Package sonia.scm.net.ahc
Class RawContent
java.lang.Object
sonia.scm.net.ahc.RawContent
- All Implemented Interfaces:
Content
- Direct Known Subclasses:
StringContent
Byte array content for
AdvancedHttpRequestWithBody
.- Since:
- 1.46
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
prepare
(AdvancedHttpRequestWithBody request) Sets the length of the byte array as http header.void
process
(OutputStream output) Writes the byte array to the output stream.
-
Constructor Details
-
RawContent
public RawContent(byte[] data)
-
-
Method Details
-
prepare
Sets the length of the byte array as http header. -
process
Writes the byte array to the output stream.- Specified by:
process
in interfaceContent
- Parameters:
output
- output stream- Throws:
IOException
-