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