Package com.sun.xml.ws.test.container
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 Summary
Fields Modifier and Type Field Description FileclassDir"build/classes" directory under the work directory.FilelibDir"WEB-INF/lib" directory.FilerootThe root directory of the war image.DeployedServiceserviceThis war file is created for this service.FilesrcDirDirectory to put additional generated source files.FilewebInfDir"WEB-INF" directory under the work directory.
-
Constructor Summary
Constructors Constructor Description WAR(DeployedService service)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcopyClasspath(Realm classpath)Copies the classpath specified by the givenPathinto WEB-INF/lib and WEB-INF/classesvoidcopyResources(File resourcesDir)Copies resources under the directory in to WEB-INF/classesvoidcopyToClasses(File... handlerConfigs)Copies handler files in to WEB-INF/classesvoidcopyToWEBINF(File file)Copies web.xml to WEB-INF/voidcopyWsit(File wsitConf)List<EndpointInfoBean>getEndpointsInfos()This method collects info about endpoints; it's being used for generating server side descriptors.List<File>getWSDL()Gets the path of the WSDL.voidzipTo(File archive)Creates a war archive from the exploded image atroot.
-
-
-
Field Detail
-
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 Detail
-
WAR
public WAR(DeployedService service)
-
-
Method Detail
-
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 atroot.- Throws:
Exception
-
copyClasspath
public void copyClasspath(Realm classpath) throws Exception
Copies the classpath specified by the givenPathinto 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.
-
-