ExtendedAccessLogValve.ServletContextElement (Apache Tomcat 9.0.120 API Documentation)
Description: declaration: package: org.apache.catalina.valves, class: ExtendedAccessLogValve, class: ServletContextElement

# Class ExtendedAccessLogValve.ServletContextElement

java.lang.Object
org.apache.catalina.valves.ExtendedAccessLogValve.ServletContextElement

All Implemented Interfaces:
  `AbstractAccessLogValve.AccessLogElement`

Enclosing class:
  `ExtendedAccessLogValve`

protected static class ExtendedAccessLogValve.ServletContextElement extends Object implements AbstractAccessLogValve.AccessLogElement
Log element that outputs a servlet context attribute value.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ServletContextElement(String attribute)`
  Creates a new ServletContextElement for the specified attribute.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `addElement(CharArrayWriter buf, Date date, Request request, Response response, long time)`

  ### Methods inherited from class Object

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

- ## Constructor Details

  - ### ServletContextElement

    public ServletContextElement(String attribute)
    Creates a new ServletContextElement for the specified attribute.
    Parameters:
      `attribute` - the name of the servlet context attribute

- ## Method Details

  - ### addElement

    public void addElement(CharArrayWriter buf, Date date, Request request, Response response, long time)
    Specified by:
      `addElement` in interface `AbstractAccessLogValve.AccessLogElement`