Package org.wildfly.channel
Class ChannelManifestMapper
- java.lang.Object
-
- org.wildfly.channel.ChannelManifestMapper
-
public class ChannelManifestMapper extends Object
Mapper class to transform YAML content (from URL or String) to Channel objects (and vice versa). YAML input is validated against a schema.
-
-
Field Summary
Fields Modifier and Type Field Description static StringCURRENT_SCHEMA_VERSIONstatic StringSCHEMA_VERSION_1_0_0static StringSCHEMA_VERSION_1_1_0
-
Constructor Summary
Constructors Constructor Description ChannelManifestMapper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ChannelManifestfrom(URL manifestURL)static ChannelManifestfromString(String yamlContent)static StringtoYaml(ChannelManifest channelManifest)
-
-
-
Field Detail
-
SCHEMA_VERSION_1_0_0
public static final String SCHEMA_VERSION_1_0_0
- See Also:
- Constant Field Values
-
SCHEMA_VERSION_1_1_0
public static final String SCHEMA_VERSION_1_1_0
- See Also:
- Constant Field Values
-
CURRENT_SCHEMA_VERSION
public static final String CURRENT_SCHEMA_VERSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
toYaml
public static String toYaml(ChannelManifest channelManifest) throws IOException
- Throws:
IOException
-
from
public static ChannelManifest from(URL manifestURL) throws InvalidChannelMetadataException
- Throws:
InvalidChannelMetadataException
-
fromString
public static ChannelManifest fromString(String yamlContent) throws InvalidChannelMetadataException
- Throws:
InvalidChannelMetadataException
-
-