gllambi
gllambi

Reputation: 686

Max body size for http inbound gateway

Is there a way to configure the max size the post's body using a http:inbound-gateway and the http body of a response using a http:outbound-gateway?

thanks in advance Regards

Upvotes: 0

Views: 47

Answers (1)

Artem Bilan
Artem Bilan

Reputation: 121282

The http:inbound-gateway is fully based on the Servlet API, so whatever your servlet container can configure for the post max size is there for you. Nothing to do from Spring Integration perspective on the matter.

The http:outbound-gateway is fully based on Spring Web's RestTemplate, which can be configured with any ClientHttpRequestFactory implementation. So, whatever that one can do for you for body response can be configured only there. Again: nothing to do from Spring Integration perspective on the matter.

Upvotes: 1

Related Questions