Interface RequestLog

All Known Implementing Classes:
CustomRequestLog, RequestLog.Collection

public interface RequestLog
A RequestLog can be attached to a RequestLogHandler to enable logging of requests/responses.
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
     
    static interface 
    Writes the generated log string to a log sink
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    log(Request request, Response response)
     
  • Method Details

    • log

      void log(Request request, Response response)
      Parameters:
      request - The request to log.
      response - The response to log. Note that for some requests the response instance may not have been fully populated (Eg 400 bad request responses are sent without a servlet response object). Thus for basic log information it is best to consult Response.getCommittedMetaData() and Response.getHttpChannel() directly.