Package io.vertx.mutiny.ext.web
Interface ParsedHeaderValue
- All Superinterfaces:
MutinyDelegate
- All Known Implementing Classes:
LanguageHeader,MIMEHeader,ParsedHeaderValue.ParsedHeaderValueImpl
NOTE: This class has been automatically generated from the
original non Mutiny-ified interface.- See Also:
-
ParsedHeaderValue
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final floatIf no "q" parameter is present, the default weight is 1.
-
Method Summary
Modifier and TypeMethodDescriptionio.vertx.ext.web.ParsedHeaderValuebooleanisMatchedBy(ParsedHeaderValue matchTry) Test if this header is matched by matchTry headerbooleanIs this an allowed operation as specified by the corresponding header?static ParsedHeaderValuenewInstance(io.vertx.ext.web.ParsedHeaderValue delegate) Creates a new instance of theParsedHeaderValue.The value of the parameter specified by this key.The parameters specified in this header value.rawValue()Contains the raw value that was received from the user agentvalue()Holds the unparsed value of the header.
For the most part, this is the content before the semi-colon (";")floatweight()Holds the weight specified in the "q" parameter of the header.
If the parameter is not specified, 1.0 is assumed according to rfc7231intAn integer that represents the absolute order position of this header
-
Field Details
-
DEFAULT_WEIGHT
static final float DEFAULT_WEIGHTIf no "q" parameter is present, the default weight is 1.
- See Also:
-
-
Method Details
-
getDelegate
io.vertx.ext.web.ParsedHeaderValue getDelegate()- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate used by this Mutiny object of generated type
-
rawValue
String rawValue()Contains the raw value that was received from the user agent -
value
String value()Holds the unparsed value of the header.
For the most part, this is the content before the semi-colon (";") -
weight
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- Returns:
-
parameter
The value of the parameter specified by this key. Each is one of 3 things:- null <- That key was not specified
- ParsedHeaderValue.EMPTY (tested using ==) <- The value was not specified
- [Other] <- The value of the parameter
qparameter is never present.- Returns:
- . Can be
null.
-
parameters
The parameters specified in this header value. Note: Theqparameter is never present.- Returns:
- Unmodifiable Map of parameters of this header value
-
isPermitted
boolean isPermitted()Is this an allowed operation as specified by the corresponding header?- Returns:
-
isMatchedBy
Test if this header is matched by matchTry header- Parameters:
matchTry- The header to be matched from- Returns:
- true if this header represents a subset of matchTry, otherwise, false
-
weightedOrder
int weightedOrder()An integer that represents the absolute order position of this header -
newInstance
Creates a new instance of theParsedHeaderValue.
-