protected void populateAddressFromCache(HttpRequest httpRequest){
  String serverHost=getHost(httpRequest);
  if (serverHost != null && !serverHost.isEmpty()) {
    String resolvedAddress=ResolvedHostnameCacheFilter.getPreviouslyResolvedAddressForHost(serverHost);
    if (resolvedAddress != null) {
      harEntry.setServerIPAddress(resolvedAddress);
    }
 else {
      log.trace("Unable to find cached IP address for host: {}. IP address in HAR entry will be blank.",serverHost);
    }
  }
 else {
    log.warn("Unable to identify host from request uri: {}",httpRequest.getUri());
  }
}

protected void populateAddressFromCache ( HttpRequest httpRequest ) { String serverHost = getHost ( httpRequest ) ; if ( serverHost != null && ! serverHost . isEmpty ( ) ) { String resolvedAddress = ResolvedHostnameCacheFilter . getPreviouslyResolvedAddressForHost ( serverHost ) ; if ( resolvedAddress != null ) { harEntry . setServerIPAddress ( resolvedAddress ) ; } else { log . trace ( "Unable to find cached IP address for host: {}. IP address in HAR entry will be blank." , serverHost ) ; } } else { log . warn ( "Unable to identify host from request uri: {}" , httpRequest . getUri ( ) ) ; } }
populates the serveripaddress field of the harentry using the internal hostname - > ip address cache .
