Package org.gcube.common.calls.jaxrs
Class TargetFactory
java.lang.Object
org.gcube.common.calls.jaxrs.TargetFactory
- All Implemented Interfaces:
TargetFactoryDSL.AtClause
Factory for creating JAX-RS web targets for gCube services.
- Author:
- Fabio Simeoni
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.client.WebTargetat(jakarta.xml.ws.EndpointReference endpoint) Creates a web target at the given endpoint reference.jakarta.ws.rs.client.WebTargetReturns a stub for a service endpoint at a given address.org.gcube.common.gxrest.request.GXWebTargetAdapterRequestgetAsGxRest(String address) Returns a stub for a service endpoint at a given address.static TargetFactorystubFor(GcubeService target) Creates a target factory for the given gCube service.
-
Method Details
-
stubFor
Creates a target factory for the given gCube service.- Parameters:
target- the gCube service- Returns:
- a new target factory
-
getAsGxRest
Description copied from interface:TargetFactoryDSL.AtClauseReturns a stub for a service endpoint at a given address.- Specified by:
getAsGxRestin interfaceTargetFactoryDSL.AtClause- Parameters:
address- the address- Returns:
- the stub
-
at
Description copied from interface:TargetFactoryDSL.AtClauseReturns a stub for a service endpoint at a given address.- Specified by:
atin interfaceTargetFactoryDSL.AtClause- Parameters:
address- the address- Returns:
- the stub
-
at
public jakarta.ws.rs.client.WebTarget at(jakarta.xml.ws.EndpointReference endpoint) Creates a web target at the given endpoint reference.- Parameters:
endpoint- the endpoint reference- Returns:
- the web target
-