mirror of https://github.com/grpc/grpc-java.git
update reference to grpc-common to examples
This commit is contained in:
parent
fe3f964317
commit
e4987cd1f2
|
@ -1,6 +1,6 @@
|
|||
# Authentication
|
||||
|
||||
As outlined in <a href="https://github.com/grpc/grpc-common/blob/master/grpc-auth-support.md">gRPC Authentication Support</a>, gRPC supports a number of different mechanisms for asserting identity between an client and server. This document provides code samples demonstrating how to provide SSL/TLS encryption support and identity assertions in Java, as well as passing OAuth2 tokens to services that support it.
|
||||
As outlined in <a href="https://github.com/grpc/grpc/blob/master/doc/grpc-auth-support.md">gRPC Authentication Support</a>, gRPC supports a number of different mechanisms for asserting identity between an client and server. This document provides code samples demonstrating how to provide SSL/TLS encryption support and identity assertions in Java, as well as passing OAuth2 tokens to services that support it.
|
||||
|
||||
# Java 7, HTTP2 & Crypto
|
||||
|
||||
|
|
|
@ -299,7 +299,7 @@ public final class GrpcUtil {
|
|||
* <p>The representation is greedy with respect to precision. That is, 2 seconds will be
|
||||
* represented as `2000000u`.</p>
|
||||
*
|
||||
* <p>See <a href="https://github.com/grpc/grpc-common/blob/master/PROTOCOL-HTTP2.md#requests">the
|
||||
* <p>See <a href="https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md#requests">the
|
||||
* request header definition</a></p>
|
||||
*/
|
||||
@VisibleForTesting
|
||||
|
|
|
@ -26,6 +26,5 @@ $ ./build/install/grpc-examples/bin/hello-world-client
|
|||
|
||||
That's it!
|
||||
|
||||
Please refer to [Getting Started Guide for Java]
|
||||
(https://github.com/grpc/grpc-common/blob/master/java/javatutorial.md) for more
|
||||
information.
|
||||
Please refer to [Getting Started Guide for Java](examples/javatutorial.md)
|
||||
for more information.
|
||||
|
|
|
@ -3,7 +3,7 @@ gRPC Hello World Tutorial (Android Java)
|
|||
|
||||
BACKGROUND
|
||||
-------------
|
||||
For this sample, we've already generated the server and client stubs from [helloworld.proto](https://github.com/grpc/grpc-common/blob/master/protos/helloworld.proto).
|
||||
For this sample, we've already generated the server and client stubs from [helloworld.proto](https://github.com/grpc/grpc/blob/master/examples/protos/helloworld.proto).
|
||||
|
||||
PREREQUISITES
|
||||
-------------
|
||||
|
@ -30,12 +30,12 @@ $ # follow the instructions in 'How to Build'
|
|||
**3 Prepare the app**
|
||||
- Clone this git repo
|
||||
```sh
|
||||
$ git clone https://github.com/grpc/grpc-common
|
||||
$ git clone https://github.com/grpc/grpc-java
|
||||
|
||||
```
|
||||
|
||||
**4 Install the app**
|
||||
```sh
|
||||
$ cd grpc-common/java/android
|
||||
$ cd examples/android
|
||||
$ ./gradlew installDebug
|
||||
```
|
||||
|
|
|
@ -6,7 +6,7 @@ This tutorial provides a basic Java programmer's introduction to working with gR
|
|||
- Generate server and client code using the protocol buffer compiler.
|
||||
- Use the Java gRPC API to write a simple client and server for your service.
|
||||
|
||||
It assumes that you have read the [Getting started](https://github.com/grpc/grpc-common) guide and are familiar with [protocol buffers] (https://developers.google.com/protocol-buffers/docs/overview). Note that the example in this tutorial uses the [proto3](https://github.com/google/protobuf/releases) version of the protocol buffers language, which is currently in alpha release: you can find out more in the [proto3 language guide](https://developers.google.com/protocol-buffers/docs/proto3) and see the [release notes](https://github.com/google/protobuf/releases) for the new version in the protocol buffers Github repository.
|
||||
It assumes that you have read the [Getting started](https://github.com/grpc/grpc/tree/master/examples) guide and are familiar with [protocol buffers] (https://developers.google.com/protocol-buffers/docs/overview). Note that the example in this tutorial uses the [proto3](https://github.com/google/protobuf/releases) version of the protocol buffers language, which is currently in alpha release: you can find out more in the [proto3 language guide](https://developers.google.com/protocol-buffers/docs/proto3) and see the [release notes](https://github.com/google/protobuf/releases) for the new version in the protocol buffers Github repository.
|
||||
|
||||
This isn't a comprehensive guide to using gRPC in Java: more reference documentation is coming soon.
|
||||
|
||||
|
@ -28,12 +28,12 @@ Then change your current directory to `grpc-java/examples`:
|
|||
$ cd grpc-java/examples
|
||||
```
|
||||
|
||||
You also should have the relevant tools installed to generate the server and client interface code - if you don't already, follow the setup instructions in [the Java quick start guide](https://github.com/grpc/grpc-common/tree/master/java).
|
||||
You also should have the relevant tools installed to generate the server and client interface code - if you don't already, follow the setup instructions in [the Java quick start guide](examples/).
|
||||
|
||||
|
||||
## Defining the service
|
||||
|
||||
Our first step (as you'll know from [Getting started](https://github.com/grpc/grpc-common)) is to define the gRPC *service* and the method *request* and *response* types using [protocol buffers] (https://developers.google.com/protocol-buffers/docs/overview). You can see the complete .proto file in [`grpc-java/examples/src/main/proto/route_guide.proto`](https://github.com/grpc/grpc-java/blob/master/examples/src/main/proto/route_guide.proto).
|
||||
Our first step (as you'll know from [Getting started](https://github.com/grpc/grpc/tree/master/examples)) is to define the gRPC *service* and the method *request* and *response* types using [protocol buffers] (https://developers.google.com/protocol-buffers/docs/overview). You can see the complete .proto file in [`grpc-java/examples/src/main/proto/route_guide.proto`](https://github.com/grpc/grpc-java/blob/master/examples/src/main/proto/route_guide.proto).
|
||||
|
||||
As we're generating Java code in this example, we've specified a `java_package` file option in our .proto:
|
||||
```proto
|
||||
|
|
Loading…
Reference in New Issue