Class StubFactory<T>

java.lang.Object
org.gcube.common.calls.jaxws.StubFactory<T>
Type Parameters:
T - the service interface type
All Implemented Interfaces:
StubFactoryDSL.AtClause<T>

public class StubFactory<T> extends Object implements StubFactoryDSL.AtClause<T>
Factory for creating JAX-WS service stubs.
Author:
Fabio Simeoni
  • Method Details

    • stubFor

      public static <T> StubFactory<T> stubFor(GcubeService<T> target)
      Creates a stub factory for the given gCube service.
      Type Parameters:
      T - the service interface type
      Parameters:
      target - the gCube service
      Returns:
      a new stub factory
    • at

      public T at(String address)
      Description copied from interface: StubFactoryDSL.AtClause
      Returns a stub for a service endpoint at a given address.
      Specified by:
      at in interface StubFactoryDSL.AtClause<T>
      Parameters:
      address - the address
      Returns:
      the stub
    • at

      public T at(jakarta.xml.ws.EndpointReference endpoint)
      Creates a service stub at the given endpoint reference.
      Parameters:
      endpoint - the endpoint reference
      Returns:
      the service stub