Wed, 31 Dec 2014 07:22:50 +0100
Correct previous dual key logic pending first delivery installment.
michael@0 | 1 | /* |
michael@0 | 2 | * ==================================================================== |
michael@0 | 3 | * Licensed to the Apache Software Foundation (ASF) under one |
michael@0 | 4 | * or more contributor license agreements. See the NOTICE file |
michael@0 | 5 | * distributed with this work for additional information |
michael@0 | 6 | * regarding copyright ownership. The ASF licenses this file |
michael@0 | 7 | * to you under the Apache License, Version 2.0 (the |
michael@0 | 8 | * "License"); you may not use this file except in compliance |
michael@0 | 9 | * with the License. You may obtain a copy of the License at |
michael@0 | 10 | * |
michael@0 | 11 | * http://www.apache.org/licenses/LICENSE-2.0 |
michael@0 | 12 | * |
michael@0 | 13 | * Unless required by applicable law or agreed to in writing, |
michael@0 | 14 | * software distributed under the License is distributed on an |
michael@0 | 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
michael@0 | 16 | * KIND, either express or implied. See the License for the |
michael@0 | 17 | * specific language governing permissions and limitations |
michael@0 | 18 | * under the License. |
michael@0 | 19 | * ==================================================================== |
michael@0 | 20 | * |
michael@0 | 21 | * This software consists of voluntary contributions made by many |
michael@0 | 22 | * individuals on behalf of the Apache Software Foundation. For more |
michael@0 | 23 | * information on the Apache Software Foundation, please see |
michael@0 | 24 | * <http://www.apache.org/>. |
michael@0 | 25 | * |
michael@0 | 26 | */ |
michael@0 | 27 | |
michael@0 | 28 | package ch.boye.httpclientandroidlib; |
michael@0 | 29 | |
michael@0 | 30 | /** |
michael@0 | 31 | * Constants enumerating the HTTP headers. All headers defined in RFC1945 (HTTP/1.0), RFC2616 (HTTP/1.1), and RFC2518 |
michael@0 | 32 | * (WebDAV) are listed. |
michael@0 | 33 | * |
michael@0 | 34 | * @since 4.1 |
michael@0 | 35 | */ |
michael@0 | 36 | public final class HttpHeaders { |
michael@0 | 37 | |
michael@0 | 38 | private HttpHeaders() { |
michael@0 | 39 | } |
michael@0 | 40 | |
michael@0 | 41 | /** RFC 2616 (HTTP/1.1) Section 14.1 */ |
michael@0 | 42 | public static final String ACCEPT = "Accept"; |
michael@0 | 43 | |
michael@0 | 44 | /** RFC 2616 (HTTP/1.1) Section 14.2 */ |
michael@0 | 45 | public static final String ACCEPT_CHARSET = "Accept-Charset"; |
michael@0 | 46 | |
michael@0 | 47 | /** RFC 2616 (HTTP/1.1) Section 14.3 */ |
michael@0 | 48 | public static final String ACCEPT_ENCODING = "Accept-Encoding"; |
michael@0 | 49 | |
michael@0 | 50 | /** RFC 2616 (HTTP/1.1) Section 14.4 */ |
michael@0 | 51 | public static final String ACCEPT_LANGUAGE = "Accept-Language"; |
michael@0 | 52 | |
michael@0 | 53 | /** RFC 2616 (HTTP/1.1) Section 14.5 */ |
michael@0 | 54 | public static final String ACCEPT_RANGES = "Accept-Ranges"; |
michael@0 | 55 | |
michael@0 | 56 | /** RFC 2616 (HTTP/1.1) Section 14.6 */ |
michael@0 | 57 | public static final String AGE = "Age"; |
michael@0 | 58 | |
michael@0 | 59 | /** RFC 1945 (HTTP/1.0) Section 10.1, RFC 2616 (HTTP/1.1) Section 14.7 */ |
michael@0 | 60 | public static final String ALLOW = "Allow"; |
michael@0 | 61 | |
michael@0 | 62 | /** RFC 1945 (HTTP/1.0) Section 10.2, RFC 2616 (HTTP/1.1) Section 14.8 */ |
michael@0 | 63 | public static final String AUTHORIZATION = "Authorization"; |
michael@0 | 64 | |
michael@0 | 65 | /** RFC 2616 (HTTP/1.1) Section 14.9 */ |
michael@0 | 66 | public static final String CACHE_CONTROL = "Cache-Control"; |
michael@0 | 67 | |
michael@0 | 68 | /** RFC 2616 (HTTP/1.1) Section 14.10 */ |
michael@0 | 69 | public static final String CONNECTION = "Connection"; |
michael@0 | 70 | |
michael@0 | 71 | /** RFC 1945 (HTTP/1.0) Section 10.3, RFC 2616 (HTTP/1.1) Section 14.11 */ |
michael@0 | 72 | public static final String CONTENT_ENCODING = "Content-Encoding"; |
michael@0 | 73 | |
michael@0 | 74 | /** RFC 2616 (HTTP/1.1) Section 14.12 */ |
michael@0 | 75 | public static final String CONTENT_LANGUAGE = "Content-Language"; |
michael@0 | 76 | |
michael@0 | 77 | /** RFC 1945 (HTTP/1.0) Section 10.4, RFC 2616 (HTTP/1.1) Section 14.13 */ |
michael@0 | 78 | public static final String CONTENT_LENGTH = "Content-Length"; |
michael@0 | 79 | |
michael@0 | 80 | /** RFC 2616 (HTTP/1.1) Section 14.14 */ |
michael@0 | 81 | public static final String CONTENT_LOCATION = "Content-Location"; |
michael@0 | 82 | |
michael@0 | 83 | /** RFC 2616 (HTTP/1.1) Section 14.15 */ |
michael@0 | 84 | public static final String CONTENT_MD5 = "Content-MD5"; |
michael@0 | 85 | |
michael@0 | 86 | /** RFC 2616 (HTTP/1.1) Section 14.16 */ |
michael@0 | 87 | public static final String CONTENT_RANGE = "Content-Range"; |
michael@0 | 88 | |
michael@0 | 89 | /** RFC 1945 (HTTP/1.0) Section 10.5, RFC 2616 (HTTP/1.1) Section 14.17 */ |
michael@0 | 90 | public static final String CONTENT_TYPE = "Content-Type"; |
michael@0 | 91 | |
michael@0 | 92 | /** RFC 1945 (HTTP/1.0) Section 10.6, RFC 2616 (HTTP/1.1) Section 14.18 */ |
michael@0 | 93 | public static final String DATE = "Date"; |
michael@0 | 94 | |
michael@0 | 95 | /** RFC 2518 (WevDAV) Section 9.1 */ |
michael@0 | 96 | public static final String DAV = "Dav"; |
michael@0 | 97 | |
michael@0 | 98 | /** RFC 2518 (WevDAV) Section 9.2 */ |
michael@0 | 99 | public static final String DEPTH = "Depth"; |
michael@0 | 100 | |
michael@0 | 101 | /** RFC 2518 (WevDAV) Section 9.3 */ |
michael@0 | 102 | public static final String DESTINATION = "Destination"; |
michael@0 | 103 | |
michael@0 | 104 | /** RFC 2616 (HTTP/1.1) Section 14.19 */ |
michael@0 | 105 | public static final String ETAG = "ETag"; |
michael@0 | 106 | |
michael@0 | 107 | /** RFC 2616 (HTTP/1.1) Section 14.20 */ |
michael@0 | 108 | public static final String EXPECT = "Expect"; |
michael@0 | 109 | |
michael@0 | 110 | /** RFC 1945 (HTTP/1.0) Section 10.7, RFC 2616 (HTTP/1.1) Section 14.21 */ |
michael@0 | 111 | public static final String EXPIRES = "Expires"; |
michael@0 | 112 | |
michael@0 | 113 | /** RFC 1945 (HTTP/1.0) Section 10.8, RFC 2616 (HTTP/1.1) Section 14.22 */ |
michael@0 | 114 | public static final String FROM = "From"; |
michael@0 | 115 | |
michael@0 | 116 | /** RFC 2616 (HTTP/1.1) Section 14.23 */ |
michael@0 | 117 | public static final String HOST = "Host"; |
michael@0 | 118 | |
michael@0 | 119 | /** RFC 2518 (WevDAV) Section 9.4 */ |
michael@0 | 120 | public static final String IF = "If"; |
michael@0 | 121 | |
michael@0 | 122 | /** RFC 2616 (HTTP/1.1) Section 14.24 */ |
michael@0 | 123 | public static final String IF_MATCH = "If-Match"; |
michael@0 | 124 | |
michael@0 | 125 | /** RFC 1945 (HTTP/1.0) Section 10.9, RFC 2616 (HTTP/1.1) Section 14.25 */ |
michael@0 | 126 | public static final String IF_MODIFIED_SINCE = "If-Modified-Since"; |
michael@0 | 127 | |
michael@0 | 128 | /** RFC 2616 (HTTP/1.1) Section 14.26 */ |
michael@0 | 129 | public static final String IF_NONE_MATCH = "If-None-Match"; |
michael@0 | 130 | |
michael@0 | 131 | /** RFC 2616 (HTTP/1.1) Section 14.27 */ |
michael@0 | 132 | public static final String IF_RANGE = "If-Range"; |
michael@0 | 133 | |
michael@0 | 134 | /** RFC 2616 (HTTP/1.1) Section 14.28 */ |
michael@0 | 135 | public static final String IF_UNMODIFIED_SINCE = "If-Unmodified-Since"; |
michael@0 | 136 | |
michael@0 | 137 | /** RFC 1945 (HTTP/1.0) Section 10.10, RFC 2616 (HTTP/1.1) Section 14.29 */ |
michael@0 | 138 | public static final String LAST_MODIFIED = "Last-Modified"; |
michael@0 | 139 | |
michael@0 | 140 | /** RFC 1945 (HTTP/1.0) Section 10.11, RFC 2616 (HTTP/1.1) Section 14.30 */ |
michael@0 | 141 | public static final String LOCATION = "Location"; |
michael@0 | 142 | |
michael@0 | 143 | /** RFC 2518 (WevDAV) Section 9.5 */ |
michael@0 | 144 | public static final String LOCK_TOKEN = "Lock-Token"; |
michael@0 | 145 | |
michael@0 | 146 | /** RFC 2616 (HTTP/1.1) Section 14.31 */ |
michael@0 | 147 | public static final String MAX_FORWARDS = "Max-Forwards"; |
michael@0 | 148 | |
michael@0 | 149 | /** RFC 2518 (WevDAV) Section 9.6 */ |
michael@0 | 150 | public static final String OVERWRITE = "Overwrite"; |
michael@0 | 151 | |
michael@0 | 152 | /** RFC 1945 (HTTP/1.0) Section 10.12, RFC 2616 (HTTP/1.1) Section 14.32 */ |
michael@0 | 153 | public static final String PRAGMA = "Pragma"; |
michael@0 | 154 | |
michael@0 | 155 | /** RFC 2616 (HTTP/1.1) Section 14.33 */ |
michael@0 | 156 | public static final String PROXY_AUTHENTICATE = "Proxy-Authenticate"; |
michael@0 | 157 | |
michael@0 | 158 | /** RFC 2616 (HTTP/1.1) Section 14.34 */ |
michael@0 | 159 | public static final String PROXY_AUTHORIZATION = "Proxy-Authorization"; |
michael@0 | 160 | |
michael@0 | 161 | /** RFC 2616 (HTTP/1.1) Section 14.35 */ |
michael@0 | 162 | public static final String RANGE = "Range"; |
michael@0 | 163 | |
michael@0 | 164 | /** RFC 1945 (HTTP/1.0) Section 10.13, RFC 2616 (HTTP/1.1) Section 14.36 */ |
michael@0 | 165 | public static final String REFERER = "Referer"; |
michael@0 | 166 | |
michael@0 | 167 | /** RFC 2616 (HTTP/1.1) Section 14.37 */ |
michael@0 | 168 | public static final String RETRY_AFTER = "Retry-After"; |
michael@0 | 169 | |
michael@0 | 170 | /** RFC 1945 (HTTP/1.0) Section 10.14, RFC 2616 (HTTP/1.1) Section 14.38 */ |
michael@0 | 171 | public static final String SERVER = "Server"; |
michael@0 | 172 | |
michael@0 | 173 | /** RFC 2518 (WevDAV) Section 9.7 */ |
michael@0 | 174 | public static final String STATUS_URI = "Status-URI"; |
michael@0 | 175 | |
michael@0 | 176 | /** RFC 2616 (HTTP/1.1) Section 14.39 */ |
michael@0 | 177 | public static final String TE = "TE"; |
michael@0 | 178 | |
michael@0 | 179 | /** RFC 2518 (WevDAV) Section 9.8 */ |
michael@0 | 180 | public static final String TIMEOUT = "Timeout"; |
michael@0 | 181 | |
michael@0 | 182 | /** RFC 2616 (HTTP/1.1) Section 14.40 */ |
michael@0 | 183 | public static final String TRAILER = "Trailer"; |
michael@0 | 184 | |
michael@0 | 185 | /** RFC 2616 (HTTP/1.1) Section 14.41 */ |
michael@0 | 186 | public static final String TRANSFER_ENCODING = "Transfer-Encoding"; |
michael@0 | 187 | |
michael@0 | 188 | /** RFC 2616 (HTTP/1.1) Section 14.42 */ |
michael@0 | 189 | public static final String UPGRADE = "Upgrade"; |
michael@0 | 190 | |
michael@0 | 191 | /** RFC 1945 (HTTP/1.0) Section 10.15, RFC 2616 (HTTP/1.1) Section 14.43 */ |
michael@0 | 192 | public static final String USER_AGENT = "User-Agent"; |
michael@0 | 193 | |
michael@0 | 194 | /** RFC 2616 (HTTP/1.1) Section 14.44 */ |
michael@0 | 195 | public static final String VARY = "Vary"; |
michael@0 | 196 | |
michael@0 | 197 | /** RFC 2616 (HTTP/1.1) Section 14.45 */ |
michael@0 | 198 | public static final String VIA = "Via"; |
michael@0 | 199 | |
michael@0 | 200 | /** RFC 2616 (HTTP/1.1) Section 14.46 */ |
michael@0 | 201 | public static final String WARNING = "Warning"; |
michael@0 | 202 | |
michael@0 | 203 | /** RFC 1945 (HTTP/1.0) Section 10.16, RFC 2616 (HTTP/1.1) Section 14.47 */ |
michael@0 | 204 | public static final String WWW_AUTHENTICATE = "WWW-Authenticate"; |
michael@0 | 205 | |
michael@0 | 206 | } |