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

# Class ExtendedAccessLogValve.SessionAttributeElement

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

All Implemented Interfaces:
  `AbstractAccessLogValve.AccessLogElement`

Enclosing class:
  `ExtendedAccessLogValve`

protected static class ExtendedAccessLogValve.SessionAttributeElement extends Object implements AbstractAccessLogValve.AccessLogElement
Log element that outputs a session attribute value.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `SessionAttributeElement(String attribute)`
  Creates a new SessionAttributeElement 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

  - ### SessionAttributeElement

    public SessionAttributeElement(String attribute)
    Creates a new SessionAttributeElement for the specified attribute.
    Parameters:
      `attribute` - the name of the session attribute

- ## Method Details

  - ### addElement

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