public class BasicEntityTagArrayHeader extends BasicHeader
If-Match: "xyzzy" If-Match: "xyzzy", "r2d2xxxx", "c3piozzzz" If-Match: *
Constructor and Description |
---|
BasicEntityTagArrayHeader(String name,
Object value)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
List<EntityTag> |
asEntityTags()
Returns this header value as an array of
EntityTag objects. |
String |
getValue() |
static BasicEntityTagArrayHeader |
of(String name,
Object value)
Convenience creator.
|
static BasicEntityTagArrayHeader |
of(String name,
Supplier<?> value)
Convenience creator using supplier.
|
assertName, assertValue, canCast, cast, eqIC, equals, getElements, getName, getRawValue, hashCode, isSupplier, of, ofPair, toString, unwrap
public BasicEntityTagArrayHeader(String name, Object value)
name
- The header name.value
- The header value.
public static BasicEntityTagArrayHeader of(String name, Object value)
name
- The header name.value
- The header value.
EntityTag
objects.
BasicEntityTagArrayHeader
object, or public static BasicEntityTagArrayHeader of(String name, Supplier<?> value)
Header value is re-evaluated on each call to getValue()
.
name
- The header name.value
- The header value supplier.
EntityTag
objects.
BasicEntityTagArrayHeader
object, or public String getValue()
getValue
in interface NameValuePair
getValue
in class BasicHeader
public List<EntityTag> asEntityTags()
EntityTag
objects.EntityTag
objects.Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.