Package de.xima.fc.http.params
Interface ICustomBodyDataBuilder<Self>
- All Superinterfaces:
IHttpBodyBuilder
- All Known Implementing Classes:
CustomBodyDataBuilder
Body builder for writing custom content to an HTTP request
- Author:
- XIMA MEDIA GmbH, Dresden
-
Method Summary
Modifier and TypeMethodDescriptionvoid
overrideContentType
(String contentType) Method to override the content typesetBodyData
(StringData data) Methods inherited from interface de.xima.fc.http.params.IHttpBodyBuilder
build
-
Method Details
-
setBodyData
- Parameters:
data
- The custom data string to set to the body- Returns:
- This builder for chaining method calls.
-
overrideContentType
void overrideContentType(String contentType) throws org.apache.http.ParseException, UnsupportedCharsetException Method to override the content type- Parameters:
contentType
- The content type to set- Throws:
org.apache.http.ParseException
- On errors while parsing the content typeUnsupportedCharsetException
- On errors while parsing the charset for the content type
-