@Controller @EnableBinding(value=org.springframework.cloud.stream.messaging.Source.class) public class HttpSourceConfiguration extends Object
| Constructor and Description |
|---|
HttpSourceConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
void |
handleRequest(byte[] body,
Object contentType) |
void |
handleRequest(String body,
Object contentType) |
@RequestMapping(path="${http.pathPattern:/}",
method=POST,
consumes={"text/*","application/json"})
@ResponseStatus(value=ACCEPTED)
public void handleRequest(@RequestBody
String body,
@RequestHeader(value="Content-Type")
Object contentType)
@RequestMapping(path="${http.pathPattern:/}",
method=POST,
consumes="*/*")
@ResponseStatus(value=ACCEPTED)
public void handleRequest(@RequestBody
byte[] body,
@RequestHeader(value="Content-Type")
Object contentType)
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.