Enum Class TransportFormat
- All Implemented Interfaces:
Serializable,Comparable<TransportFormat>,java.lang.constant.Constable
Liste des formats de transport entre un serveur de collecte et une application monitorée
(hors protocole à priori http).
- Author:
- Emeric Vernat
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionGSON (écriture et lecture en JSON avec Google Gson).JSON (écriture en JSON avec XStream).Sérialisation java.XML (avec XStream / XPP). -
Method Summary
Modifier and TypeMethodDescriptionvoidgetCode()static booleanisATransportFormat(String format) static TransportFormatReturns the enum constant of this class with the specified name.static TransportFormatvalueOfIgnoreCase(String transportFormat) static TransportFormat[]values()Returns an array containing the constants of this enum class, in the order they are declared.voidwriteSerializableTo(Serializable serializable, OutputStream output)
-
Enum Constant Details
-
SERIALIZED
Sérialisation java. -
XML
XML (avec XStream / XPP). -
JSON
-
GSON
GSON (écriture et lecture en JSON avec Google Gson). Note : il serait possible aussi de le faire avec Jackson
-
-
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
-
valueOfIgnoreCase
-
isATransportFormat
-
getCode
-
getMimeType
-
checkDependencies
- Throws:
IOException
-
writeSerializableTo
- Throws:
IOException
-