Package org.torproject.descriptor
Interface WebServerAccessLog.Line
- 
- All Superinterfaces:
- LogDescriptor.Line
 - Enclosing interface:
- WebServerAccessLog
 
 public static interface WebServerAccessLog.Line extends LogDescriptor.Line Facilitates access to all log line fields that don't only contain default values post sanitization.- Since:
- 2.2.0
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description java.time.LocalDategetDate()Returns the date when the request was received.java.lang.StringgetIp()Returns the IP address of the requesting host.MethodgetMethod()Returns the HTTP method, e.g., GET.java.lang.StringgetProtocol()Returns the protocol and version, e.g., HTTP/1.1.java.lang.StringgetRequest()Returns the requested resource.intgetResponse()Returns the final status code, e.g., 200.java.util.Optional<java.lang.Integer>getSize()Returns the size of the response in bytes, if available.booleanisValid()True, if this is a valid web server access log line.- 
Methods inherited from interface org.torproject.descriptor.LogDescriptor.LinetoLogString
 
- 
 
- 
- 
- 
Method Detail- 
getIpjava.lang.String getIp() Returns the IP address of the requesting host.
 - 
getMethodMethod getMethod() Returns the HTTP method, e.g., GET.
 - 
getProtocoljava.lang.String getProtocol() Returns the protocol and version, e.g., HTTP/1.1.
 - 
getRequestjava.lang.String getRequest() Returns the requested resource.
 - 
getSizejava.util.Optional<java.lang.Integer> getSize() Returns the size of the response in bytes, if available.
 - 
getResponseint getResponse() Returns the final status code, e.g., 200.
 - 
getDatejava.time.LocalDate getDate() Returns the date when the request was received.
 - 
isValidboolean isValid() True, if this is a valid web server access log line.
 
- 
 
-