Class AbstractResourceSet

    • Field Detail

      • sm

        protected static final StringManager sm
        The string manager for this class.
    • Constructor Detail

      • AbstractResourceSet

        protected AbstractResourceSet()
        Constructs a new AbstractResourceSet.
    • Method Detail

      • checkPath

        protected final void checkPath​(java.lang.String path)
        Checks that the given path is valid.
        Parameters:
        path - The path to check
        Throws:
        java.lang.IllegalArgumentException - if the path is invalid
      • getRoot

        protected final WebResourceRoot getRoot()
        Gets the root.
        Returns:
        The root
      • getInternalPath

        protected final java.lang.String getInternalPath()
        Gets the internal path.
        Returns:
        The internal path
      • setInternalPath

        public final void setInternalPath​(java.lang.String internalPath)
        Sets the internal path.
        Parameters:
        internalPath - The internal path
      • setWebAppMount

        public final void setWebAppMount​(java.lang.String webAppMount)
        Sets the web app mount.
        Parameters:
        webAppMount - The web app mount
      • getWebAppMount

        protected final java.lang.String getWebAppMount()
        Gets the web app mount.
        Returns:
        The web app mount
      • isPathMounted

        protected boolean isPathMounted​(java.lang.String path,
                                        java.lang.String webAppMount)
        Checks if the given path is mounted at the given web app mount.
        Parameters:
        path - The path to check
        webAppMount - The web app mount
        Returns:
        true if the path is mounted
      • setBase

        public final void setBase​(java.lang.String base)
        Sets the base.
        Parameters:
        base - The base
      • getBase

        protected final java.lang.String getBase()
        Gets the base.
        Returns:
        The base
      • getClassLoaderOnly

        public boolean getClassLoaderOnly()
        Checks if this resource set is class loader only.
        Specified by:
        getClassLoaderOnly in interface WebResourceSet
        Returns:
        true if this resource set is class loader only
      • setClassLoaderOnly

        public void setClassLoaderOnly​(boolean classLoaderOnly)
        Sets whether this resource set is class loader only.
        Specified by:
        setClassLoaderOnly in interface WebResourceSet
        Parameters:
        classLoaderOnly - true if this resource set is class loader only
      • getStaticOnly

        public boolean getStaticOnly()
        Checks if this resource set is static only.
        Specified by:
        getStaticOnly in interface WebResourceSet
        Returns:
        true if this resource set is static only
      • setStaticOnly

        public void setStaticOnly​(boolean staticOnly)
        Sets whether this resource set is static only.
        Specified by:
        setStaticOnly in interface WebResourceSet
        Parameters:
        staticOnly - true if this resource set is static only
      • setManifest

        protected final void setManifest​(java.util.jar.Manifest manifest)
        Sets the manifest.
        Parameters:
        manifest - The manifest
      • getManifest

        protected final java.util.jar.Manifest getManifest()
        Gets the manifest.
        Returns:
        The manifest