You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- For a full list of state operations visit [How-To: Publish & subscribe]({{< ref howto-publish-subscribe.md >}}).
192
+
- For a full guide on publishing messages and subscribing to a topic [How-To: Publish & subscribe]({{< ref howto-publish-subscribe.md >}}).
179
193
- Visit [Java SDK examples](https://github.com/dapr/java-sdk/tree/master/examples/src/main/java/io/dapr/examples/pubsub/http) for code samples and instructions to try out pub/sub
- For a full guide on output bindings visit [How-To: Use bindings]({{< ref howto-bindings.md >}}).
197
-
- Visit [Java SDK examples](https://github.com/dapr/java-sdk/tree/master/examples/src/main/java/io/dapr/examples/bindings/http) for code samples and instructions to try out output bindings
210
+
- For a full guide on output bindings visit [How-To: Output bindings]({{< ref howto-bindings.md >}}).
211
+
- Visit [Java SDK examples](https://github.com/dapr/java-sdk/tree/master/examples/src/main/java/io/dapr/examples/bindings/http) for code samples and instructions to try out output bindings.
212
+
213
+
### Interact with input bindings
214
+
215
+
```java
216
+
import org.springframework.web.bind.annotation.*;
217
+
import org.slf4j.Logger;
218
+
import org.slf4j.LoggerFactory;
219
+
220
+
@RestController
221
+
@RequestMapping("/")
222
+
public class myClass {
223
+
private static final Logger log = LoggerFactory.getLogger(myClass);
224
+
@PostMapping(path = "/checkout")
225
+
public Mono<String> getCheckout(@RequestBody(required = false) byte[] body) {
226
+
return Mono.fromRunnable(() ->
227
+
log.info("Received Message: " + new String(body)));
228
+
}
229
+
}
230
+
```
231
+
232
+
- For a full guide on input bindings, visit [How-To: Input bindings]({{< ref howto-triggers >}}).
233
+
- Visit [Java SDK examples](https://github.com/dapr/java-sdk/tree/master/examples/src/main/java/io/dapr/examples/bindings/http) for code samples and instructions to try out input bindings.
0 commit comments