interface ParsedHeaderValue
static val DEFAULT_WEIGHT: Float
If no "q" parameter is present, the default weight is 1. |
abstract fun <T : ParsedHeaderValue> findMatchedBy(matchTries: MutableCollection<T>): T
Finds the first ParsedHeaderValue in the list that matches with this header value. Will return an empty Optional if none match. This method is intended for internal usage. |
|
abstract fun isMatchedBy(matchTry: ParsedHeaderValue): Boolean
Test if this header is matched by matchTry header |
|
abstract fun isPermitted(): Boolean
Is this an allowed operation as specified by the corresponding header? |
|
abstract fun parameter(key: String): String
The value of the parameter specified by this key. Each is one of 3 things:
q parameter is never present.
|
|
abstract fun parameters(): MutableMap<String, String>
The parameters specified in this header value. Note: The |
|
abstract fun rawValue(): String
Contains the raw value that was received from the user agent |
|
abstract fun value(): String
Holds the unparsed value of the header. For the most part, this is the content before the semi-colon (";") |
|
abstract fun weight(): Float
Holds the weight specified in the "q" parameter of the header. If the parameter is not specified, 1.0 is assumed according to rfc7231 |
|
abstract fun weightedOrder(): Int
An integer that represents the absolute order position of this header |