Class JsonFormWriter
java.lang.Object
feign.form.multipart.AbstractWriter
org.springframework.cloud.openfeign.support.AbstractFormWriter
org.springframework.cloud.openfeign.support.JsonFormWriter
- All Implemented Interfaces:
feign.form.multipart.Writer
- Author:
- Darren Foong
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.http.MediaTypeprotected StringwriteAsString(Object object) Methods inherited from class org.springframework.cloud.openfeign.support.AbstractFormWriter
isApplicable, writeMethods inherited from class feign.form.multipart.AbstractWriter
write, writeFileMetadata
-
Constructor Details
-
JsonFormWriter
public JsonFormWriter()
-
-
Method Details
-
getContentType
protected org.springframework.http.MediaType getContentType()- Specified by:
getContentTypein classAbstractFormWriter
-
writeAsString
- Specified by:
writeAsStringin classAbstractFormWriter- Throws:
IOException
-