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_ARG
static float
DEFAULT_WEIGHT
If 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 String
component()
boolean
equals(Object o)
io.vertx.ext.web.MIMEHeader
getDelegate()
int
hashCode()
boolean
isMatchedBy(ParsedHeaderValue matchTry)
boolean
isPermitted()
static MIMEHeader
newInstance(io.vertx.ext.web.MIMEHeader arg)
String
parameter(String key)
Map<String,String>
parameters()
String
rawValue()
String
subComponent()
String
toString()
String
value()
float
weight()
int
weightedOrder()
-
-
-
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:
getDelegate
in interfaceParsedHeaderValue
-
rawValue
public String rawValue()
- Specified by:
rawValue
in interfaceParsedHeaderValue
- Returns:
-
value
public String value()
- Specified by:
value
in interfaceParsedHeaderValue
- Returns:
-
weight
public float weight()
- Specified by:
weight
in interfaceParsedHeaderValue
- Returns:
-
parameter
public String parameter(String key)
- Specified by:
parameter
in interfaceParsedHeaderValue
- Parameters:
key
-- Returns:
-
parameters
public Map<String,String> 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
public boolean isMatchedBy(ParsedHeaderValue matchTry)
- 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
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)
-
-