Class InetSocketAddressNetAttributesExtractor<REQUEST,​RESPONSE>

    • Constructor Detail

      • InetSocketAddressNetAttributesExtractor

        public InetSocketAddressNetAttributesExtractor()
    • Method Detail

      • getAddress

        public abstract @Nullable InetSocketAddress getAddress​(REQUEST request,
                                                               @Nullable RESPONSE response)
        This method will be called twice: both when the request starts (response is always null then) and when the response ends. This way it is possible to capture net attributes in both phases of processing.
      • peerIp

        public final @Nullable String peerIp​(REQUEST request,
                                             @Nullable RESPONSE response)
        Description copied from class: NetAttributesExtractor
        This method will be called twice: both when the request starts (response is always null then) and when the response ends. This way it is possible to capture net attributes in both phases of processing.
        Specified by:
        peerIp in class NetAttributesExtractor<REQUEST,​RESPONSE>