Class HTTPOperationLogger

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String STATE_KEY_CORRELATION_ID
      The key that will be used to hold the correlation ID for the associated HTTP request.
      static java.lang.String STATE_KEY_PROCESSING_TIME_MILLIS
      The key that will be used to hold the operation processing time in milliseconds.
      static java.lang.String STATE_KEY_PROCESSING_TIME_NANOS
      The key that will be used to hold the operation processing time in nanoseconds.
      static java.lang.String STATE_KEY_REQUEST_ID
      The key that will be used to hold the request ID for the associated HTTP request.
      static java.lang.String STATE_KEY_REQUEST_TIME_MILLIS
      The key that will be used to hold the time the request was received, in milliseconds since January 1, 1960, UTC, as reported by System.currentTimeMillis().
      static java.lang.String STATE_KEY_REQUEST_TIME_NANOS
      The key that will be used to hold the time the request was received, in nanoseconds, as reported by System.nanoTime().
      static java.lang.String STATE_KEY_RESPONSE_CONTENT_LENGTH
      The key that will be used to hold the response content length in the state map.
      static java.lang.String STATE_KEY_RESPONSE_COOKIES
      The key that will be used to hold the set of cookies included in the response to the client.
    • Constructor Summary

      Constructors 
      Constructor Description
      HTTPOperationLogger()
      Creates a new instance of this HTTP operation logger.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      ResultCode applyConfiguration​(HTTPOperationLoggerConfig config, ArgumentParser parser, java.util.List<java.lang.String> adminActionsRequired, java.util.List<java.lang.String> messages)
      Attempts to apply the configuration from the provided argument parser to this extension.
      void defineConfigArguments​(ArgumentParser parser)
      Updates the provided argument parser to define any configuration arguments which may be used by this extension.
      void finalizeHTTPOperationLogger()
      Performs any cleanup which may be necessary when this HTTP operation logger is to be taken out of service.
      java.util.Map<java.util.List<java.lang.String>,​java.lang.String> getExamplesArgumentSets()
      Retrieves a map containing examples of configurations that may be used for this extension.
      abstract java.lang.String[] getExtensionDescription()
      Retrieves a human-readable description for this extension.
      abstract java.lang.String getExtensionName()
      Retrieves a human-readable name for this extension.
      void initializeHTTPOperationLogger​(HTTPServerContext serverContext, HTTPOperationLoggerConfig config, ArgumentParser parser)
      Initializes this HTTP operation logger.
      boolean isConfigurationAcceptable​(HTTPOperationLoggerConfig config, ArgumentParser parser, java.util.List<java.lang.String> unacceptableReasons)
      Indicates whether the configuration represented by the provided argument parser is acceptable for use by this extension.
      void logRequest​(javax.servlet.http.HttpServletRequest request, java.util.Map<java.lang.String,​java.lang.Object> stateMap)
      Logs information about a servlet request that has been received from the client.
      void logResponse​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.util.Map<java.lang.String,​java.lang.Object> stateMap)
      Logs information about a servlet response to be returned to the client.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait