Class AbstractApplicationContainer

java.lang.Object
com.sun.xml.ws.test.container.AbstractApplicationContainer
All Implemented Interfaces:
ApplicationContainer
Direct Known Subclasses:
EmbeddedCargoApplicationContainer, GlassfishContainer, InstalledCargoApplicationContainer, InVmContainer, JavaSeContainer, LocalApplicationContainer, RemoteCargoApplicationContainer

public abstract class AbstractApplicationContainer extends Object implements ApplicationContainer
Base implementation of ApplicationContainer.

This implementation provides code for common tasks, such as assembling files into a war, etc.

Author:
Kohsuke Kawaguchi, Ken Hofsass
  • Constructor Details

    • AbstractApplicationContainer

      protected AbstractApplicationContainer(WsTool wsimport, WsTool wsgen, boolean httpspi)
  • Method Details

    • getUnsupportedUses

      @NotNull public Set<String> getUnsupportedUses()
      Description copied from interface: ApplicationContainer
      Returns the unsupported uses for this container. For e.g lwhs container may return "servlet" as an unsupported "use"
      Specified by:
      getUnsupportedUses in interface ApplicationContainer
      Returns:
      unsupported uses like "servlet", "nonapi" etc the returned value is compared againt descriptor's "uses" decl to decide wheter to run a test or not.
    • assembleWar

      protected WAR assembleWar(DeployedService service) throws Exception
      Prepares an exploded war file image for this service.
      Throws:
      Exception
    • updateWsgenOpts

      protected void updateWsgenOpts(TestService service)
    • updateWsitClient

      protected void updateWsitClient(WAR war, DeployedService deployedService, String id) throws Exception
      Throws:
      Exception
    • createWARZip

      protected final WAR createWARZip(DeployedService service, File archive) throws Exception
      Prepares a fully packaged war file to the specified location.
      Throws:
      Exception
    • copyRuntimeLibraries

      protected boolean copyRuntimeLibraries()
      Copy JAX-WS runtime code?