|
|
|
@ -23,6 +23,8 @@ import java.lang.reflect.Type;
@@ -23,6 +23,8 @@ import java.lang.reflect.Type;
|
|
|
|
|
import java.nio.charset.Charset; |
|
|
|
|
import java.util.Collection; |
|
|
|
|
|
|
|
|
|
import org.apache.commons.logging.Log; |
|
|
|
|
import org.apache.commons.logging.LogFactory; |
|
|
|
|
import org.springframework.beans.factory.ObjectFactory; |
|
|
|
|
import org.springframework.boot.autoconfigure.web.HttpMessageConverters; |
|
|
|
|
import org.springframework.http.HttpHeaders; |
|
|
|
@ -34,7 +36,6 @@ import org.springframework.http.converter.HttpMessageConverter;
@@ -34,7 +36,6 @@ import org.springframework.http.converter.HttpMessageConverter;
|
|
|
|
|
import feign.RequestTemplate; |
|
|
|
|
import feign.codec.EncodeException; |
|
|
|
|
import feign.codec.Encoder; |
|
|
|
|
import lombok.extern.apachecommons.CommonsLog; |
|
|
|
|
|
|
|
|
|
import static org.springframework.cloud.netflix.feign.support.FeignUtils.getHeaders; |
|
|
|
|
import static org.springframework.cloud.netflix.feign.support.FeignUtils.getHttpHeaders; |
|
|
|
@ -42,9 +43,10 @@ import static org.springframework.cloud.netflix.feign.support.FeignUtils.getHttp
@@ -42,9 +43,10 @@ import static org.springframework.cloud.netflix.feign.support.FeignUtils.getHttp
|
|
|
|
|
/** |
|
|
|
|
* @author Spencer Gibb |
|
|
|
|
*/ |
|
|
|
|
@CommonsLog |
|
|
|
|
public class SpringEncoder implements Encoder { |
|
|
|
|
|
|
|
|
|
private static final Log log = LogFactory.getLog(SpringEncoder.class); |
|
|
|
|
|
|
|
|
|
private ObjectFactory<HttpMessageConverters> messageConverters; |
|
|
|
|
|
|
|
|
|
public SpringEncoder(ObjectFactory<HttpMessageConverters> messageConverters) { |
|
|
|
|