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

# Class AbstractAccessLogValve.StringElement

java.lang.Object
org.apache.catalina.valves.AbstractAccessLogValve.StringElement

All Implemented Interfaces:
  `AbstractAccessLogValve.AccessLogElement`

Enclosing class:
  `AbstractAccessLogValve`

protected static class AbstractAccessLogValve.StringElement extends Object implements AbstractAccessLogValve.AccessLogElement
Write any constant string.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `StringElement(String str)`
  Creates a new string element.

- ## 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

  - ### StringElement

    public StringElement(String str)
    Creates a new string element.
    Parameters:
      `str` - The string to write

- ## Method Details

  - ### addElement

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