Package de.gematik.bbriccs.rest.fd
Enum Class MediaType
- All Implemented Interfaces:
Serializable,Comparable<MediaType>,Constable
Diese Enumeration beschreibt die beiden gängigsten Media-Types (MIME) die von einem FHIR-Server
bzw. FD erwartet werden.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionasString()Gibt die String-Repräsentation (MIME-Type) des enum wieder wie sie im Header eines Request/Response verwendet werden kann.asString(boolean removeParameters) * Liefert den Accept-Type entweder alleine oder mit angefügten Parametern. * gemäß https://tools.ietf.org/html/rfc1945#section-3.6asString(boolean removeParameters, boolean removeApplication) static MediaTypefromString(String stringValue) Erstelle eine enum anhand des Strings der im Response-Header enthalten istbooleanisEquivalentTo(MediaType other) de.gematik.bbriccs.fhir.EncodingTypetoString()static MediaTypeReturns the enum constant of this class with the specified name.static MediaType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ACCEPT_FHIR_XML
-
FHIR_XML
-
ACCEPT_FHIR_JSON
-
FHIR_JSON
-
APPLICATION_JSON
-
APPLICATION_XML
-
EMPTY
-
UNKNOWN
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
asString
Gibt die String-Repräsentation (MIME-Type) des enum wieder wie sie im Header eines Request/Response verwendet werden kann.- Returns:
-
asString
* Liefert den Accept-Type entweder alleine oder mit angefügten Parametern. * gemäß https://tools.ietf.org/html/rfc1945#section-3.6- Parameters:
removeParameters- entfernt mögliche Parameter hinter dem Accept-Type- Returns:
- der Accept-Type als String
-
asString
-
toFhirEncoding
public de.gematik.bbriccs.fhir.EncodingType toFhirEncoding() -
fromString
Erstelle eine enum anhand des Strings der im Response-Header enthalten ist- Parameters:
stringValue- ist der 'content-type' Wert aus dem Response-Header- Returns:
- ist der entsprechende ContentType als enum
-
isEquivalentTo
-
toString
-