INTSAMPLES-2 added edited readme.txt
This commit is contained in:
@@ -1,7 +1,15 @@
|
||||
This sample demonstrates how you can send a multipart request to a Spring Integration's HTTP service using Spring's RestTemplate
|
||||
This sample demonstrates how you can send a multipart request to a Spring Integration's HTTP service using 2 scenarios;
|
||||
1. Spring's RestTemplate
|
||||
2. Spring Integration Http Outbound Gateway
|
||||
|
||||
It consists of two parts - Client and Server.
|
||||
|
||||
Client uses Spring's RestTemplate to assemble and send multipart request
|
||||
There are two client programs.
|
||||
|
||||
1. MultipartRestClient. It uses Spring's RestTemplate to assemble and send multipart request
|
||||
|
||||
2. MultipartClientForHttpOutboundClient. It uses Spring Integration Http Outbound Gateway to send multipart request.
|
||||
The interesting part about this client is the way it assembles Multipart request using a plain old Map.
|
||||
|
||||
Server is Spring Integration's HTTP endpoint configuration.
|
||||
|
||||
|
||||
@@ -24,8 +24,6 @@ import org.springframework.context.support.ClassPathXmlApplicationContext;
|
||||
import org.springframework.core.io.ClassPathResource;
|
||||
import org.springframework.core.io.Resource;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.util.LinkedMultiValueMap;
|
||||
import org.springframework.util.MultiValueMap;
|
||||
/**
|
||||
* @author Oleg Zhurakousky
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user