Package io.wcm.handler.media
Enum MediaInvalidReason
- java.lang.Object
-
- java.lang.Enum<MediaInvalidReason>
-
- io.wcm.handler.media.MediaInvalidReason
-
- All Implemented Interfaces:
Serializable,Comparable<MediaInvalidReason>
public enum MediaInvalidReason extends Enum<MediaInvalidReason>
Reasons while a media request could not be resolved.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INVALID_MEDIA_FORMATOne or all of the given media format names are invalid.MEDIA_REFERENCE_INVALIDMedia item not found: that means the media request path is invalid or the user has no read access.MEDIA_REFERENCE_MISSINGThe media request was empty.NO_MATCHING_RENDITIONNo matching rendition: The media item exists, but no rendition matches for the requested media args.NO_MEDIA_SOURCEDeprecated.No longer in use, first media source defined is used as fallback if no match is found.NOT_ENOUGH_MATCHING_RENDITIONSNot enough matching renditions: The media item exists and some renditions could be resolved, but not for all mandatory media formats requested.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MediaInvalidReasonvalueOf(String name)Returns the enum constant of this type with the specified name.static MediaInvalidReason[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MEDIA_REFERENCE_MISSING
public static final MediaInvalidReason MEDIA_REFERENCE_MISSING
The media request was empty.
-
MEDIA_REFERENCE_INVALID
public static final MediaInvalidReason MEDIA_REFERENCE_INVALID
Media item not found: that means the media request path is invalid or the user has no read access.
-
NO_MATCHING_RENDITION
public static final MediaInvalidReason NO_MATCHING_RENDITION
No matching rendition: The media item exists, but no rendition matches for the requested media args.
-
NOT_ENOUGH_MATCHING_RENDITIONS
public static final MediaInvalidReason NOT_ENOUGH_MATCHING_RENDITIONS
Not enough matching renditions: The media item exists and some renditions could be resolved, but not for all mandatory media formats requested.
-
NO_MEDIA_SOURCE
@Deprecated public static final MediaInvalidReason NO_MEDIA_SOURCE
Deprecated.No longer in use, first media source defined is used as fallback if no match is found.No media source found for handling the given (or empty) media request
-
INVALID_MEDIA_FORMAT
public static final MediaInvalidReason INVALID_MEDIA_FORMAT
One or all of the given media format names are invalid.
-
-
Method Detail
-
values
public static MediaInvalidReason[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MediaInvalidReason c : MediaInvalidReason.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MediaInvalidReason valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
-