@Header(value="Server") public class Server extends BasicStringHeader
A name for the server.
Server: Apache/2.4.1 (Unix)
Server = "Server" ":" 1*( product | comment )
Example:
Server: CERN/3.0 libwww/2.17
If the response is being forwarded through a proxy, the proxy application MUST NOT modify the Server response-header. Instead, it SHOULD include a Via field (as described in section 14.45).
Note: Revealing the specific software version of the server might allow the server machine to become more vulnerable to attacks against software that is known to contain security holes. Server implementors are encouraged to make this field a configurable option.
Constructor and Description |
---|
Server(Object value)
Constructor.
|
Server(String value)
Constructor
|
Modifier and Type | Method and Description |
---|---|
static Server |
of(Object value)
Convenience creator.
|
static Server |
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.