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     /**
171      * @deprecated Use {@link #CACHE_CONTROL_STALE_IF_ERROR}
172      */
173     @Deprecated
174     public static final String STALE_IF_ERROR = "stale-if-error";
175     /**
176      * @deprecated Use {@link #CACHE_CONTROL_STALE_WHILE_REVALIDATE}
177      */
178     @Deprecated
179     public static final String STALE_WHILE_REVALIDATE = "stale-while-revalidate";
180 
181     /**
182      * @deprecated Use {@link org.apache.hc.core5.http.HttpHeaders}
183      */
184     @Deprecated
185     public static final String WARNING = "Warning";
186     /**
187      * @deprecated Use {@link org.apache.hc.core5.http.HttpHeaders}
188      */
189     @Deprecated
190     public static final String RANGE = "Range";
191     /**
192      * @deprecated Use {@link org.apache.hc.core5.http.HttpHeaders}
193      */
194     @Deprecated
195     public static final String CONTENT_RANGE = "Content-Range";
196     /**
197      * @deprecated Use {@link org.apache.hc.core5.http.HttpHeaders}
198      */
199     @Deprecated
200     public static final String WWW_AUTHENTICATE = "WWW-Authenticate";
201     /**
202      * @deprecated Use {@link org.apache.hc.core5.http.HttpHeaders}
203      */
204     @Deprecated
205     public static final String PROXY_AUTHENTICATE = "Proxy-Authenticate";
206     /**
207      * @deprecated Use {@link org.apache.hc.core5.http.HttpHeaders}
208      */
209     @Deprecated
210     public static final String AUTHORIZATION = "Authorization";
211 
212 }