Class SyncServiceClientFactoryCxf
- java.lang.Object
-
- com.devonfw.module.service.common.base.client.PartialServiceClientFactory
-
- com.devonfw.module.cxf.common.impl.client.PartialServiceClientFactoryCxf
-
- com.devonfw.module.cxf.common.impl.client.SyncServiceClientFactoryCxf
-
- All Implemented Interfaces:
SyncServiceClientFactory
public abstract class SyncServiceClientFactoryCxf extends PartialServiceClientFactoryCxf implements SyncServiceClientFactory
Abstract base implementation ofSyncServiceClientFactory
for service clients using Apache CXF.- Since:
- 3.0.0
-
-
Constructor Summary
Constructors Constructor Description SyncServiceClientFactoryCxf()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract <S> void
applyAspects(ServiceContext<S> context, S serviceClient)
Implementations should call the following methods:PartialServiceClientFactoryCxf.applyInterceptors(ServiceContext, InterceptorProvider)
PartialServiceClientFactoryCxf.applyClientPolicy(ServiceContext, HTTPConduit)
applyHeaders(ServiceContext, Object)
protected abstract void
applyHeaders(ServiceContext<?> context, Object serviceClient)
Applies headers to the givenserviceClient
.<S> S
create(ServiceContext<S> context)
protected abstract <S> S
createService(ServiceContext<S> context, String url)
-
Methods inherited from class com.devonfw.module.cxf.common.impl.client.PartialServiceClientFactoryCxf
applyClientPolicy, applyInterceptors, createClientPolicy
-
Methods inherited from class com.devonfw.module.service.common.base.client.PartialServiceClientFactory
getErrorFactory, getServiceTypeFolderName, getUrl, isResponsibleForService, setErrorFactory
-
-
-
-
Method Detail
-
create
public <S> S create(ServiceContext<S> context)
- Specified by:
create
in interfaceSyncServiceClientFactory
-
createService
protected abstract <S> S createService(ServiceContext<S> context, String url)
- Type Parameters:
S
- the generic type of theservice API
.- Parameters:
context
- theServiceContext
.url
- the resolved end-point URL of the service to invoke.- Returns:
- a new client stub for the service. See
create(ServiceContext)
for further details.
-
applyAspects
protected abstract <S> void applyAspects(ServiceContext<S> context, S serviceClient)
Implementations should call the following methods:- Type Parameters:
S
- the generic type of theservice API
.- Parameters:
context
- theServiceContext
.serviceClient
- thecreated service client stub
.
-
applyHeaders
protected abstract void applyHeaders(ServiceContext<?> context, Object serviceClient)
Applies headers to the givenserviceClient
.- Parameters:
context
- theServiceContext
.serviceClient
- the service client instance.
-
-