Package org.gcube.common.calls.jaxws
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>
Factory for creating JAX-WS service stubs.
- Author:
- Fabio Simeoni
-
Method Summary
Modifier and TypeMethodDescriptionat(jakarta.xml.ws.EndpointReference endpoint) Creates a service stub at the given endpoint reference.Returns a stub for a service endpoint at a given address.static <T> StubFactory<T>stubFor(GcubeService<T> target) Creates a stub factory for the given gCube service.
-
Method Details
-
stubFor
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
Description copied from interface:StubFactoryDSL.AtClauseReturns a stub for a service endpoint at a given address.- Specified by:
atin interfaceStubFactoryDSL.AtClause<T>- Parameters:
address- the address- Returns:
- the stub
-
at
Creates a service stub at the given endpoint reference.- Parameters:
endpoint- the endpoint reference- Returns:
- the service stub
-