Package de.xima.fc.http.params
Interface IFileBodyBuilder<Self>
-
- All Superinterfaces:
IHttpBodyBuilder
- All Known Implementing Classes:
FileBodyBuilder
public interface IFileBodyBuilder<Self> extends IHttpBodyBuilder
Body builder for writing the content of an file to an HTTP request- Author:
- XIMA MEDIA GmbH, Dresden
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
overrideContentType(String contentType)
Method to override the content typeSelf
setFile(BinaryData data)
-
Methods inherited from interface de.xima.fc.http.params.IHttpBodyBuilder
build
-
-
-
-
Method Detail
-
setFile
Self setFile(BinaryData data)
- Parameters:
data
- The file whose content should be sent as request 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
-
-