/** * @return the hostname of the client */ protected String getRealHost() { return HostThreadLocal.get(); }
public void invoke(Request request, Response response) throws IOException, ServletException { String remoteHost = request.getRemoteHost(); if(trace) { log.trace("RemoteHostValve set remoteHost to be "+remoteHost); } HostThreadLocal.set(remoteHost); getNext().invoke(request, response); } }