Interface WebServerAccessLog.Line

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