public interface ParsedHeaderValue
Modifier and Type | Field and Description |
---|---|
static float |
DEFAULT_WEIGHT
If no "q" parameter is present, the default weight is 1. |
Modifier and Type | Method and Description |
---|---|
<T extends ParsedHeaderValue> |
findMatchedBy(Collection<T> matchTries)
Finds the first ParsedHeaderValue in the list that matches with this header value.
|
boolean |
isMatchedBy(ParsedHeaderValue matchTry)
Test if this header is matched by matchTry header
|
boolean |
isPermitted()
Is this an allowed operation as specified by the corresponding header?
|
String |
parameter(String key)
The value of the parameter specified by this key.
|
Map<String,String> |
parameters()
The parameters specified in this header value.
|
String |
rawValue()
Contains the raw value that was received from the user agent
|
String |
value()
Holds the unparsed value of the header.
For the most part, this is the content before the semi-colon (";") |
float |
weight()
Holds the weight specified in the "q" parameter of the header.
If the parameter is not specified, 1.0 is assumed according to rfc7231 |
int |
weightedOrder()
An integer that represents the absolute order position of this header
|
static final float DEFAULT_WEIGHT
If no "q" parameter is present, the default weight is 1.
String rawValue()
String value()
float weight()
String parameter(String key)
q
parameter is never present.Map<String,String> parameters()
q
parameter is never present.#parameter(String)}
boolean isPermitted()
boolean isMatchedBy(ParsedHeaderValue matchTry)
matchTry
- The header to be matched from<T extends ParsedHeaderValue> T findMatchedBy(Collection<T> matchTries)
matchTries
- A list of parsed headers to match from this header valueint weightedOrder()
Copyright © 2022 Eclipse. All rights reserved.