Package com.sun.xml.ws.test.container
Class WAR
java.lang.Object
com.sun.xml.ws.test.container.WAR
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
FieldsModifier and TypeFieldDescriptionfinal File"build/classes" directory under the work directory.final File"WEB-INF/lib" directory.final FileThe root directory of the war image.final DeployedServiceThis war file is created for this service.final FileDirectory to put additional generated source files.final File"WEB-INF" directory under the work directory. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyClasspath(Realm classpath) Copies the classpath specified by the givenPathintoWEB-INF/libandWEB-INF/classesvoidcopyResources(File resourcesDir) Copies resources under the directory in toWEB-INF/classesvoidcopyToClasses(File... handlerConfigs) Copies handler files in to WEB-INF/classesvoidcopyToWEBINF(File file) Copies web.xml to WEB-INF/voidThis method collects info about endpoints; it's being used for generating server side descriptors.getWSDL()Gets the path of the WSDL.voidCreates a war archive from the exploded image atroot.
-
Field Details
-
root
The root directory of the war image. -
classDir
"build/classes" directory under the work directory. It is used often enough that it is created here to avoid typo errors. -
webInfDir
"WEB-INF" directory under the work directory. It is used often enough that it is created here to avoid typo errors. -
libDir
"WEB-INF/lib" directory. -
srcDir
Directory to put additional generated source files. -
service
This war file is created for this service.
-
-
Constructor Details
-
WAR
-
-
Method Details
-
getEndpointsInfos
This method collects info about endpoints; it's being used for generating server side descriptors.- Returns:
- Throws:
Exception
-
zipTo
Creates a war archive from the exploded image atroot.- Throws:
Exception
-
copyClasspath
Copies the classpath specified by the givenPathintoWEB-INF/libandWEB-INF/classes- Throws:
Exception
-
copyToClasses
Copies handler files in to WEB-INF/classes -
copyToWEBINF
Copies web.xml to WEB-INF/ -
copyResources
Copies resources under the directory in toWEB-INF/classes -
copyWsit
-
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
WebServiceclasses, you may get more than one WSDLs.In a situation where there's no WSDL and just provider service, the list may be empty.
-