Class MicroProfileClientFactoryBean
java.lang.Object
org.apache.cxf.interceptor.AbstractBasicInterceptorProvider
org.apache.cxf.endpoint.AbstractEndpointFactory
org.apache.cxf.jaxrs.AbstractJAXRSFactoryBean
org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean
org.apache.cxf.microprofile.client.MicroProfileClientFactoryBean
- All Implemented Interfaces:
InterceptorProvider
-
Field Summary
Fields inherited from class org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean
headers, initialState, LOG, password, serviceClass, threadSafe, timeToKeepState, usernameFields inherited from class org.apache.cxf.jaxrs.AbstractJAXRSFactoryBean
entityProviders, schemaLocations, serviceFactoryFields inherited from class org.apache.cxf.endpoint.AbstractEndpointFactory
address, bindingConfig, bindingFactory, bindingId, bus, conduitSelector, dataBinding, destinationFactory, endpointName, endpointReference, features, properties, publishedEndpointUrl, serviceName, transportId -
Constructor Summary
ConstructorsConstructorDescriptionMicroProfileClientFactoryBean(MicroProfileClientConfigurableImpl<org.eclipse.microprofile.rest.client.RestClientBuilder> configurable, String baseUri, Class<?> aClass, ExecutorService executorService, TLSConfiguration secConfig) -
Method Summary
Modifier and TypeMethodDescriptionprotected ClientProxyImplcreateClientProxy(ClassResourceInfo cri, boolean isRoot, ClientState actualState, Object[] varValues) protected <C extends jakarta.ws.rs.core.Configurable<C>>
jakarta.ws.rs.core.Configurable<?>getConfigurableFor(C context) protected voidinitClient(AbstractClient client, Endpoint ep, boolean addHeaders) voidsetClassLoader(ClassLoader loader) Sets the custom class loader to be used for creating proxies.voidsetInheritHeaders(boolean inheritHeaders) Indicates if the headers set by a current proxy will be inherited when a subresource proxy is created vice versa.Methods inherited from class org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean
applyFeatures, create, create, createWebClient, createWithValues, getActualState, getConduitSelector, getHeaders, getPassword, getServiceClass, getUsername, notifyLifecycleManager, setHeaders, setInitialState, setPassword, setResourceClass, setSecondsToKeepState, setServiceClass, setThreadSafe, setUsernameMethods inherited from class org.apache.cxf.jaxrs.AbstractJAXRSFactoryBean
checkResources, createBindingInfo, createEndpoint, createEndpointInfo, getBus, getProviders, getServiceFactory, isValidClassResourceInfo, setBus, setDataBindingProvider, setModelBeans, setModelBeans, setModelBeansWithServiceClass, setModelRef, setModelRefWithServiceClass, setProvider, setProviderComparator, setProviders, setSchemaLocation, setSchemaLocations, setServiceFactory, setServiceName, setupFactoryMethods inherited from class org.apache.cxf.endpoint.AbstractEndpointFactory
addToBeans, checkPrivateEndpoint, getAddress, getBindingConfig, getBindingFactory, getBindingId, getBus, getConduitSelector, getDataBinding, getDestinationFactory, getEndpointName, getFeatures, getProperties, getProperties, getPublishedEndpointUrl, getServiceName, getTransportId, initializeAnnotationInterceptors, initializeAnnotationInterceptors, initializeAnnotationInterceptors, setAddress, setBindingConfig, setBindingFactory, setBindingId, setConduitSelector, setDataBinding, setDestinationFactory, setEndpointName, setEndpointReference, setFeatures, setProperties, setPublishedEndpointUrl, setTransportIdMethods inherited from class org.apache.cxf.interceptor.AbstractBasicInterceptorProvider
getInFaultInterceptors, getInInterceptors, getOutFaultInterceptors, getOutInterceptors, setInFaultInterceptors, setInInterceptors, setOutFaultInterceptors, setOutInterceptors
-
Constructor Details
-
MicroProfileClientFactoryBean
public MicroProfileClientFactoryBean(MicroProfileClientConfigurableImpl<org.eclipse.microprofile.rest.client.RestClientBuilder> configurable, String baseUri, Class<?> aClass, ExecutorService executorService, TLSConfiguration secConfig)
-
-
Method Details
-
setClassLoader
Description copied from class:JAXRSClientFactoryBeanSets the custom class loader to be used for creating proxies. By default the class loader of the given serviceClass will be used.- Overrides:
setClassLoaderin classJAXRSClientFactoryBean
-
setInheritHeaders
public void setInheritHeaders(boolean inheritHeaders) Description copied from class:JAXRSClientFactoryBeanIndicates if the headers set by a current proxy will be inherited when a subresource proxy is created vice versa.- Overrides:
setInheritHeadersin classJAXRSClientFactoryBean- Parameters:
inheritHeaders- if set to true then the current headers will be inherited
-
getExecutorService
-
initClient
- Overrides:
initClientin classJAXRSClientFactoryBean
-
createClientProxy
protected ClientProxyImpl createClientProxy(ClassResourceInfo cri, boolean isRoot, ClientState actualState, Object[] varValues) - Overrides:
createClientProxyin classJAXRSClientFactoryBean
-
getConfigurableFor
protected <C extends jakarta.ws.rs.core.Configurable<C>> jakarta.ws.rs.core.Configurable<?> getConfigurableFor(C context) - Overrides:
getConfigurableForin classJAXRSClientFactoryBean
-