Class ScriptedHTTPOperationLogger

    • Field Summary

      Fields 
      Modifier and Type Field Description
      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_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_RESPONSE_CONTENT_LENGTH
      The key that will be used to hold the response content length in the state map.
    • Constructor Summary

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

      All Methods Instance 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.
      void initializeHTTPOperationLogger​(HTTPServerContext serverContext, HTTPOperationLoggerConfig config, ArgumentParser parser)
      Initializes this scripted 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