Package com.sun.xml.ws.test.container
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 ofApplicationContainer. This implementation provides code for common tasks, such as assembling files into a war, etc.- Author:
- Kohsuke Kawaguchi, Ken Hofsass
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractApplicationContainer(WsTool wsimport, WsTool wsgen, boolean httpspi)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected WARassembleWar(DeployedService service)Prepares an exploded war file image for this service.protected booleancopyRuntimeLibraries()Copy JAX-WS runtime code?protected WARcreateWARZip(DeployedService service, File archive)Prepares a fully packaged war file to the specified location.Set<String>getUnsupportedUses()Returns the unsupported uses for this container.protected voidupdateWsgenOpts(TestService service)protected voidupdateWsitClient(WAR war, DeployedService deployedService, String id)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.sun.xml.ws.test.container.ApplicationContainer
deploy, getTransport, shutdown, start
-
-
-
-
Method Detail
-
getUnsupportedUses
@NotNull public Set<String> getUnsupportedUses()
Description copied from interface:ApplicationContainerReturns the unsupported uses for this container. For e.g lwhs container may return "servlet" as an unsupported "use"- Specified by:
getUnsupportedUsesin interfaceApplicationContainer- 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?
-
-