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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.time.LocalDate
getDate()
Returns the date when the request was received.java.lang.String
getIp()
Returns the IP address of the requesting host.Method
getMethod()
Returns the HTTP method, e.g., GET.java.lang.String
getProtocol()
Returns the protocol and version, e.g., HTTP/1.1.java.lang.String
getRequest()
Returns the requested resource.int
getResponse()
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.boolean
isValid()
True, if this is a valid web server access log line.-
Methods inherited from interface org.torproject.descriptor.LogDescriptor.Line
toLogString
-
-
-
-
Method Detail
-
getIp
java.lang.String getIp()
Returns the IP address of the requesting host.
-
getMethod
Method getMethod()
Returns the HTTP method, e.g., GET.
-
getProtocol
java.lang.String getProtocol()
Returns the protocol and version, e.g., HTTP/1.1.
-
getRequest
java.lang.String getRequest()
Returns the requested resource.
-
getSize
java.util.Optional<java.lang.Integer> getSize()
Returns the size of the response in bytes, if available.
-
getResponse
int getResponse()
Returns the final status code, e.g., 200.
-
getDate
java.time.LocalDate getDate()
Returns the date when the request was received.
-
isValid
boolean isValid()
True, if this is a valid web server access log line.
-
-