public class MIMEHeader extends Object implements ParsedHeaderValue
Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<MIMEHeader> |
__TYPE_ARG |
static float |
DEFAULT_WEIGHT
If no "q" parameter is present, the default weight is 1. |
Constructor and Description |
---|
MIMEHeader(MIMEHeader delegate) |
MIMEHeader(Object delegate) |
Modifier and Type | Method and Description |
---|---|
String |
component()
Gets the parsed component part of the MIME.
|
boolean |
equals(Object o) |
MIMEHeader |
getDelegate() |
int |
hashCode() |
boolean |
isMatchedBy(ParsedHeaderValue matchTry)
Test if this header is matched by matchTry header
|
boolean |
isPermitted()
Is this an allowed operation as specified by the corresponding header?
|
static MIMEHeader |
newInstance(MIMEHeader arg) |
String |
parameter(String key)
The value of the parameter specified by this key.
|
Map<String,String> |
parameters()
The parameters specified in this header value.
|
String |
rawValue()
Contains the raw value that was received from the user agent
|
String |
subComponent()
Gets the parsed subcomponent part of the MIME.
|
String |
toString() |
String |
value()
Holds the unparsed value of the header.
For the most part, this is the content before the semi-colon (";") |
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 |
int |
weightedOrder()
An integer that represents the absolute order position of this header
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
newInstance
public static final io.vertx.lang.rx.TypeArg<MIMEHeader> __TYPE_ARG
public static final float DEFAULT_WEIGHT
If no "q" parameter is present, the default weight is 1.
public MIMEHeader(MIMEHeader delegate)
public MIMEHeader(Object delegate)
public MIMEHeader getDelegate()
getDelegate
in interface ParsedHeaderValue
public String rawValue()
rawValue
in interface ParsedHeaderValue
public String value()
value
in interface ParsedHeaderValue
public float weight()
weight
in interface ParsedHeaderValue
public String parameter(String key)
q
parameter is never present.parameter
in interface ParsedHeaderValue
key
- public Map<String,String> parameters()
q
parameter is never present.parameters
in interface ParsedHeaderValue
public boolean isPermitted()
isPermitted
in interface ParsedHeaderValue
public boolean isMatchedBy(ParsedHeaderValue matchTry)
isMatchedBy
in interface ParsedHeaderValue
matchTry
- The header to be matched frompublic int weightedOrder()
weightedOrder
in interface ParsedHeaderValue
public String component()
'/'
of the MIMEpublic String subComponent()
'/'
and the
';'
or the end of the MIMEpublic static MIMEHeader newInstance(MIMEHeader arg)
Copyright © 2022 Eclipse. All rights reserved.