Skip to content

Commit

Permalink
Generate updated javadocs for 1.7.0
Browse files Browse the repository at this point in the history
Signed-off-by: Artur Souza <[email protected]>
  • Loading branch information
artursouza committed Oct 14, 2022
1 parent caf566a commit d425377
Show file tree
Hide file tree
Showing 665 changed files with 9,115 additions and 4,483 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,19 @@ For a Maven project, add the following to your `pom.xml` file:
<dependency>
<groupId>io.dapr</groupId>
<artifactId>dapr-sdk</artifactId>
<version>1.6.0</version>
<version>1.7.0</version>
</dependency>
<!-- Dapr's SDK for Actors (optional). -->
<dependency>
<groupId>io.dapr</groupId>
<artifactId>dapr-sdk-actors</artifactId>
<version>1.6.0</version>
<version>1.7.0</version>
</dependency>
<!-- Dapr's SDK integration with SpringBoot (optional). -->
<dependency>
<groupId>io.dapr</groupId>
<artifactId>dapr-sdk-springboot</artifactId>
<version>1.6.0</version>
<version>1.7.0</version>
</dependency>
...
</dependencies>
Expand All @@ -78,11 +78,11 @@ For a Gradle project, add the following to your `build.gradle` file:
dependencies {
...
// Dapr's core SDK with all features, except Actors.
compile('io.dapr:dapr-sdk:1.6.0')
compile('io.dapr:dapr-sdk:1.7.0')
// Dapr's SDK for Actors (optional).
compile('io.dapr:dapr-sdk-actors:1.6.0')
compile('io.dapr:dapr-sdk-actors:1.7.0')
// Dapr's SDK integration with SpringBoot (optional).
compile('io.dapr:dapr-sdk-springboot:1.6.0')
compile('io.dapr:dapr-sdk-springboot:1.7.0')
}
```

Expand Down
14 changes: 7 additions & 7 deletions daprdocs/content/en/java-sdk-docs/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,19 @@ For a Maven project, add the following to your `pom.xml` file:
<dependency>
<groupId>io.dapr</groupId>
<artifactId>dapr-sdk</artifactId>
<version>1.6.0</version>
<version>1.7.0</version>
</dependency>
<!-- Dapr's SDK for Actors (optional). -->
<dependency>
<groupId>io.dapr</groupId>
<artifactId>dapr-sdk-actors</artifactId>
<version>1.6.0</version>
<version>1.7.0</version>
</dependency>
<!-- Dapr's SDK integration with SpringBoot (optional). -->
<dependency>
<groupId>io.dapr</groupId>
<artifactId>dapr-sdk-springboot</artifactId>
<version>1.6.0</version>
<version>1.7.0</version>
</dependency>
...
</dependencies>
Expand All @@ -57,11 +57,11 @@ For a Gradle project, add the following to your `build.gradle` file:
dependencies {
...
// Dapr's core SDK with all features, except Actors.
compile('io.dapr:dapr-sdk:1.6.0')
compile('io.dapr:dapr-sdk:1.7.0')
// Dapr's SDK for Actors (optional).
compile('io.dapr:dapr-sdk-actors:1.6.0')
compile('io.dapr:dapr-sdk-actors:1.7.0')
// Dapr's SDK integration with SpringBoot (optional).
compile('io.dapr:dapr-sdk-springboot:1.6.0')
compile('io.dapr:dapr-sdk-springboot:1.7.0')
}
```

Expand All @@ -72,7 +72,7 @@ You can fix this by specifying a compatible OkHttp version in your project to ma
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
<version>4.9.0</version>
<version>1.7.0</version>
</dependency>
```

Expand Down
56 changes: 46 additions & 10 deletions daprdocs/content/en/java-sdk-docs/_index.mdbak
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,19 @@ For a Maven project, add the following to your `pom.xml` file:
<dependency>
<groupId>io.dapr</groupId>
<artifactId>dapr-sdk</artifactId>
<version>1.5.0</version>
<version>1.7.0</version>
</dependency>
<!-- Dapr's SDK for Actors (optional). -->
<dependency>
<groupId>io.dapr</groupId>
<artifactId>dapr-sdk-actors</artifactId>
<version>1.5.0</version>
<version>1.7.0</version>
</dependency>
<!-- Dapr's SDK integration with SpringBoot (optional). -->
<dependency>
<groupId>io.dapr</groupId>
<artifactId>dapr-sdk-springboot</artifactId>
<version>1.5.0</version>
<version>1.7.0</version>
</dependency>
...
</dependencies>
Expand All @@ -57,11 +57,11 @@ For a Gradle project, add the following to your `build.gradle` file:
dependencies {
...
// Dapr's core SDK with all features, except Actors.
compile('io.dapr:dapr-sdk:1.4.0')
compile('io.dapr:dapr-sdk:1.6.0')
// Dapr's SDK for Actors (optional).
compile('io.dapr:dapr-sdk-actors:1.4.0')
compile('io.dapr:dapr-sdk-actors:1.6.0')
// Dapr's SDK integration with SpringBoot (optional).
compile('io.dapr:dapr-sdk-springboot:1.4.0')
compile('io.dapr:dapr-sdk-springboot:1.6.0')
}
```

Expand All @@ -72,7 +72,7 @@ You can fix this by specifying a compatible OkHttp version in your project to ma
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
<version>1.5.0</version>
<version>1.7.0</version>
</dependency>
```

Expand Down Expand Up @@ -172,10 +172,24 @@ public class SubscriberController {
});
}

@Topic(name = "testingtopic", pubsubName = "${myAppProperty:messagebus}",
rule = @Rule(match = "event.type == 'myevent.v2'", priority = 1))
@PostMapping(path = "/testingtopicV2")
public Mono<Void> handleMessageV2(@RequestBody(required = false) CloudEvent envelope) {
return Mono.fromRunnable(() -> {
try {
System.out.println("Subscriber got: " + cloudEvent.getData());
System.out.println("Subscriber got: " + OBJECT_MAPPER.writeValueAsString(cloudEvent));
} catch (Exception e) {
throw new RuntimeException(e);
}
});
}

}
```

- For a full list of state operations visit [How-To: Publish & subscribe]({{< ref howto-publish-subscribe.md >}}).
- For a full guide on publishing messages and subscribing to a topic [How-To: Publish & subscribe]({{< ref howto-publish-subscribe.md >}}).
- 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

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

- For a full guide on output bindings visit [How-To: Use bindings]({{< ref howto-bindings.md >}}).
- 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
- For a full guide on output bindings visit [How-To: Output bindings]({{< ref howto-bindings.md >}}).
- 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.

### Interact with input bindings

```java
import org.springframework.web.bind.annotation.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@RestController
@RequestMapping("/")
public class myClass {
private static final Logger log = LoggerFactory.getLogger(myClass);
@PostMapping(path = "/checkout")
public Mono<String> getCheckout(@RequestBody(required = false) byte[] body) {
return Mono.fromRunnable(() ->
log.info("Received Message: " + new String(body)));
}
}
```

- For a full guide on input bindings, visit [How-To: Input bindings]({{< ref howto-triggers >}}).
- 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.

### Retrieve secrets

Expand Down
Loading

0 comments on commit d425377

Please sign in to comment.