Class ResourceType


  • public class ResourceType
    extends Object
    Represents the type of Resource (eg Entity, Temporary, etc).
    Since:
    6.1M2
    Version:
    $Id: 32633880bd415cffa6dfd91a7aa9b1c3d6985b6b $
    • Constructor Detail

      • ResourceType

        public ResourceType​(String id)
        Parameters:
        id - see getId()
      • ResourceType

        public ResourceType​(String id,
                            boolean isStatic)
        Parameters:
        id - see getId()
        isStatic - see isStatic()
        Since:
        11.0
    • Method Detail

      • getId

        public String getId()
        Returns:
        the technical id of the Resource Type
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • isStatic

        public boolean isStatic()
        Returns:
        true if this type represents a static resource containing only static content and which should be served directly by the Servlet Container without going through XWiki processing and handling (e.g: a ResourcesResource or a SkinResource)
        Since:
        11.0