CoapMediaType enum
This enum describes the CoAP Media Type Registry as defined in RFC 7252, Section 12.3.
Values
- textPlain → const CoapMediaType
-
text/plain; charset=utf-8
const CoapMediaType(0, 'text', 'plain', charset: 'utf-8')
- applicationCoseCoseTypeCoseEncrypt0 → const CoapMediaType
-
application/cose; cose-type="cose-encrypt0"
const CoapMediaType(16, 'application', 'cose', parameters: {'cose-type' : 'cose-encrypt0'})
- applicationCoseCoseTypeCoseMac0 → const CoapMediaType
-
application/cose; cose-type="cose-mac0"
const CoapMediaType(17, 'application', 'cose', parameters: {'cose-type' : 'cose-mac0'})
- applicationCoseCoseTypeCoseSign1 → const CoapMediaType
-
application/cose; cose-type="cose-sign1"
const CoapMediaType(18, 'application', 'cose', parameters: {'cose-type' : 'cose-sign1'})
- applicationAceCbor → const CoapMediaType
-
image/gif
const CoapMediaType(19, 'application', 'ace+cbor')
- imageGif → const CoapMediaType
-
image/gif
const CoapMediaType(21, 'image', 'gif')
- imageJpeg → const CoapMediaType
-
image/jpeg
const CoapMediaType(22, 'image', 'jpeg')
- imagePng → const CoapMediaType
-
image/png
const CoapMediaType(23, 'image', 'png')
- applicationLinkFormat → const CoapMediaType
-
application/link-format
const CoapMediaType(40, 'application', 'link-format')
- applicationXml → const CoapMediaType
-
application/xml
const CoapMediaType(41, 'application', 'xml')
- applicationOctetStream → const CoapMediaType
-
application/octet-stream
const CoapMediaType(42, 'application', 'octet-stream')
- applicationExi → const CoapMediaType
-
application/exi
const CoapMediaType(47, 'application', 'exi')
- applicationJson → const CoapMediaType
-
application/json
const CoapMediaType(50, 'application', 'json')
- applicationJsonPatchJson → const CoapMediaType
-
application/json-patch+json
const CoapMediaType(51, 'application', 'json-patch+json')
- applicationMergePatchJson → const CoapMediaType
-
application/merge-patch+json
const CoapMediaType(52, 'application', 'merge-patch+json')
- applicationCbor → const CoapMediaType
-
application/cbor
const CoapMediaType(60, 'application', 'cbor')
- applicationCwt → const CoapMediaType
-
application/cwt
const CoapMediaType(61, 'application', 'cwt')
- applicationMultipartCore → const CoapMediaType
-
application/multipart-core
const CoapMediaType(62, 'application', 'multipart-core')
- applicationCborSeq → const CoapMediaType
-
application/cbor-seq
const CoapMediaType(63, 'application', 'cbor-seq')
- applicationCoseCoseTypeCoseEncrypt → const CoapMediaType
-
application/cose; cose-type="cose-encrypt"
const CoapMediaType(96, 'application', 'cose', parameters: {'cose-type' : 'cose-encrypt'})
- applicationCoseCoseTypeCoseMac → const CoapMediaType
-
application/cose; cose-type="cose-mac"
const CoapMediaType(97, 'application', 'cose', parameters: {'cose-type' : 'cose-mac'})
- applicationCoseCoseTypeCoseSign → const CoapMediaType
-
application/cose; cose-type="cose-sign"
const CoapMediaType(98, 'application', 'cose', parameters: {'cose-type' : 'cose-sign'})
- applicationCoseKey → const CoapMediaType
-
application/cose-key
const CoapMediaType(101, 'application', 'cose-key')
- applicationCoseKeySet → const CoapMediaType
-
application/cose-key-set
const CoapMediaType(102, 'application', 'cose-key-set')
- applicationSenmlJson → const CoapMediaType
-
application/senml+json
const CoapMediaType(110, 'application', 'senml+json')
- applicationSensmlJson → const CoapMediaType
-
application/sensml+json
const CoapMediaType(111, 'application', 'sensml+json')
- applicationSenmlCbor → const CoapMediaType
-
application/senml+cbor
const CoapMediaType(112, 'application', 'senml+cbor')
- applicationSensmlCbor → const CoapMediaType
-
application/sensml+cbor
const CoapMediaType(113, 'application', 'sensml+cbor')
- applicationSenmlExi → const CoapMediaType
-
application/senml-exi
const CoapMediaType(114, 'application', 'senml-exi')
- applicationSensmlExi → const CoapMediaType
-
application/sensml-exi
const CoapMediaType(115, 'application', 'sensml-exi')
- applicationYangDataCborSid → const CoapMediaType
-
application/yang-data+cbor; id=sid
const CoapMediaType(140, 'application', 'sensml-exi', parameters: {'id' : 'sid'})
- applicationCoapGroupJson → const CoapMediaType
-
application/coap-group+json
const CoapMediaType(256, 'application', 'coap-group+json')
- applicationConciseProblemDetailsCbor → const CoapMediaType
-
Content-Format for Media-Type
application/concise-problem-details+cbor
.Defined in RFC-ietf-core-problem-details-08.
const CoapMediaType(257, 'application', 'concise-problem-details+cbor')
- applicationSwidCbor → const CoapMediaType
-
Content-Format for Media-Type
application/swid+cbor
.Defined in RFC-ietf-sacm-coswid-22.
const CoapMediaType(258, 'application', 'swid+cbor')
- applicationDotsCbor → const CoapMediaType
-
application/dots+cbor
const CoapMediaType(271, 'application', 'dots+cbor')
- applicationMissingBlocksCborSeq → const CoapMediaType
-
application/missing-blocks+cbor-seq
const CoapMediaType(272, 'application', 'missing-blocks+cbor-seq')
- applicationPkcs7MimeServerGeneratedKey → const CoapMediaType
-
application/pkcs7-mime; smime-type=server-generated-key
const CoapMediaType(280, 'application', 'pkcs7-mime', parameters: {'mime-type' : 'server-generated-key'})
- applicationPkcs7MimeCertsOnly → const CoapMediaType
-
application/pkcs7-mime; smime-type=certs-only
const CoapMediaType(281, 'application', 'pkcs7-mime', parameters: {'mime-type' : 'certs-only'})
- applicationPkcs8 → const CoapMediaType
-
application/pkcs8
const CoapMediaType(284, 'application', 'pkcs8')
- applicationCsrattrs → const CoapMediaType
-
application/csrattrs
const CoapMediaType(285, 'application', 'csrattrs')
- applicationPkcs10 → const CoapMediaType
-
application/pkcs10
const CoapMediaType(286, 'application', 'pkcs10')
- applicationPkixCert → const CoapMediaType
-
application/pkix-cert
const CoapMediaType(287, 'application', 'pkix-cert')
- applicationAifCbor → const CoapMediaType
-
application/aif+cbor
const CoapMediaType(290, 'application', 'aif+cbor')
- applicationAifJson → const CoapMediaType
-
application/aif+json
const CoapMediaType(291, 'application', 'aif+json')
- applicationSenmlXml → const CoapMediaType
-
application/senml+xml
const CoapMediaType(310, 'application', 'senml+xml')
- applicationSensmlXml → const CoapMediaType
-
application/sensml+xml
const CoapMediaType(311, 'application', 'sensml+xml')
- applicationSenmlEtchJson → const CoapMediaType
-
application/senml-etch+json
const CoapMediaType(320, 'application', 'senml-etch+json')
- applicationSenmlEtchCbor → const CoapMediaType
-
application/senml-etch+cbor
const CoapMediaType(322, 'application', 'senml-etch+cbor')
- applicationYangCbor → const CoapMediaType
-
application/yang-data+cbor
const CoapMediaType(340, 'application', 'yang-data+cbor')
- applicationSenmlEtchCborIdName → const CoapMediaType
-
application/yang-data+cbor
const CoapMediaType(341, 'application', 'senml-etch+cbor', parameters: {'id' : 'name'})
- applicationTdJson → const CoapMediaType
-
Content-Format for Media-Type
application/td+json
.Defined in Web of Things (WoT) Thing Description 1.1.
const CoapMediaType(432, 'application', 'td+json')
- applicationTmJson → const CoapMediaType
-
Content-Format for Media-Type
application/tm+json
.Defined in Web of Things (WoT) Thing Description 1.1.
const CoapMediaType(433, 'application', 'tm+json')
- applicationVoucerCoseCbor → const CoapMediaType
-
application/voucher-cose+cbor
const CoapMediaType(836, 'application', 'voucher-cose+cbor')
- applicationVndOcfCbor → const CoapMediaType
-
application/vnd.ocf+cbor
const CoapMediaType(10000, 'application', 'vnd.ocf+cbor')
- applicationOscore → const CoapMediaType
-
application/oscore
const CoapMediaType(10001, 'application', 'oscore')
- applicationJavascript → const CoapMediaType
-
application/javascript
const CoapMediaType(10002, 'application', 'javascript')
- applictionJsonDeflate → const CoapMediaType
-
application/json@deflate
const CoapMediaType(11050, 'application', 'json', encoding: 'deflate')
- applictionCborDeflate → const CoapMediaType
-
application/cbor@deflate
const CoapMediaType(11060, 'application', 'cbor', encoding: 'deflate')
- textCss → const CoapMediaType
-
application/textCss
const CoapMediaType(20000, 'text', 'css')
- imageSvgXml → const CoapMediaType
-
application/svg+xml
const CoapMediaType(30000, 'image', 'svg+xml')
Properties
- charset → String?
-
final
- contentType → ContentType
-
no setter
- encoding → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- isImage → bool
-
Checks whether the given media type is a type of image.
True iff the media type is a type of image.
no setter
- isPrintable → bool
-
Indicates if this CoapMediaType is printable.
no setter
- mimeType → String
-
no setter
- numericValue → int
-
final
-
parameters
→ Map<
String, String?> -
final
- primaryType → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subType → String
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromIntValue(
int value) → CoapMediaType? -
parse(
String value, [String? encoding]) → CoapMediaType? -
Parses a string-based contentType
value
andencoding
and returns a CoapMediaType, if a match has been found.
Constants
-
values
→ const List<
CoapMediaType> - A constant List of the values in this enum, in order of their declaration.