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