Package io.vertx.mutiny.ext.web
Class MIMEHeader
java.lang.Object
io.vertx.mutiny.ext.web.MIMEHeader
- All Implemented Interfaces:
MutinyDelegate
,ParsedHeaderValue
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TypeArg<MIMEHeader>
static final float
If no "q" parameter is present, the default weight is 1.
-
Constructor Summary
ConstructorsConstructorDescriptionMIMEHeader
(io.vertx.ext.web.MIMEHeader delegate) MIMEHeader
(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionboolean
io.vertx.ext.web.MIMEHeader
int
hashCode()
boolean
isMatchedBy
(ParsedHeaderValue matchTry) boolean
static MIMEHeader
newInstance
(io.vertx.ext.web.MIMEHeader arg) rawValue()
toString()
value()
float
weight()
int
-
Field Details
-
__TYPE_ARG
-
DEFAULT_WEIGHT
public static final float DEFAULT_WEIGHTIf no "q" parameter is present, the default weight is 1.
- See Also:
-
-
Constructor Details
-
MIMEHeader
public MIMEHeader(io.vertx.ext.web.MIMEHeader delegate) -
MIMEHeader
-
-
Method Details
-
getDelegate
public io.vertx.ext.web.MIMEHeader getDelegate()- Specified by:
getDelegate
in interfaceMutinyDelegate
- Specified by:
getDelegate
in interfaceParsedHeaderValue
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
rawValue
- Specified by:
rawValue
in interfaceParsedHeaderValue
- Returns:
-
value
- Specified by:
value
in interfaceParsedHeaderValue
- Returns:
-
weight
public float weight()- Specified by:
weight
in interfaceParsedHeaderValue
- Returns:
-
parameter
- Specified by:
parameter
in interfaceParsedHeaderValue
- Parameters:
key
-- Returns:
-
parameters
- Specified by:
parameters
in interfaceParsedHeaderValue
- Returns:
- Unmodifiable Map of parameters of this header value
-
isPermitted
public boolean isPermitted()- Specified by:
isPermitted
in interfaceParsedHeaderValue
- Returns:
-
isMatchedBy
- Specified by:
isMatchedBy
in 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()- Specified by:
weightedOrder
in interfaceParsedHeaderValue
- Returns:
-
component
- Returns:
- The component of the MIME this represents
-
subComponent
- Returns:
- The subcomponent of the MIME this represents
-
newInstance
-