List of usage examples for org.springframework.integration.http.outbound HttpRequestExecutingMessageHandler setHttpMethod
public void setHttpMethod(HttpMethod httpMethod)
From source file:com.acmemotors.batch.LoaderJobConfiguration.java
@Bean @ServiceActivator(inputChannel = "requestChannel") public HttpRequestExecutingMessageHandler messageHandler(@Value("${serverUrl}") String serverUrl) { HttpRequestExecutingMessageHandler handler = new HttpRequestExecutingMessageHandler(serverUrl); handler.setHttpMethod(HttpMethod.POST); handler.setExpectedResponseType(String.class); return handler; }