public enum ContentType extends Enum<ContentType>
| Enum Constant and Description |
|---|
JSON
JSON content-type corresponding to the application/fhir+json mime-type.
|
NONE
Prevent the use of the corresponding http header.
|
NULL
added to help the parsers
|
TTL
RDF content-type corresponding to the text/turtle mime-type.
|
XML
XML content-type corresponding to the application/fhir+xml mime-type.
|
| Modifier and Type | Method and Description |
|---|---|
static ContentType |
fromCode(String codeString) |
String |
getDefinition() |
String |
getDisplay() |
String |
getSystem() |
String |
toCode() |
static ContentType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ContentType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ContentType XML
public static final ContentType JSON
public static final ContentType TTL
public static final ContentType NONE
public static final ContentType NULL
public static ContentType[] values()
for (ContentType c : ContentType.values()) System.out.println(c);
public static ContentType 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 ContentType fromCode(String codeString) throws org.hl7.fhir.exceptions.FHIRException
org.hl7.fhir.exceptions.FHIRExceptionpublic String getDefinition()
public String getDisplay()
Copyright © 2014–2018 University Health Network. All rights reserved.