Package io.vertx.mutiny.ext.web
Class ParsedHeaderValue.ParsedHeaderValueImpl
java.lang.Object
io.vertx.mutiny.ext.web.ParsedHeaderValue.ParsedHeaderValueImpl
- All Implemented Interfaces:
MutinyDelegate,ParsedHeaderValue
- Enclosing interface:
- ParsedHeaderValue
public static class ParsedHeaderValue.ParsedHeaderValueImpl
extends Object
implements ParsedHeaderValue
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vertx.mutiny.ext.web.ParsedHeaderValue
ParsedHeaderValue.ParsedHeaderValueImpl -
Field Summary
Fields inherited from interface io.vertx.mutiny.ext.web.ParsedHeaderValue
DEFAULT_WEIGHT -
Constructor Summary
ConstructorsConstructorDescriptionParsedHeaderValueImpl(io.vertx.ext.web.ParsedHeaderValue delegate) Create a new instance ofParsedHeaderValue.ParsedHeaderValueImpldelegating to the given (non-null) instance ofParsedHeaderValue. -
Method Summary
Modifier and TypeMethodDescriptionio.vertx.ext.web.ParsedHeaderValueGet the delegate instance.booleanisMatchedBy(ParsedHeaderValue matchTry) Test if this header is matched by matchTry headerbooleanIs this an allowed operation as specified by the corresponding header?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
-
Constructor Details
-
ParsedHeaderValueImpl
public ParsedHeaderValueImpl(io.vertx.ext.web.ParsedHeaderValue delegate) Create a new instance ofParsedHeaderValue.ParsedHeaderValueImpldelegating to the given (non-null) instance ofParsedHeaderValue.
-
-
Method Details
-
getDelegate
public io.vertx.ext.web.ParsedHeaderValue getDelegate()Get the delegate instance.This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.
- Specified by:
getDelegatein interfaceMutinyDelegate- Specified by:
getDelegatein interfaceParsedHeaderValue- Returns:
- the delegate instance
-
rawValue
Contains the raw value that was received from the user agent- Specified by:
rawValuein interfaceParsedHeaderValue
-
value
Holds the unparsed value of the header.
For the most part, this is the content before the semi-colon (";")- Specified by:
valuein interfaceParsedHeaderValue
-
weight
public 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- Specified by:
weightin interfaceParsedHeaderValue- 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.- Specified by:
parameterin interfaceParsedHeaderValue- Returns:
- . Can be
null.
-
parameters
The parameters specified in this header value. Note: Theqparameter is never present.- Specified by:
parametersin interfaceParsedHeaderValue- Returns:
- Unmodifiable Map of parameters of this header value
-
isPermitted
public boolean isPermitted()Is this an allowed operation as specified by the corresponding header?- Specified by:
isPermittedin interfaceParsedHeaderValue- Returns:
-
isMatchedBy
Test if this header is matched by matchTry header- Specified by:
isMatchedByin interfaceParsedHeaderValue- Parameters:
matchTry- The header to be matched from- Returns:
- true if this header represents a subset of matchTry, otherwise, false
-
weightedOrder
public int weightedOrder()An integer that represents the absolute order position of this header- Specified by:
weightedOrderin interfaceParsedHeaderValue
-