Package com.sun.xml.ws.test.model
Class TestService
- java.lang.Object
-
- com.sun.xml.ws.test.model.TestService
-
public class TestService extends Object
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
Fields Modifier and Type Field Description FilebaseDirDirectory in which the service's source files reside.List<File>customizationsPossibly empty list of JAXB/JAX-WS external binding customizations.Set<TestEndpoint>endpointsTestEndpoints that this service exposes.booleanisSTSDetermines if the service is an STS for WSTrust and needs special handlingStringnameName of the service.TestDescriptorparentList<WSDL>wsdlOptional WSDL file that describes this service.
-
Constructor Summary
Constructors Constructor Description TestService(TestDescriptor parent, String name, File baseDir, List<WSDL> wsdl, boolean sts, String explicitServiceClassName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAbsolutePath(String relativePath)FilegetConfiguredFile(String filename)TestEndpointgetEndpointByImpl(String implClassFullName)Gets theTestEndpointthat has the specified implementation class.StringgetGlobalUniqueName()Returns the name combined with the test case name to make a globaly unique name for this service.File[]getHandlerConfiguration()StringtoString()
-
-
-
Field Detail
-
name
@NotNull public final String 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
@NotNull public final File baseDir
Directory in which the service's source files reside.
-
customizations
@NotNull public final List<File> customizations
Possibly empty list of JAXB/JAX-WS external binding customizations. Must be empty whenwsdlis null.
-
endpoints
@NotNull public final Set<TestEndpoint> endpoints
TestEndpoints that this service exposes.The harness uses this information to inject proxies to the client.
-
parent
public final TestDescriptor parent
-
isSTS
public boolean isSTS
Determines if the service is an STS for WSTrust and needs special handling
-
-
Constructor Detail
-
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 Detail
-
getEndpointByImpl
public TestEndpoint getEndpointByImpl(String implClassFullName)
Gets theTestEndpointthat has the specified implementation class.
-
getGlobalUniqueName
public String getGlobalUniqueName()
Returns the name combined with the test case name to make a globaly unique name for this service.
-
getHandlerConfiguration
public File[] getHandlerConfiguration()
-
-