Interface GrpcConnectionContext


public interface GrpcConnectionContext
Exposes connection-level information to gRPC request handlers. An instance of this interface is available from the Context.get(Class) by passing GrpcConnectionContext.class.
  • Method Details

    • serverSocketId

      String serverSocketId()
      Server socket id.
      Returns:
      socket id
    • connectionSocketId

      String connectionSocketId()
      Connection socket id.
      Returns:
      child socket id, never null
    • remotePeer

      PeerInfo remotePeer()
      Remote peer information.
      Returns:
      peer info
    • localPeer

      PeerInfo localPeer()
      Local peer information.
      Returns:
      peer info
    • isSecure

      boolean isSecure()
      Whether the request is secure.
      Returns:
      whether secure
    • proxyProtocolData

      Optional<ProxyProtocolData> proxyProtocolData()
      Proxy protocol header data.
      Returns:
      protocol header data if proxy protocol is enabled on socket
      See Also: