public class MIMEHeader extends Object implements ParsedHeaderValue
| Modifier and Type | Field and Description |
|---|---|
static TypeArg<MIMEHeader> |
__TYPE_ARG |
| Constructor and Description |
|---|
MIMEHeader(MIMEHeader delegate) |
| Modifier and Type | Method and Description |
|---|---|
String |
component()
Gets the parsed component part of the MIME.
|
MIMEHeader |
getDelegate() |
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 |
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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnewInstancepublic static final TypeArg<MIMEHeader> __TYPE_ARG
public MIMEHeader(MIMEHeader delegate)
public MIMEHeader getDelegate()
getDelegate in interface ParsedHeaderValuepublic String rawValue()
rawValue in interface ParsedHeaderValuepublic String value()
value in interface ParsedHeaderValuepublic float weight()
weight in interface ParsedHeaderValuepublic String parameter(String key)
q parameter is never present.parameter in interface ParsedHeaderValuekey - public Map<String,String> parameters()
q parameter is never present.parameters in interface ParsedHeaderValuepublic boolean isPermitted()
isPermitted in interface ParsedHeaderValuepublic boolean isMatchedBy(ParsedHeaderValue matchTry)
isMatchedBy in interface ParsedHeaderValuematchTry - The header to be matched frompublic int weightedOrder()
weightedOrder in interface ParsedHeaderValuepublic String component()
public String subComponent()
public static MIMEHeader newInstance(MIMEHeader arg)
Copyright © 2017. All rights reserved.