Package sonia.scm.net.ahc
Interface Content
- All Known Implementing Classes:
ByteSourceContent
,FileContent
,RawContent
,StringContent
public interface Content
Content of a
AdvancedHttpRequestWithBody
.- Since:
- 1.46
-
Method Summary
Modifier and TypeMethodDescriptionvoid
prepare
(AdvancedHttpRequestWithBody request) Prepares theAdvancedHttpRequestWithBody
for the request content.void
process
(OutputStream output) Copies the content to the output stream.
-
Method Details
-
prepare
Prepares theAdvancedHttpRequestWithBody
for the request content. Implementations can set the content type, content length or custom headers for the request.- Parameters:
request
- request- Throws:
IOException
-
process
Copies the content to the output stream.- Parameters:
output
- output stream- Throws:
IOException
-