Class WebAppManifest.ImageResource

    • Method Detail

      • of

        public static WebAppManifest.ImageResource of​(String resourceIdentifier,
                                                      WebAppManifest.Size... sizes)
        Creates image resource of given resource identifier and sizes.
        Parameters:
        resourceIdentifier - The Faces resource identifier. E.g. library:path/name.png
        sizes - The supported sizes of this image resource.
        Returns:
        Image resource of given resource identifier and sizes.
        Throws:
        NullPointerException - When resource identifier is null.
        IllegalArgumentException - When resource cannot be found.
      • getSrc

        public String getSrc()
        Returns the source of this image resource.
        Returns:
        The source of this image resource.
      • getSizes

        public String getSizes()
        Returns the supported sizes of this image resource.
        Returns:
        The supported sizes of this image resource.
      • getType

        public String getType()
        Returns the content type of this image resource.
        Returns:
        The content type of this image resource.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object