View Javadoc
1   /*
2    * ====================================================================
3    * Licensed to the Apache Software Foundation (ASF) under one
4    * or more contributor license agreements.  See the NOTICE file
5    * distributed with this work for additional information
6    * regarding copyright ownership.  The ASF licenses this file
7    * to you under the Apache License, Version 2.0 (the
8    * "License"); you may not use this file except in compliance
9    * with the License.  You may obtain a copy of the License at
10   *
11   *   http://www.apache.org/licenses/LICENSE-2.0
12   *
13   * Unless required by applicable law or agreed to in writing,
14   * software distributed under the License is distributed on an
15   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16   * KIND, either express or implied.  See the License for the
17   * specific language governing permissions and limitations
18   * under the License.
19   * ====================================================================
20   *
21   * This software consists of voluntary contributions made by many
22   * individuals on behalf of the Apache Software Foundation.  For more
23   * information on the Apache Software Foundation, please see
24   * <http://www.apache.org/>.
25   *
26   */
27  package org.apache.hc.client5.http.cache;
28  
29  /**
30   * Records static constants for various HTTP header names.
31   *
32   * @since 4.1
33   */
34  public class HeaderConstants {
35  
36      public static final String GET_METHOD = "GET";
37      public static final String HEAD_METHOD = "HEAD";
38      public static final String OPTIONS_METHOD = "OPTIONS";
39      public static final String PUT_METHOD = "PUT";
40      public static final String DELETE_METHOD = "DELETE";
41      public static final String TRACE_METHOD = "TRACE";
42  
43      public static final String LAST_MODIFIED = "Last-Modified";
44      public static final String IF_MATCH = "If-Match";
45      public static final String IF_RANGE = "If-Range";
46      public static final String IF_UNMODIFIED_SINCE = "If-Unmodified-Since";
47      public static final String IF_MODIFIED_SINCE = "If-Modified-Since";
48      public static final String IF_NONE_MATCH = "If-None-Match";
49  
50      public static final String PRAGMA = "Pragma";
51      public static final String MAX_FORWARDS = "Max-Forwards";
52      public static final String ETAG = "ETag";
53      public static final String EXPIRES = "Expires";
54      public static final String AGE = "Age";
55      public static final String VARY = "Vary";
56      public static final String ALLOW = "Allow";
57      public static final String VIA = "Via";
58      public static final String PUBLIC = "public";
59      public static final String PRIVATE = "private";
60  
61      public static final String CACHE_CONTROL = "Cache-Control";
62      public static final String CACHE_CONTROL_NO_STORE = "no-store";
63      public static final String CACHE_CONTROL_NO_CACHE = "no-cache";
64      public static final String CACHE_CONTROL_MAX_AGE = "max-age";
65      public static final String CACHE_CONTROL_MAX_STALE = "max-stale";
66      public static final String CACHE_CONTROL_MIN_FRESH = "min-fresh";
67      public static final String CACHE_CONTROL_MUST_REVALIDATE = "must-revalidate";
68      public static final String CACHE_CONTROL_PROXY_REVALIDATE = "proxy-revalidate";
69      public static final String STALE_IF_ERROR = "stale-if-error";
70      public static final String STALE_WHILE_REVALIDATE = "stale-while-revalidate";
71  
72      public static final String WARNING = "Warning";
73      public static final String RANGE = "Range";
74      public static final String CONTENT_RANGE = "Content-Range";
75      public static final String WWW_AUTHENTICATE = "WWW-Authenticate";
76      public static final String PROXY_AUTHENTICATE = "Proxy-Authenticate";
77      public static final String AUTHORIZATION = "Authorization";
78  
79  }