public class BasicUriHeader extends BasicHeader
Location: http://www.w3.org/pub/WWW/People.html
Constructor and Description |
---|
BasicUriHeader(String name,
Object value)
Constructor
|
Modifier and Type | Method and Description |
---|---|
URI |
asURI()
Returns this header as a
URI . |
static BasicUriHeader |
of(String name,
Object value)
Convenience creator.
|
static BasicUriHeader |
of(String name,
Supplier<?> value)
Convenience creator using supplier.
|
assertName, assertValue, canCast, cast, eqIC, equals, getElements, getName, getRawValue, getValue, hashCode, isSupplier, of, ofPair, toString, unwrap
public BasicUriHeader(String name, Object value)
public static BasicUriHeader of(String name, Object value)
name
- The header name.value
- The header value.
String
BasicUriHeader
object, or public static BasicUriHeader of(String name, Supplier<?> value)
Header value is re-evaluated on each call to BasicHeader.getValue()
.
name
- The header name.value
- The header value supplier.
String
BasicUriHeader
object, or Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.