Package com.sun.xml.ws.test.model
Class TestService
java.lang.Object
com.sun.xml.ws.test.model.TestService
A service to be deployed for a test.
TODO: We need to be able to mark service as an EJB service
- Author:
- Kohsuke Kawaguchi
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal FileDirectory in which the service's source files reside.Possibly empty list of JAXB/JAX-WS external binding customizations.final Set<TestEndpoint> TestEndpoints that this service exposes.booleanDetermines if the service is an STS for WSTrust and needs special handlingfinal StringName of the service.final TestDescriptorOptional WSDL file that describes this service. -
Constructor Summary
ConstructorsConstructorDescriptionTestService(TestDescriptor parent, String name, File baseDir, List<WSDL> wsdl, boolean sts, String explicitServiceClassName) -
Method Summary
Modifier and TypeMethodDescriptiongetAbsolutePath(String relativePath) getConfiguredFile(String filename) getEndpointByImpl(String implClassFullName) Gets theTestEndpointthat has the specified implementation class.Returns the name combined with the test case name to make a globaly unique name for this service.File[]toString()
-
Field Details
-
name
Name of the service. The name must be:- Unique within
TestDescriptor - an empty string or a valid Java identifier.
An empty string is convenient to describe the default/primary service (or when there's just one service involved, which is the majority.)
- Unique within
-
baseDir
Directory in which the service's source files reside. -
wsdl
Optional WSDL file that describes this service. -
customizations
Possibly empty list of JAXB/JAX-WS external binding customizations. Must be empty whenwsdlis null. -
endpoints
TestEndpoints that this service exposes.The harness uses this information to inject proxies to the client.
-
parent
-
isSTS
public boolean isSTSDetermines if the service is an STS for WSTrust and needs special handling
-
-
Constructor Details
-
TestService
public TestService(TestDescriptor parent, String name, File baseDir, List<WSDL> wsdl, boolean sts, @Nullable String explicitServiceClassName) throws IOException - Parameters:
explicitServiceClassName- Descriptor can explicitly specify the service class name. If this happens, we won't search for @WebService classes and just use this instead. Used for deploying inner classes and testing inheritance.- Throws:
IOException
-
-
Method Details
-
getAbsolutePath
-
getEndpointByImpl
Gets theTestEndpointthat has the specified implementation class. -
getGlobalUniqueName
Returns the name combined with the test case name to make a globaly unique name for this service. -
toString
-
getHandlerConfiguration
-
getConfiguredFile
-