クラス FastHttpDateFormat

java.lang.ObjectSE
org.springframework.security.web.savedrequest.FastHttpDateFormat

public final class FastHttpDateFormat extends ObjectSE
HTTP 日付を生成するユーティリティクラス。

このクラスは Apache Tomcat のコードに基づいています。

  • フィールドの詳細

    • format

      protected static final SimpleDateFormatSE format
      HTTP 日付形式。
    • formats

      protected static final SimpleDateFormatSE[] formats
      getDateHeader() で使用する SimpleDateFormat 形式のセット。
    • gmtZone

      protected static final TimeZoneSE gmtZone
      GMT タイムゾーン - すべての HTTP 日付は GMT です
    • currentDateGenerated

      protected static long currentDateGenerated
      currentDate オブジェクトが生成された瞬間。
    • currentDate

      protected static StringSE currentDate
      現在フォーマットされている日付。
    • formatCache

      protected static final HashMapSE<LongSE,StringSE> formatCache
      フォーマッタキャッシュ。
    • parseCache

      protected static final HashMapSE<StringSE,LongSE> parseCache
      パーサーキャッシュ。
  • メソッドの詳細

    • formatDate

      public static StringSE formatDate(long value, DateFormatSE threadLocalformat)
      指定された日付を HTTP 形式にフォーマットします。ローカル形式が null でない場合は、代わりに使用されます。
      パラメーター:
      value - フォーマットする日付値
      threadLocalformat - 使用するフォーマット (または null -HTTP 形式が使用されます)
      戻り値:
      フォーマットされた日付
    • getCurrentDate

      public static StringSE getCurrentDate()
      現在の日付を HTTP 形式で取得します。
      戻り値:
      HTTP 形式の現在の日付
    • parseDate

      public static long parseDate(StringSE value, DateFormatSE[] threadLocalformats)
      指定された日付を HTTP 日付として解析しようとします。ローカルフォーマットリストが null でない場合は、代わりに使用されます。
      パラメーター:
      value - 解析する文字列
      threadLocalformats - 解析に使用するフォーマットの配列。null の場合、HTTP 形式が使用されます。
      戻り値:
      解析日 (またはエラーが発生した場合は -1)