Class WebAppManifest.ImageResource

java.lang.Object
org.omnifaces.resourcehandler.WebAppManifest.ImageResource
Enclosing class:
WebAppManifest

protected static final class WebAppManifest.ImageResource extends Object
  • Method Details

    • 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.
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object