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 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

      Optional<Integer> 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.