@@ -28,14 +28,14 @@ public void setStatus(int i) {
28
28
}
29
29
30
30
public static class HttpRequest {
31
- private final String remoteHostName ;
31
+ private final String remoteIpAddress ;
32
32
private final String uri ;
33
33
private final String method ;
34
34
35
- public HttpRequest (String uri , String method , String remoteHostName ) {
35
+ public HttpRequest (String uri , String method , String remoteIpAddress ) {
36
36
this .uri = uri ;
37
37
this .method = method ;
38
- this .remoteHostName = remoteHostName ;
38
+ this .remoteIpAddress = remoteIpAddress ;
39
39
}
40
40
41
41
public String getUri () {
@@ -56,8 +56,8 @@ public Map<String, List<String>> getParameters() {
56
56
return new HashMap <String , List <String >>();
57
57
}
58
58
59
- public String getRemoteHostName () {
60
- return remoteHostName ;
59
+ public String getRemoteIpAddress () {
60
+ return remoteIpAddress ;
61
61
}
62
62
63
63
@@ -78,7 +78,7 @@ public HttpResponse serve(HttpRequest session) {
78
78
incomingWebrequestTracer .addParameter (headerField .getKey (), value );
79
79
}
80
80
}
81
- incomingWebrequestTracer .setRemoteAddress (session .getRemoteHostName ());
81
+ incomingWebrequestTracer .setRemoteAddress (session .getRemoteIpAddress ());
82
82
83
83
incomingWebrequestTracer .start ();
84
84
HttpResponse response = new HttpResponse ();
0 commit comments