@Header(value="Location") public final class Location extends HeaderUri
Used in redirection, or when a new resource has been created.
Location: http://www.w3.org/pub/WWW/People.html
Location = "Location" ":" absoluteURI
An example is:
Location: http://www.w3.org/pub/WWW/People.html
Note: The Content-Location header field (section 14.14) differs from Location in that the Content-Location identifies the original location of the entity enclosed in the request. It is therefore possible for a response to contain header fields for both Location and Content-Location. Also see section 13.10 for cache requirements of some methods.
Modifier and Type | Method and Description |
---|---|
static Location |
forString(String value)
Returns a parsed
|
Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.