public static interface WebServerAccessLog.Line extends LogDescriptor.Line
Modifier and Type | Method and 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.
|
toLogString
java.lang.String getIp()
Method getMethod()
java.lang.String getProtocol()
java.lang.String getRequest()
java.util.Optional<java.lang.Integer> getSize()
int getResponse()
java.time.LocalDate getDate()
boolean isValid()