FastHttpDateFormat (Apache Tomcat 7.0.96 API Documentation)

org.apache.tomcat.util.http

## Class FastHttpDateFormat

- java.lang.Object
- - org.apache.tomcat.util.http.FastHttpDateFormat

-     public final class FastHttpDateFormat
      extends java.lang.Object

  Utility class to generate HTTP dates.
  Author:
    Remy Maucherat

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `FastHttpDateFormat()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static java.lang.String` | `formatDate(long value, java.text.DateFormat threadLocalformat)` Get the HTTP format of the specified date.
    `static java.lang.String` | `getCurrentDate()` Get the current date in HTTP format.
    `static long` | `parseDate(java.lang.String value, java.text.DateFormat[] threadLocalformats)` Try to parse the given date as a HTTP date.

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

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

- - ### Constructor Detail

    - #### FastHttpDateFormat

          public FastHttpDateFormat()

  - ### Method Detail

    - #### getCurrentDate

          public static final java.lang.String getCurrentDate()

      Get the current date in HTTP format.

    - #### formatDate

          public static final java.lang.String formatDate(long value,
                                    java.text.DateFormat threadLocalformat)

      Get the HTTP format of the specified date.

    - #### parseDate

          public static final long parseDate(java.lang.String value,
                       java.text.DateFormat[] threadLocalformats)

      Try to parse the given date as a HTTP date.

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