Class WAR

java.lang.Object
com.sun.xml.ws.test.container.WAR

public final class WAR extends Object
Represents an exploded WAR file on a file system. This class primarily contains operations that generate various files that constitute a war file.
  • Field Details

    • root

      public final File root
      The root directory of the war image.
    • classDir

      public final File classDir
      "build/classes" directory under the work directory. It is used often enough that it is created here to avoid typo errors.
    • webInfDir

      public final File webInfDir
      "WEB-INF" directory under the work directory. It is used often enough that it is created here to avoid typo errors.
    • libDir

      public final File libDir
      "WEB-INF/lib" directory.
    • srcDir

      public final File srcDir
      Directory to put additional generated source files.
    • service

      public final DeployedService service
      This war file is created for this service.
  • Constructor Details

  • Method Details

    • getEndpointsInfos

      public List<EndpointInfoBean> getEndpointsInfos() throws Exception
      This method collects info about endpoints; it's being used for generating server side descriptors.
      Returns:
      Throws:
      Exception
    • zipTo

      public void zipTo(File archive) throws Exception
      Creates a war archive from the exploded image at root.
      Throws:
      Exception
    • copyClasspath

      public void copyClasspath(Realm classpath) throws Exception
      Copies the classpath specified by the given Path into WEB-INF/lib and WEB-INF/classes
      Throws:
      Exception
    • copyToClasses

      public void copyToClasses(File... handlerConfigs)
      Copies handler files in to WEB-INF/classes
    • copyToWEBINF

      public void copyToWEBINF(File file)
      Copies web.xml to WEB-INF/
    • copyResources

      public void copyResources(File resourcesDir)
      Copies resources under the directory in to WEB-INF/classes
    • copyWsit

      public void copyWsit(File wsitConf)
    • getWSDL

      @NotNull public List<File> getWSDL()
      Gets the path of the WSDL.

      This is either copied from the test data (for "fromwsdl" tests), or generated (for "fromjava" tests.) For fromjava tests with multiple WebService classes, you may get more than one WSDLs.

      In a situation where there's no WSDL and just provider service, the list may be empty.