Class ImageURN

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public class ImageURN
    extends FileURN
    Image Uniform Resource Naming (URN) instance class, with optional scaling along with options for square or rounded display, all processed and cached on the server side.
    Author:
    Christopher Mindus
    See Also:
    Serialized Form
    • Method Detail

      • from

        public static ImageURN from​(URNResourceType type,
                                    java.lang.Object id)
        Creates a SVG URN from an SVG string.
        Parameters:
        type - The URN resource type.
        id - The URN resource ID for the type: a Long or a String depending of the type.
        Throws:
        java.lang.NullPointerException - If the url is null.
        IllegalArgumentExecption - If the class of the id parameter does not match the type URNResourceType parameter. Currently, only {code Long} and {code String} values are allowed.
        java.net.MalformedURLException - If the url is malformed.
        MalformedURNException - If the url is malformed for an iizi URN URL.