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.MediaType
protected String
writeAsString
(Object object) Methods inherited from class org.springframework.cloud.openfeign.support.AbstractFormWriter
isApplicable, write
Methods 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:
getContentType
in classAbstractFormWriter
-
writeAsString
- Specified by:
writeAsString
in classAbstractFormWriter
- Throws:
IOException
-