Package org.torproject.descriptor
Interface WebServerAccessLog.Line
- All Superinterfaces:
LogDescriptor.Line
- Enclosing interface:
WebServerAccessLog
Facilitates access to all log line fields that don't only contain
default values post sanitization.
- Since:
- 2.2.0
-
Method Summary
Modifier and TypeMethodDescriptiongetDate()Returns the date when the request was received.getIp()Returns the IP address of the requesting host.Returns the HTTP method, e.g., GET.Returns the protocol and version, e.g., HTTP/1.1.Returns the requested resource.intReturns the final status code, e.g., 200.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.Line
toLogString
-
Method Details
-
getIp
String getIp()Returns the IP address of the requesting host. -
getMethod
Method getMethod()Returns the HTTP method, e.g., GET. -
getProtocol
String getProtocol()Returns the protocol and version, e.g., HTTP/1.1. -
getRequest
String getRequest()Returns the requested resource. -
getSize
Returns the size of the response in bytes, if available. -
getResponse
int getResponse()Returns the final status code, e.g., 200. -
getDate
LocalDate getDate()Returns the date when the request was received. -
isValid
boolean isValid()True, if this is a valid web server access log line.
-