Package io.vertx.mutiny.ext.web
Class MIMEHeader
java.lang.Object
io.vertx.mutiny.ext.web.MIMEHeader
- All Implemented Interfaces:
MutinyDelegate,ParsedHeaderValue
NOTE: This class has been automatically generated from the
original non Mutiny-ified interface.- See Also:
-
MIMEHeader
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vertx.mutiny.ext.web.ParsedHeaderValue
ParsedHeaderValue.ParsedHeaderValueImpl -
Field Summary
FieldsFields inherited from interface io.vertx.mutiny.ext.web.ParsedHeaderValue
DEFAULT_WEIGHT -
Constructor Summary
ConstructorsConstructorDescriptionMIMEHeader(io.vertx.ext.web.MIMEHeader delegate) Create a new instance ofMIMEHeaderdelegating to the given (non-null) instance ofMIMEHeader.MIMEHeader(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionGets the parsed component part of the MIME.booleanio.vertx.ext.web.MIMEHeaderGet the delegate instance.inthashCode()booleanisMatchedBy(ParsedHeaderValue arg0) Test if this header is matched by matchTry headerbooleanIs this an allowed operation as specified by the corresponding header?Gets the MIME media type string.Gets the MIME media type string with parameters attached.static MIMEHeadernewInstance(io.vertx.ext.web.MIMEHeader delegate) Creates a new instance of theMIMEHeader.The value of the parameter specified by this key.The parameters specified in this header value.rawValue()Contains the raw value that was received from the user agentGets the parsed subcomponent part of the MIME.toString()value()Holds the unparsed value of the header.
For the most part, this is the content before the semi-colon (";")floatweight()Holds the weight specified in the "q" parameter of the header.
If the parameter is not specified, 1.0 is assumed according to rfc7231intAn integer that represents the absolute order position of this header
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
MIMEHeader
public MIMEHeader(io.vertx.ext.web.MIMEHeader delegate) Create a new instance ofMIMEHeaderdelegating to the given (non-null) instance ofMIMEHeader. -
MIMEHeader
-
-
Method Details
-
getDelegate
public io.vertx.ext.web.MIMEHeader getDelegate()Get the delegate instance.This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.
- Specified by:
getDelegatein interfaceMutinyDelegate- Specified by:
getDelegatein interfaceParsedHeaderValue- Returns:
- the delegate instance
-
component
Gets the parsed component part of the MIME. This is the string between the beginning and the first'/'of the MIME- Returns:
- The component of the MIME this represents
-
subComponent
Gets the parsed subcomponent part of the MIME. This is the string between the first'/'and the';'or the end of the MIME- Returns:
- The subcomponent of the MIME this represents
-
mediaType
Gets the MIME media type string. This includes both the component and subcomponent parts of the MIME type.- Returns:
- The MIME media type string.
-
mediaTypeWithParams
Gets the MIME media type string with parameters attached. This includes both the component and subcomponent parts of the MIME type, and parameters.- Returns:
- The MIME media type string.
-
weightedOrder
public int weightedOrder()An integer that represents the absolute order position of this header- Specified by:
weightedOrderin interfaceParsedHeaderValue
-
isMatchedBy
Test if this header is matched by matchTry header- Specified by:
isMatchedByin interfaceParsedHeaderValue- Parameters:
matchTry- The header to be matched from- Returns:
- true if this header represents a subset of matchTry, otherwise, false
-
isPermitted
public boolean isPermitted()Is this an allowed operation as specified by the corresponding header?- Specified by:
isPermittedin interfaceParsedHeaderValue- Returns:
-
rawValue
Contains the raw value that was received from the user agent- Specified by:
rawValuein interfaceParsedHeaderValue
-
parameters
The parameters specified in this header value. Note: Theqparameter is never present.- Specified by:
parametersin interfaceParsedHeaderValue- Returns:
- Unmodifiable Map of parameters of this header value
-
parameter
The value of the parameter specified by this key. Each is one of 3 things:- null <- That key was not specified
- ParsedHeaderValue.EMPTY (tested using ==) <- The value was not specified
- [Other] <- The value of the parameter
qparameter is never present.- Specified by:
parameterin interfaceParsedHeaderValue- Returns:
- . Can be
null.
-
value
Holds the unparsed value of the header.
For the most part, this is the content before the semi-colon (";")- Specified by:
valuein interfaceParsedHeaderValue
-
weight
public 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- Specified by:
weightin interfaceParsedHeaderValue- Returns:
-
newInstance
Creates a new instance of theMIMEHeader. -
hashCode
public int hashCode() -
equals
-
toString
-