public enum WebPubSubContentType extends Enum<WebPubSubContentType>
Enum Constant and Description |
---|
APPLICATION_JSON
Enum value application/json.
|
APPLICATION_OCTET_STREAM
Enum value application/octet-stream.
|
TEXT_PLAIN
Enum value text/plain.
|
Modifier and Type | Method and Description |
---|---|
static WebPubSubContentType |
fromString(String value)
Parses a serialized value to a ContentType instance.
|
String |
toString() |
static WebPubSubContentType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WebPubSubContentType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WebPubSubContentType APPLICATION_JSON
public static final WebPubSubContentType APPLICATION_OCTET_STREAM
public static final WebPubSubContentType TEXT_PLAIN
public static WebPubSubContentType[] values()
public static WebPubSubContentType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static WebPubSubContentType fromString(String value)
value
- the serialized value to parse.public String toString()
toString
in class Enum<WebPubSubContentType>
Copyright © 2021 Microsoft Corporation. All rights reserved.