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 Details

    • name

      @NotNull public final String name
      Name of the service. The name must be:
      1. Unique within TestDescriptor
      2. 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.)

    • baseDir

      @NotNull public final File baseDir
      Directory in which the service's source files reside.
    • wsdl

      @Nullable public final List<WSDL> wsdl
      Optional WSDL file that describes this service.
    • customizations

      @NotNull public final List<File> customizations
      Possibly empty list of JAXB/JAX-WS external binding customizations. Must be empty when wsdl is 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 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

      public String getAbsolutePath(String relativePath)
    • getEndpointByImpl

      public TestEndpoint getEndpointByImpl(String implClassFullName)
      Gets the TestEndpoint that 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.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getHandlerConfiguration

      public File[] getHandlerConfiguration()
    • getConfiguredFile

      public File getConfiguredFile(String filename)