Interface ResponseMetadataHandler

  • All Known Implementing Classes:
    GrpcResponseMetadata

    public interface ResponseMetadataHandler
    An interface to handle metadata returned from an RPC. A ResponseMetadataHandler is used by the GrpcMetadataHandlerInterceptor class to provide custom handling of the returned headers and trailers.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onHeaders​(io.grpc.Metadata metadata)
      Handle the headers returned by an RPC.
      void onTrailers​(io.grpc.Metadata metadata)
      Handle the trailers returned by an RPC.
    • Method Detail

      • onHeaders

        void onHeaders​(io.grpc.Metadata metadata)
        Handle the headers returned by an RPC.
      • onTrailers

        void onTrailers​(io.grpc.Metadata metadata)
        Handle the trailers returned by an RPC.