@Header(value="Location") public class Location extends BasicUriHeader
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.
Constructor and Description |
---|
Location(Object value)
Constructor
|
Location(String value)
Constructor
|
Modifier and Type | Method and Description |
---|---|
static Location |
of(Object value)
Convenience creator.
|
static Location |
of(Supplier<?> value)
Convenience creator using supplier.
|
asURI, of, of
assertName, assertValue, canCast, cast, eqIC, equals, getElements, getName, getRawValue, getValue, hashCode, isSupplier, of, ofPair, toString, unwrap
Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.