Edit in GitHubLog an issue

Java

Copied to your clipboard
public enum ContentType {
APPLICATION_JSON(0),
TEXT_HTML(1),
TEXT_XML(2),
TEXT_PLAIN(3),
UNKNOWN(4);
@Override
public String toString();
}

Swift

Copied to your clipboard
@objc(AEPContentType)
public enum ContentType: Int, Codable {
case applicationJson = 0
case textHtml = 1
case textXml = 2
case textPlain = 3
case unknown = 4
public func toString() -> String
}
CaseString value
APPLICATION_JSON
application/json
TEXT_HTML
text/html
TEXT_XML
text/xml
TEXT_PLAIN
text/plain
UNKNOWN
(empty string)
CaseString value
.applicationJson
application/json
.testHtml
text/html
.textXml
text/xml
.textPlain
text/plain
.unknown
(empty string)
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2025 Adobe. All rights reserved.