Class RemoteCargoApplicationContainer
java.lang.Object
com.sun.xml.ws.test.container.AbstractApplicationContainer
com.sun.xml.ws.test.container.cargo.RemoteCargoApplicationContainer
- All Implemented Interfaces:
ApplicationContainer
ApplicationContainer that talks to a server that's already running
(IOW launched outside this harness.)
This implementation requires that the container be launched externally first. Then the harness will simply deploy/undeloy by using this running container. Useful for repeatedly debugging a test with a remote container.
- Author:
- Kohsuke Kawaguchi
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.codehaus.cargo.container.RemoteContainerExpected to be set by the constructor of the derived class.protected final org.codehaus.cargo.generic.deployable.DefaultDeployableFactoryprotected final org.codehaus.cargo.generic.deployer.DefaultDeployerFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeploy(DeployedService service) Starts a service inside a container, making it ready to process requests.protected URLgetServiceUrl(String contextPath) Returns the transport that this container uses for testing.protected booleanTrue if the Cargo implementation only takes a .war file and not the exploded war image.voidshutdown()Stops the container.voidstart()Starts the container.toString()Methods inherited from class com.sun.xml.ws.test.container.AbstractApplicationContainer
assembleWar, copyRuntimeLibraries, createWARZip, getUnsupportedUses, updateWsgenOpts, updateWsitClient
-
Field Details
-
container
protected org.codehaus.cargo.container.RemoteContainer containerExpected to be set by the constructor of the derived class. Conceptually final --- no update after that. -
deployerFactory
protected final org.codehaus.cargo.generic.deployer.DefaultDeployerFactory deployerFactory -
deployableFactory
protected final org.codehaus.cargo.generic.deployable.DefaultDeployableFactory deployableFactory
-
-
Constructor Details
-
RemoteCargoApplicationContainer
public RemoteCargoApplicationContainer(WsTool wsimport, WsTool wsgen, String containerId, URL server, String userName, String password, boolean httpspi) throws Exception - Parameters:
containerId- The ID that represents the container. "tomcat5x" for Tomcat.server-userName- The user name of the admin. Necessary to deploy a war remotelypassword- The password of the admin. Necessary to deploy a war remotely- Throws:
Exception
-
-
Method Details
-
getServiceUrl
- Throws:
Exception
-
start
Description copied from interface:ApplicationContainerStarts the container. This is invoked at the very beginning before any service is deployed.- Throws:
Exception
-
shutdown
Description copied from interface:ApplicationContainerStops the container. This is invoked at the end to clean up any resources.- Throws:
Exception
-
toString
-
getTransport
Description copied from interface:ApplicationContainerReturns the transport that this container uses for testing.- Returns:
- For example, "http", "local", "tcp", "jms", etc. It should match the scheme portion of the endpoint address URI. Never null. This value is compared in the descriptor's transport declaration to decide wheter to run a test or not.
-
deploy
Description copied from interface:ApplicationContainerStarts a service inside a container, making it ready to process requests.- Throws:
Exception
-
needsArchive
protected boolean needsArchive()True if the Cargo implementation only takes a .war file and not the exploded war image. Not creating a war file makes the testing faster.
-