Skip to content

Commit d425377

Browse files
committed
Generate updated javadocs for 1.7.0
Signed-off-by: Artur Souza <[email protected]>
1 parent caf566a commit d425377

File tree

665 files changed

+9115
-4483
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

665 files changed

+9115
-4483
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,19 @@ For a Maven project, add the following to your `pom.xml` file:
5252
<dependency>
5353
<groupId>io.dapr</groupId>
5454
<artifactId>dapr-sdk</artifactId>
55-
<version>1.6.0</version>
55+
<version>1.7.0</version>
5656
</dependency>
5757
<!-- Dapr's SDK for Actors (optional). -->
5858
<dependency>
5959
<groupId>io.dapr</groupId>
6060
<artifactId>dapr-sdk-actors</artifactId>
61-
<version>1.6.0</version>
61+
<version>1.7.0</version>
6262
</dependency>
6363
<!-- Dapr's SDK integration with SpringBoot (optional). -->
6464
<dependency>
6565
<groupId>io.dapr</groupId>
6666
<artifactId>dapr-sdk-springboot</artifactId>
67-
<version>1.6.0</version>
67+
<version>1.7.0</version>
6868
</dependency>
6969
...
7070
</dependencies>
@@ -78,11 +78,11 @@ For a Gradle project, add the following to your `build.gradle` file:
7878
dependencies {
7979
...
8080
// Dapr's core SDK with all features, except Actors.
81-
compile('io.dapr:dapr-sdk:1.6.0')
81+
compile('io.dapr:dapr-sdk:1.7.0')
8282
// Dapr's SDK for Actors (optional).
83-
compile('io.dapr:dapr-sdk-actors:1.6.0')
83+
compile('io.dapr:dapr-sdk-actors:1.7.0')
8484
// Dapr's SDK integration with SpringBoot (optional).
85-
compile('io.dapr:dapr-sdk-springboot:1.6.0')
85+
compile('io.dapr:dapr-sdk-springboot:1.7.0')
8686
}
8787
```
8888

daprdocs/content/en/java-sdk-docs/_index.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,19 @@ For a Maven project, add the following to your `pom.xml` file:
3131
<dependency>
3232
<groupId>io.dapr</groupId>
3333
<artifactId>dapr-sdk</artifactId>
34-
<version>1.6.0</version>
34+
<version>1.7.0</version>
3535
</dependency>
3636
<!-- Dapr's SDK for Actors (optional). -->
3737
<dependency>
3838
<groupId>io.dapr</groupId>
3939
<artifactId>dapr-sdk-actors</artifactId>
40-
<version>1.6.0</version>
40+
<version>1.7.0</version>
4141
</dependency>
4242
<!-- Dapr's SDK integration with SpringBoot (optional). -->
4343
<dependency>
4444
<groupId>io.dapr</groupId>
4545
<artifactId>dapr-sdk-springboot</artifactId>
46-
<version>1.6.0</version>
46+
<version>1.7.0</version>
4747
</dependency>
4848
...
4949
</dependencies>
@@ -57,11 +57,11 @@ For a Gradle project, add the following to your `build.gradle` file:
5757
dependencies {
5858
...
5959
// Dapr's core SDK with all features, except Actors.
60-
compile('io.dapr:dapr-sdk:1.6.0')
60+
compile('io.dapr:dapr-sdk:1.7.0')
6161
// Dapr's SDK for Actors (optional).
62-
compile('io.dapr:dapr-sdk-actors:1.6.0')
62+
compile('io.dapr:dapr-sdk-actors:1.7.0')
6363
// Dapr's SDK integration with SpringBoot (optional).
64-
compile('io.dapr:dapr-sdk-springboot:1.6.0')
64+
compile('io.dapr:dapr-sdk-springboot:1.7.0')
6565
}
6666
```
6767

@@ -72,7 +72,7 @@ You can fix this by specifying a compatible OkHttp version in your project to ma
7272
<dependency>
7373
<groupId>com.squareup.okhttp3</groupId>
7474
<artifactId>okhttp</artifactId>
75-
<version>4.9.0</version>
75+
<version>1.7.0</version>
7676
</dependency>
7777
```
7878

daprdocs/content/en/java-sdk-docs/_index.mdbak

Lines changed: 46 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,19 @@ For a Maven project, add the following to your `pom.xml` file:
3131
<dependency>
3232
<groupId>io.dapr</groupId>
3333
<artifactId>dapr-sdk</artifactId>
34-
<version>1.5.0</version>
34+
<version>1.7.0</version>
3535
</dependency>
3636
<!-- Dapr's SDK for Actors (optional). -->
3737
<dependency>
3838
<groupId>io.dapr</groupId>
3939
<artifactId>dapr-sdk-actors</artifactId>
40-
<version>1.5.0</version>
40+
<version>1.7.0</version>
4141
</dependency>
4242
<!-- Dapr's SDK integration with SpringBoot (optional). -->
4343
<dependency>
4444
<groupId>io.dapr</groupId>
4545
<artifactId>dapr-sdk-springboot</artifactId>
46-
<version>1.5.0</version>
46+
<version>1.7.0</version>
4747
</dependency>
4848
...
4949
</dependencies>
@@ -57,11 +57,11 @@ For a Gradle project, add the following to your `build.gradle` file:
5757
dependencies {
5858
...
5959
// Dapr's core SDK with all features, except Actors.
60-
compile('io.dapr:dapr-sdk:1.4.0')
60+
compile('io.dapr:dapr-sdk:1.6.0')
6161
// Dapr's SDK for Actors (optional).
62-
compile('io.dapr:dapr-sdk-actors:1.4.0')
62+
compile('io.dapr:dapr-sdk-actors:1.6.0')
6363
// Dapr's SDK integration with SpringBoot (optional).
64-
compile('io.dapr:dapr-sdk-springboot:1.4.0')
64+
compile('io.dapr:dapr-sdk-springboot:1.6.0')
6565
}
6666
```
6767

@@ -72,7 +72,7 @@ You can fix this by specifying a compatible OkHttp version in your project to ma
7272
<dependency>
7373
<groupId>com.squareup.okhttp3</groupId>
7474
<artifactId>okhttp</artifactId>
75-
<version>1.5.0</version>
75+
<version>1.7.0</version>
7676
</dependency>
7777
```
7878

@@ -172,10 +172,24 @@ public class SubscriberController {
172172
});
173173
}
174174

175+
@Topic(name = "testingtopic", pubsubName = "${myAppProperty:messagebus}",
176+
rule = @Rule(match = "event.type == 'myevent.v2'", priority = 1))
177+
@PostMapping(path = "/testingtopicV2")
178+
public Mono<Void> handleMessageV2(@RequestBody(required = false) CloudEvent envelope) {
179+
return Mono.fromRunnable(() -> {
180+
try {
181+
System.out.println("Subscriber got: " + cloudEvent.getData());
182+
System.out.println("Subscriber got: " + OBJECT_MAPPER.writeValueAsString(cloudEvent));
183+
} catch (Exception e) {
184+
throw new RuntimeException(e);
185+
}
186+
});
187+
}
188+
175189
}
176190
```
177191

178-
- 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 >}}).
179193
- 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
180194

181195
### Interact with output bindings
@@ -193,8 +207,30 @@ try (DaprClient client = (new DaprClientBuilder()).build()) {
193207
}
194208
```
195209

196-
- 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.
198234

199235
### Retrieve secrets
200236

0 commit comments

Comments
 (0)