Kun Zhang
609f31a578
Document valid characters for AsciiMarshaller
2015-09-02 15:57:07 -07:00
Carl Mastrangelo
f8a87eecce
Remove HandlerRegistry.Method
2015-09-02 14:37:44 -07:00
Eric Anderson
01ba973dd4
Prevent status from impacting how ServerCall.Listener is invoked
...
Fixes #639
2015-09-02 09:48:05 -07:00
Eric Anderson
210114d4a2
Ease use of JWT by passing URI to auth library
...
The URI no longer needs to be provided to the Credential explicitly,
which prevents needing to know a magic string and allows using the same
Credential with multiple services.
2015-09-01 15:42:58 -07:00
nmittler
6a526ecc93
Adding missing RunWith annotation for tests.
2015-09-01 11:40:17 -07:00
nmittler
d3ab427fca
Enforce content-type on client and server.
...
Fixes #360
2015-09-01 06:59:46 -07:00
Eric Anderson
949b6d7da8
Fields in MethodDescriptor can't be null
2015-08-31 17:48:05 -07:00
Carl Mastrangelo
396f0606f3
Add test to prove RST closes stream, and remove hack from transport to force closure.
2015-08-31 13:26:49 -07:00
Carl Mastrangelo
d678498ca7
Add unit tests for AbstractServerStream
2015-08-28 13:00:27 -07:00
Stanley Cheung
e4987cd1f2
update reference to grpc-common to examples
2015-08-27 16:10:33 -07:00
Carl Mastrangelo
080190c753
Make ServerCall.Listener methods Nops
2015-08-27 13:13:42 -07:00
Carl Mastrangelo
5ade1b726f
Make ClientCall listener methods noops
2015-08-27 11:36:59 -07:00
nmittler
bcdef34c52
Removing unused method in ServerImpl
2015-08-27 10:26:56 -07:00
nmittler
15f02ba19c
Adding maxMessageSize config option
...
Fixes #832
2015-08-26 15:32:33 -07:00
Carl Mastrangelo
4221f5a81c
Change ExperimentalApi field 'comment' to 'value'
2015-08-26 13:40:11 -07:00
Carl Mastrangelo
cb734e3049
Document equals and hashCode on Status
2015-08-26 13:31:13 -07:00
Carl Mastrangelo
b5eaaf378e
Add @ExperimentalApi annotation to compression methods
2015-08-26 13:25:21 -07:00
Kun Zhang
8225d2a6a6
Add comment field to ExperimentalApi
2015-08-26 10:42:08 -07:00
Carl Mastrangelo
0d9ac41bdd
Minor cleanup in deframer
2015-08-26 09:58:15 -07:00
nmittler
777e928536
Removing transport shutdown hooks from channel builder
...
The current process of building a channel is a bit complicated in that transports have to provide a own shutdown hook to the channel builder in order to close shared executors. This somewhat entagled creation pattern makes it difficult to separate the process of channel building from transport building. Better separating these two should make the code more readable and maintainable moving forward.
2015-08-25 08:38:39 -07:00
Xudong Ma
2247ad2a2b
Makes application-provided string comes first in User-Agent
2015-08-24 19:42:16 -07:00
Kun Zhang
68c82bc2f3
Make ServerImpl constructor pakcage-private
2015-08-24 15:13:25 -07:00
Xudong Ma
c5ea5c78cf
Update Java doc for a508c1d4f5
2015-08-24 13:49:51 -07:00
Carl Mastrangelo
a508c1d4f5
Remove Headers
2015-08-24 11:41:10 -07:00
Kun Zhang
7b6a498eff
Annotate ServerEssentials, buildEssentials() and ServerImpl's constructor with @Internal
2015-08-24 10:17:00 -07:00
nmittler
e2f88fa904
Moving a few common utilities to GrpcUtil.
2015-08-24 07:53:32 -07:00
nmittler
aeae7a8e74
Rename HttpUtil to GrpcUtil.
...
It's not really just for HTTP, it has becoming a dumping ground for many internal constants/utilities.
2015-08-21 14:02:26 -07:00
Kun Zhang
d68c101a55
Fix documentation on ClientCall.request().
...
request() is allowed after halfClose(), and is not necessarily forbidden
after cancel() (current implementation does not).
2015-08-21 08:59:49 -07:00
Carl Mastrangelo
701bbe509f
Add unit tests to AbstractClientStream
2015-08-20 17:14:08 -07:00
Kun Zhang
042b278256
Remove the first MethodDescriptor constructor.
...
that takes the service name and method name separately.
Also fix tests that are still using the old full qualified method name
format.
2015-08-20 14:19:50 -07:00
Carl Mastrangelo
6ebf9b1373
fix comment
2015-08-20 13:19:16 -07:00
Xudong Ma
75f71c845b
Avoid deprecation warning on import
2015-08-20 09:47:03 -07:00
Kun Zhang
1a0ee96423
Improve documentation for ClientCall.
2015-08-20 09:15:23 -07:00
Kun Zhang
687a6f4814
Skip io.grpc.internal in javadoc.
...
Also move ExperimentalApi and Internal to io.grpc, so that they appear
in javadoc.
2015-08-20 08:48:44 -07:00
Carl Mastrangelo
0b3fa8eece
Remove unnecessary instanceof check
2015-08-17 15:49:33 -07:00
Carl Mastrangelo
77b00e050b
Add Part 1 of compression
2015-08-17 11:32:52 -07:00
Eric Anderson
e72332ce5d
Add missing Generic param to Answers
2015-08-14 14:53:11 -07:00
Eric Anderson
d12f454e1f
Change Metadata.Trailers to Metadata in JavaDoc
2015-08-14 08:36:37 -07:00
Carl Mastrangelo
572f4332a7
Remove Trailers
2015-08-13 17:11:29 -07:00
Carl Mastrangelo
68fe049e35
Remove Deprecated newCall method on Channel
2015-08-13 13:24:37 -07:00
Xudong Ma
ca7587f641
Change some error status usages to be consistent with other gRPC implementations.
2015-08-13 13:14:21 -07:00
Kun Zhang
0eb98621ed
Annotations for unstable and internal interfaces.
...
- Add `@Internal` and `@ExperimentalApi`, both are annotated `@Internal`
- Annotate `@Internal` to `package io.grpc.internal`
- AbstractChannelBuilder.ChannelEssentials is annotated `@Internal`
- ChannelImpl.ping() is annotated `@ExperimentalApi`
- Context is annotated `@ExperimentalApi`
- Add `package-info.java` to `io.grpc.inprocess` and `io.grpc.internal`.
2015-08-12 15:03:23 -07:00
Kun Zhang
e1bd6ef45f
Clean up the left-over of the transport package reorganization
2015-08-11 12:48:02 -07:00
Kun Zhang
f681b5f8be
Move Marshaller into MethodDescriptor
2015-08-11 10:53:38 -07:00
Kun Zhang
d2929cd1a3
Reorganize packages.
...
Reserve io.grpc for public API only, and all internal stuff in core to
io.grpc.internal, including the non-stable transport API.
Raise the netty/okhttp/inprocess subpackages one level up to io.grpc,
because they are public API and entry points for most users.
Details:
- Rename io.grpc.transport to io.grpc.internal;
- Move SharedResourceHolder and SerializingExecutor to io.grpc.internal
- Rename io.grpc.transport.{netty|okhttp|inprocess} to
io.grpc.{netty|okhttp|inprocess}
2015-08-10 15:04:29 -07:00
Carl Mastrangelo
4b4f76da8c
Remove deprecated classes from ServerInterceptors
2015-08-07 11:39:00 -07:00
Carl Mastrangelo
7d3d80e69f
Add a javadoc for AbstractChannelBuilder.buildEssentials
2015-08-07 11:09:26 -07:00
Carl Mastrangelo
9b733b57e0
Add a javadoc for AbstractServerBuilder.buildEssentials
2015-08-07 10:01:48 -07:00
Carl Mastrangelo
b141093b3b
Make serverInterceptor use MethodDescriptor
2015-08-07 09:28:29 -07:00
Eric Anderson
6ff7b220b6
Improve generics in {Client,Server}Interceptors
2015-08-06 17:34:17 -07:00