Class EAR

    • Method Detail

      • setName

        public void setName​(String name)
        Sets the name of this deployable. It can be anything (there's no special rule).
        Parameters:
        name - the name of this deployable
      • getName

        public String getName()
        Returns the name of this deployable. If not specified by user, it is computed from the EAR's file name (removing the filename extension).
        Specified by:
        getName in interface Deployable
        Overrides:
        getName in class AbstractDeployable
        Returns:
        the name of this deployable
      • getWebContexts

        public List<String> getWebContexts()
        Returns:
        the list of Web contexts of all WAR files contained in the wrapped EAR
      • getWebUris

        public List<String> getWebUris()
        Returns:
        the list of Web URIs of all WAR files contained in the wrapped EAR
      • getWebUri

        public String getWebUri​(String context)
        Parameters:
        context - the context for which we want to find out the web URI
        Returns:
        the web URI for the WAR matching the context passed as parameter
      • getType

        public DeployableType getType()
        Returns:
        the deployable's type (war, ear, etc)