ServerCall#getAttributes.
Multiple filters maybe registered to a server, in which case the output of a filter is the
input of the next filter. For example, what returned by transportReady of a filter is
passed to the same method of the next filter, and the last filter's return value is the effective
transport attributes.
Grpc defines commonly used attributes.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Attributes | Returns: new transport attributes. Default implementation returns the passed-in attributes intact.current transport attributes transportAttrs)Called when a transport is ready to process streams. |
| public void | transportTerminated(Attributes
the effective transport attributes, which is what returned by transportAttrs)transportReady of the last executed filter.Called when a transport is terminated. |
| ServerTransportFilter | back to summary |
|---|---|
| public ServerTransportFilter() | |
| transportReady | back to summary |
|---|---|
| public Attributes transportReady(Attributes transportAttrs) Called when a transport is ready to process streams. All necessary handshakes, e.g., TLS handshake, are done at this point. Note the implementation should always inherit the passed-in attributes using
| |
| transportTerminated | back to summary |
|---|---|
| public void transportTerminated(Attributes transportAttrs) Called when a transport is terminated. Default implementation is no-op.
| |