Header.
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final boolean | |
| private static final long | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | BasicHeader(final String
the header name name, final Object the header value, taken as the value's value)toString().Default constructor |
| public | BasicHeader(final String
the header name name, final Object the header value, taken as the value's value, final boolean toString().sensitive flag sensitive)Constructor with sensitivity flag |
| Modifier and Type | Method and Description |
|---|---|
| public BasicHeader | |
| public String | |
| public String | |
| public boolean | isSensitive()
Implements org. true if the header should be considered sensitive.
|
| public String |
| name | back to summary |
|---|---|
| private final String name | |
| sensitive | back to summary |
|---|---|
| private final boolean sensitive | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| value | back to summary |
|---|---|
| private final String value | |
| BasicHeader | back to summary |
|---|---|
| public BasicHeader(final String name, final Object value) Default constructor
| |
| BasicHeader | back to summary |
|---|---|
| public BasicHeader(final String name, final Object value, final boolean sensitive) Constructor with sensitivity flag
| |
| clone | back to summary |
|---|---|
| public BasicHeader clone() throws CloneNotSupportedException Overrides java. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by
| |
| getName | back to summary |
|---|---|
| public String getName() Implements org. Doc from org. Gets the name of this pair. | |
| getValue | back to summary |
|---|---|
| public String getValue() Implements org. Doc from org. Gets the value of this pair. | |
| isSensitive | back to summary |
|---|---|
| public boolean isSensitive() Implements org. Doc from org. Returns Some encoding schemes such as HPACK impose restrictions on encoded representation of sensitive headers.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |