AbstractAccessLogValve.RemoteAddrElement (Apache Tomcat 9.0.43 API Documentation)

org.apache.catalina.valves

## Class AbstractAccessLogValve.RemoteAddrElement

- java.lang.Object
- - org.apache.catalina.valves.AbstractAccessLogValve.RemoteAddrElement

- All Implemented Interfaces:
    AbstractAccessLogValve.AccessLogElement, AbstractAccessLogValve.CachedElement
  Enclosing class:
    AbstractAccessLogValve

      protected class AbstractAccessLogValve.RemoteAddrElement
      extends Object
      implements AbstractAccessLogValve.AccessLogElement, AbstractAccessLogValve.CachedElement

  write remote IP address - %a

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `RemoteAddrElement()`
    `RemoteAddrElement(String type)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addElement(CharArrayWriter buf, Date date, Request request, Response response, long time)`
    `void` | `cache(Request request)`

    - ### Methods inherited from class java.lang.Object

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

- - ### Constructor Detail

    - #### RemoteAddrElement

          public RemoteAddrElement()

    - #### RemoteAddrElement

          public RemoteAddrElement(String type)

  - ### Method Detail

    - #### addElement

          public void addElement(CharArrayWriter buf,
                                 Date date,
                                 Request request,
                                 Response response,
                                 long time)

      Specified by:
        `addElement` in interface `AbstractAccessLogValve.AccessLogElement`

    - #### cache

          public void cache(Request request)

      Specified by:
        `cache` in interface `AbstractAccessLogValve.CachedElement`

Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.