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 caching directives.
31   *
32   * @since 4.1
33   */
34  public class HeaderConstants {
35  
36      /**
37       * @deprecated Use {@link org.apache.hc.core5.http.Method}
38       */
39      @Deprecated
40      public static final String GET_METHOD = "GET";
41      /**
42       * @deprecated Use {@link org.apache.hc.core5.http.Method}
43       */
44      @Deprecated
45      public static final String HEAD_METHOD = "HEAD";
46      /**
47       * @deprecated Use {@link org.apache.hc.core5.http.Method}
48       */
49      @Deprecated
50      public static final String OPTIONS_METHOD = "OPTIONS";
51      /**
52       * @deprecated Use {@link org.apache.hc.core5.http.Method}
53       */
54      @Deprecated
55      public static final String PUT_METHOD = "PUT";
56      /**
57       * @deprecated Use {@link org.apache.hc.core5.http.Method}
58       */
59      @Deprecated
60      public static final String DELETE_METHOD = "DELETE";
61      /**
62       * @deprecated Use {@link org.apache.hc.core5.http.Method}
63       */
64      @Deprecated
65      public static final String TRACE_METHOD = "TRACE";
66      /**
67       * @deprecated Use {@link org.apache.hc.core5.http.Method}
68       */
69      @Deprecated
70      public static final String POST_METHOD = "POST";
71  
72      /**
73       * @deprecated Use {@link org.apache.hc.core5.http.HttpHeaders}
74       */
75      @Deprecated
76      public static final String LAST_MODIFIED = "Last-Modified";
77      /**
78       * @deprecated Use {@link org.apache.hc.core5.http.HttpHeaders}
79       */
80      @Deprecated
81      public static final String IF_MATCH = "If-Match";
82      /**
83       * @deprecated Use {@link org.apache.hc.core5.http.HttpHeaders}
84       */
85      @Deprecated
86      public static final String IF_RANGE = "If-Range";
87      /**
88       * @deprecated Use {@link org.apache.hc.core5.http.HttpHeaders}
89       */
90      @Deprecated
91      public static final String IF_UNMODIFIED_SINCE = "If-Unmodified-Since";
92      /**
93       * @deprecated Use {@link org.apache.hc.core5.http.HttpHeaders}
94       */
95      @Deprecated
96      public static final String IF_MODIFIED_SINCE = "If-Modified-Since";
97      /**
98       * @deprecated Use {@link org.apache.hc.core5.http.HttpHeaders}
99       */
100     @Deprecated
101     public static final String IF_NONE_MATCH = "If-None-Match";
102     /**
103      * @deprecated Use {@link org.apache.hc.core5.http.HttpHeaders}
104      */
105     @Deprecated
106     public static final String PRAGMA = "Pragma";
107     /**
108      * @deprecated Use {@link org.apache.hc.core5.http.HttpHeaders}
109      */
110     @Deprecated
111     public static final String MAX_FORWARDS = "Max-Forwards";
112     /**
113      * @deprecated Use {@link org.apache.hc.core5.http.HttpHeaders}
114      */
115     @Deprecated
116     public static final String ETAG = "ETag";
117     /**
118      * @deprecated Use {@link org.apache.hc.core5.http.HttpHeaders}
119      */
120     @Deprecated
121     public static final String EXPIRES = "Expires";
122     /**
123      * @deprecated Use {@link org.apache.hc.core5.http.HttpHeaders}
124      */
125     @Deprecated
126     public static final String AGE = "Age";
127     /**
128      * @deprecated Use {@link org.apache.hc.core5.http.HttpHeaders}
129      */
130     @Deprecated
131     public static final String VARY = "Vary";
132     /**
133      * @deprecated Use {@link org.apache.hc.core5.http.HttpHeaders}
134      */
135     @Deprecated
136     public static final String ALLOW = "Allow";
137     /**
138      * @deprecated Use {@link org.apache.hc.core5.http.HttpHeaders}
139      */
140     @Deprecated
141     public static final String VIA = "Via";
142     /**
143      * @deprecated Use {@link #CACHE_CONTROL_PUBLIC}
144      */
145     @Deprecated
146     public static final String PUBLIC = "public";
147     /**
148      * @deprecated Use {@link #CACHE_CONTROL_PRIVATE}
149      */
150     @Deprecated
151     public static final String PRIVATE = "private";
152 
153     public static final String CACHE_CONTROL = "Cache-Control";
154     public static final String CACHE_CONTROL_PUBLIC = "public";
155     public static final String CACHE_CONTROL_PRIVATE = "private";
156     public static final String CACHE_CONTROL_NO_STORE = "no-store";
157     public static final String CACHE_CONTROL_NO_CACHE = "no-cache";
158     public static final String CACHE_CONTROL_MAX_AGE = "max-age";
159     public static final String CACHE_CONTROL_S_MAX_AGE = "s-maxage";
160     public static final String CACHE_CONTROL_MAX_STALE = "max-stale";
161     public static final String CACHE_CONTROL_MIN_FRESH = "min-fresh";
162     public static final String CACHE_CONTROL_MUST_REVALIDATE = "must-revalidate";
163     public static final String CACHE_CONTROL_PROXY_REVALIDATE = "proxy-revalidate";
164     public static final String CACHE_CONTROL_STALE_IF_ERROR = "stale-if-error";
165     public static final String CACHE_CONTROL_STALE_WHILE_REVALIDATE = "stale-while-revalidate";
166     public static final String CACHE_CONTROL_ONLY_IF_CACHED = "only-if-cached";
167     public static final String CACHE_CONTROL_MUST_UNDERSTAND = "must-understand";
168     public static final String CACHE_CONTROL_IMMUTABLE= "immutable";
169     /**
170      * @deprecated Use {@link #CACHE_CONTROL_STALE_IF_ERROR}
171      */
172     @Deprecated
173     public static final String STALE_IF_ERROR = "stale-if-error";
174     /**
175      * @deprecated Use {@link #CACHE_CONTROL_STALE_WHILE_REVALIDATE}
176      */
177     @Deprecated
178     public static final String STALE_WHILE_REVALIDATE = "stale-while-revalidate";
179 
180     /**
181      * @deprecated Use {@link org.apache.hc.core5.http.HttpHeaders}
182      */
183     @Deprecated
184     public static final String WARNING = "Warning";
185     /**
186      * @deprecated Use {@link org.apache.hc.core5.http.HttpHeaders}
187      */
188     @Deprecated
189     public static final String RANGE = "Range";
190     /**
191      * @deprecated Use {@link org.apache.hc.core5.http.HttpHeaders}
192      */
193     @Deprecated
194     public static final String CONTENT_RANGE = "Content-Range";
195     /**
196      * @deprecated Use {@link org.apache.hc.core5.http.HttpHeaders}
197      */
198     @Deprecated
199     public static final String WWW_AUTHENTICATE = "WWW-Authenticate";
200     /**
201      * @deprecated Use {@link org.apache.hc.core5.http.HttpHeaders}
202      */
203     @Deprecated
204     public static final String PROXY_AUTHENTICATE = "Proxy-Authenticate";
205     /**
206      * @deprecated Use {@link org.apache.hc.core5.http.HttpHeaders}
207      */
208     @Deprecated
209     public static final String AUTHORIZATION = "Authorization";
210 
211 }