Class AssociationDesc
java.lang.Object
net.adoptopenjdk.icedteaweb.jnlp.element.information.AssociationDesc
The optional association element is a hint to the JNLP client that it wishes to be registered with the
operating system as the primary handler of certain extensions and a certain mime-type. The association
element must have the extensions and mime-type attributes, and may contain the two optional sub elements
description, and icon.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprivate StringA short description of the association.static final Stringprivate final String[]the extensions this application wants to register withstatic final Stringprivate IconDescThe icon can be registered with the operating system as the default icon for items of this mime-type.static final Stringstatic final Stringprivate final Stringthe mime type for the association -
Constructor Summary
ConstructorsConstructorDescriptionAssociationDesc(String mimeType, String[] extensions) AssociationDesc(String mimeType, String[] extensions, String description, IconDesc icon) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcheckMimeType(String mimeType) Check for valid mimeTypeString[]getIcon()
-
Field Details
-
ASSOCIATION_ELEMENT
- See Also:
-
EXTENSIONS_ATTRIBUTE
- See Also:
-
MIME_TYPE_ATTRIBUTE
- See Also:
-
DESCRIPTION_ELEMENT
- See Also:
-
ICON_ELEMENT
- See Also:
-
extensions
the extensions this application wants to register with -
mimeType
the mime type for the association -
description
A short description of the association. -
icon
The icon can be registered with the operating system as the default icon for items of this mime-type.
-
-
Constructor Details
-
AssociationDesc
- Throws:
ParseException
-
AssociationDesc
public AssociationDesc(String mimeType, String[] extensions, String description, IconDesc icon) throws ParseException - Throws:
ParseException
-
-
Method Details
-
getExtensions
- Returns:
- the extensions for this association
-
getMimeType
- Returns:
- the MIME type for this association
-
getDescription
- Returns:
- the short description of the association
-
getIcon
- Returns:
- the icon descriptor for this association
-
checkMimeType
Check for valid mimeType- Parameters:
mimeType- a mime type- Throws:
ParseException- if mimeType is an invalid MIME type
-