Package io.vertx.mutiny.ext.web
Class MIMEHeader
- java.lang.Object
-
- io.vertx.mutiny.ext.web.MIMEHeader
-
- All Implemented Interfaces:
ParsedHeaderValue
public class MIMEHeader extends Object implements ParsedHeaderValue
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<MIMEHeader>__TYPE_ARGstatic floatDEFAULT_WEIGHTIf no "q" parameter is present, the default weight is 1.
-
Constructor Summary
Constructors Constructor Description MIMEHeader(io.vertx.ext.web.MIMEHeader delegate)MIMEHeader(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringcomponent()booleanequals(Object o)io.vertx.ext.web.MIMEHeadergetDelegate()inthashCode()booleanisMatchedBy(ParsedHeaderValue matchTry)booleanisPermitted()static MIMEHeadernewInstance(io.vertx.ext.web.MIMEHeader arg)Stringparameter(String key)Map<String,String>parameters()StringrawValue()StringsubComponent()StringtoString()Stringvalue()floatweight()intweightedOrder()
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<MIMEHeader> __TYPE_ARG
-
DEFAULT_WEIGHT
public static final float DEFAULT_WEIGHT
If no "q" parameter is present, the default weight is 1.
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MIMEHeader
public MIMEHeader(io.vertx.ext.web.MIMEHeader delegate)
-
MIMEHeader
public MIMEHeader(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.ext.web.MIMEHeader getDelegate()
- Specified by:
getDelegatein interfaceParsedHeaderValue
-
rawValue
public String rawValue()
- Specified by:
rawValuein interfaceParsedHeaderValue- Returns:
-
value
public String value()
- Specified by:
valuein interfaceParsedHeaderValue- Returns:
-
weight
public float weight()
- Specified by:
weightin interfaceParsedHeaderValue- Returns:
-
parameter
public String parameter(String key)
- Specified by:
parameterin interfaceParsedHeaderValue- Parameters:
key-- Returns:
-
parameters
public Map<String,String> parameters()
- Specified by:
parametersin interfaceParsedHeaderValue- Returns:
- Unmodifiable Map of parameters of this header value
-
isPermitted
public boolean isPermitted()
- Specified by:
isPermittedin interfaceParsedHeaderValue- Returns:
-
isMatchedBy
public boolean isMatchedBy(ParsedHeaderValue matchTry)
- 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()
- Specified by:
weightedOrderin interfaceParsedHeaderValue- Returns:
-
component
public String component()
- Returns:
- The component of the MIME this represents
-
subComponent
public String subComponent()
- Returns:
- The subcomponent of the MIME this represents
-
newInstance
public static MIMEHeader newInstance(io.vertx.ext.web.MIMEHeader arg)
-
-