@Header(value="User-Agent") public class UserAgent extends BasicStringHeader
The user agent string of the user agent.
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20100101 Firefox/21.0
User-Agent = "User-Agent" ":" 1*( product | comment )
Example:
User-Agent: CERN-LineMode/2.15 libwww/2.17b3
Constructor and Description |
---|
UserAgent(Object value)
Constructor.
|
UserAgent(String value)
Constructor
|
Modifier and Type | Method and Description |
---|---|
static UserAgent |
of(Object value)
Convenience creator.
|
static UserAgent |
of(Supplier<?> value)
Convenience creator using supplier.
|
assertString, getValue, of, of
assertName, assertValue, canCast, cast, eqIC, equals, getElements, getName, getRawValue, hashCode, isSupplier, of, ofPair, toString, unwrap
Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.