public abstract class AbstractWriter extends Object implements Writer
| Constructor and Description |
|---|
AbstractWriter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
write(Output output,
String key,
Object value)
Writes data for it's children.
|
void |
write(Output output,
String boundary,
String key,
Object value)
Processing form data to request body.
|
protected void |
writeFileMetadata(Output output,
String name,
String fileName,
String contentType)
Writes file's metadata.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisApplicablepublic void write(Output output, String boundary, String key, Object value) throws EncodeException
Writerwrite in interface Writeroutput - output writer.boundary - data boundary.key - name for piece of data.value - piece of data.EncodeException - in case of any encode exceptionprotected void write(Output output, String key, Object value) throws EncodeException
output - output writer.key - name for piece of data.value - piece of data.EncodeException - in case of write errorsprotected void writeFileMetadata(Output output, String name, String fileName, String contentType)
output - output writer.name - name for piece of data.fileName - file name.contentType - type of file content. May be the null, in that case it will be
determined by file name.Copyright © 2012–2024 OpenFeign. All rights reserved.