Interface GrpcBaseRequest

All Known Subinterfaces:
GrpcRequest<A>, GrpcRequest<A>, GrpcRequest.Streaming<A>, GrpcRequest.Streaming<A>, GrpcRequest.Unary<A>, GrpcRequest.Unary<A>

public interface GrpcBaseRequest

Base gRPC request for representing client or server requests.

It exposes gRPC request content as defined by gRPC protocol.

Considering a client exchange, where the request is created and sent from the client to the server, implementation shall provide methods to set gRPC request content. Considering a server exchange, where the request is received by the server from the client, implementation shall only provide methods to access gRPC request content.

Since:
1.9
Author:
Jeremy Kuhn
  • Method Details

    • getServiceName

      GrpcServiceName getServiceName()

      Returns the fully qualified name of the service targeted in the request.

      Protocol buffer defines the following format for service names: <package>.<service>.

      Returns:
      the target service name
    • getMethodName

      String getMethodName()

      Returns the name of the method targeted in the request.

      Returns:
      the target method name
    • getFullMethodName

      String getFullMethodName()

      Returns the fully qualified name of the method targeted in the request.

      Protocol buffer defines the following format for method names: <package>.<service>/<method>.

      Returns:
      the target full method name
    • metadata

      Returns gRPC request metadata.

      Returns:
      the request metadata