Class MicroProfileClientProxyImpl
java.lang.Object
org.apache.cxf.jaxrs.client.AbstractClient
org.apache.cxf.jaxrs.client.ClientProxyImpl
org.apache.cxf.microprofile.client.proxy.MicroProfileClientProxyImpl
- All Implemented Interfaces:
Closeable,AutoCloseable,InvocationHandler,Client,InvocationHandlerAware
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.cxf.jaxrs.client.ClientProxyImpl
ClientProxyImpl.BeanPair, ClientProxyImpl.BodyWriterNested classes/interfaces inherited from class org.apache.cxf.jaxrs.client.AbstractClient
AbstractClient.AbstractBodyWriter, AbstractClient.AbstractClientAsyncResponseInterceptor -
Field Summary
Fields inherited from class org.apache.cxf.jaxrs.client.ClientProxyImpl
bodyWriter, BUFFER_PROXY_RESPONSE, BUNDLE, cri, inheritHeaders, isRoot, proxy, PROXY_METHOD_PARAM_BODY_INDEX, proxyLoader, SLASH, valuesMapFields inherited from class org.apache.cxf.jaxrs.client.AbstractClient
cfg, EXECUTOR_SERVICE_PROPERTY, HTTP_SCHEME, KEEP_CONDUIT_ALIVE, REQUEST_CONTEXT, RESPONSE_CONTEXT -
Constructor Summary
ConstructorsConstructorDescriptionMicroProfileClientProxyImpl(URI baseURI, ClassLoader loader, ClassResourceInfo cri, boolean isRoot, boolean inheritHeaders, ExecutorService executorService, jakarta.ws.rs.core.Configuration configuration, CDIInterceptorWrapper interceptorWrapper, TLSConfiguration tlsConfig, Object... varValues) MicroProfileClientProxyImpl(ClientState initialState, ClassLoader loader, ClassResourceInfo cri, boolean isRoot, boolean inheritHeaders, ExecutorService executorService, jakarta.ws.rs.core.Configuration configuration, CDIInterceptorWrapper interceptorWrapper, TLSConfiguration tlsConfig, Object... varValues) -
Method Summary
Modifier and TypeMethodDescriptionprotected jakarta.ws.rs.client.InvocationCallback<Object>checkAsyncCallback(OperationResourceInfo ori, Map<String, Object> reqContext, Message outMessage) protected booleancheckAsyncReturnType(OperationResourceInfo ori, Map<String, Object> reqContext, Message outMessage) protected voidcheckResponse(Method m, jakarta.ws.rs.core.Response r, Message inMessage) voidclose()Release the internal state and configuration associated with this clientprotected MessagecreateMessage(Object body, OperationResourceInfo ori, jakarta.ws.rs.core.MultivaluedMap<String, String> headers, URI currentURI, Exchange exchange, Map<String, Object> invocationContext, boolean proxy) protected ObjectdoInvokeAsync(OperationResourceInfo ori, Message outMessage, jakarta.ws.rs.client.InvocationCallback<Object> asyncCallback) protected voiddoRunInterceptorChain(Message message) protected TypegetGenericReturnType(Class<?> serviceCls, Method method, Class<?> returnType) protected Class<?>getReturnType(Method method, Message outMessage) protected voidhandleHeaders(Method m, Object[] params, jakarta.ws.rs.core.MultivaluedMap<String, String> headers, List<Parameter> beanParams, jakarta.ws.rs.core.MultivaluedMap<ParameterType, Parameter> map) Updates the current state if Client method is invoked, otherwise does the remote invocation or returns a new proxy if subresource method is invoked.protected JaxrsClientCallback<?>newJaxrsClientCallback(jakarta.ws.rs.client.InvocationCallback<Object> asyncCallback, Message outMessage, Class<?> responseClass, Type outGenericType) protected voidsetTimeouts(Map<String, Object> props) Methods inherited from class org.apache.cxf.jaxrs.client.ClientProxyImpl
addFormValue, addNonEmptyPath, doChainedInvocation, doCheckAsyncCallback, findExceptionMapper, getAccept, getBeanGetter, getBodyIndex, getInvocationHandler, getMethodAnnotations, getMultipart, getParamAnnotations, getParameters, getParametersInfo, getPathParamValues, getValuesFromBeanParam, getValuesFromBeanParam, getValuesFromBeanParamField, handleCookies, handleForm, handleMatrixes, handleMultipart, handleQueries, handleResponse, isIgnorableParameter, reportInvalidResourceMethod, retryInvoke, setRequestHeadersMethods inherited from class org.apache.cxf.jaxrs.client.AbstractClient
accept, accept, acceptEncoding, acceptLanguage, addMatrixQueryParamsToBuilder, authorization, calculateNewRequestURI, checkClientException, checkClosed, checkIfBodyEmpty, completeExchange, convertParamValue, convertParamValue, convertToWebApplicationException, cookie, createExchange, createMessage, encoding, findCallbackType, getBaseURI, getCallbackClass, getCallbackType, getConfiguration, getContentsList, getCurrentBuilder, getCurrentURI, getHeaders, getRequestContext, getResponse, getState, getTemplateParametersMap, header, headers, language, match, modified, parseQuotedHeaderValue, prepareConduitSelector, preProcessResult, query, readBody, removeAllHeaders, reportMessageHandlerProblem, reset, resetBaseAddress, resetCurrentBuilder, resetResponse, resetResponseStateImmediatelyIfNeeded, responseStreamCanBeClosed, retryInvoke, setAsyncMessageObserverIfNeeded, setConfiguration, setContexts, setEmptyRequestPropertyIfNeeded, setPlainOperationNameProperty, setResponseBuilder, setSupportOnewayResponseProperty, setupInFaultObserver, setupInInterceptorChain, setupOutInterceptorChain, type, type, waitForResponseCode, writeBody
-
Constructor Details
-
MicroProfileClientProxyImpl
public MicroProfileClientProxyImpl(URI baseURI, ClassLoader loader, ClassResourceInfo cri, boolean isRoot, boolean inheritHeaders, ExecutorService executorService, jakarta.ws.rs.core.Configuration configuration, CDIInterceptorWrapper interceptorWrapper, TLSConfiguration tlsConfig, Object... varValues) -
MicroProfileClientProxyImpl
public MicroProfileClientProxyImpl(ClientState initialState, ClassLoader loader, ClassResourceInfo cri, boolean isRoot, boolean inheritHeaders, ExecutorService executorService, jakarta.ws.rs.core.Configuration configuration, CDIInterceptorWrapper interceptorWrapper, TLSConfiguration tlsConfig, Object... varValues)
-
-
Method Details
-
checkAsyncCallback
protected jakarta.ws.rs.client.InvocationCallback<Object> checkAsyncCallback(OperationResourceInfo ori, Map<String, Object> reqContext, Message outMessage) - Overrides:
checkAsyncCallbackin classClientProxyImpl
-
checkAsyncReturnType
protected boolean checkAsyncReturnType(OperationResourceInfo ori, Map<String, Object> reqContext, Message outMessage) -
doInvokeAsync
protected Object doInvokeAsync(OperationResourceInfo ori, Message outMessage, jakarta.ws.rs.client.InvocationCallback<Object> asyncCallback) - Overrides:
doInvokeAsyncin classClientProxyImpl
-
doRunInterceptorChain
- Overrides:
doRunInterceptorChainin classAbstractClient
-
newJaxrsClientCallback
protected JaxrsClientCallback<?> newJaxrsClientCallback(jakarta.ws.rs.client.InvocationCallback<Object> asyncCallback, Message outMessage, Class<?> responseClass, Type outGenericType) - Overrides:
newJaxrsClientCallbackin classClientProxyImpl
-
checkResponse
protected void checkResponse(Method m, jakarta.ws.rs.core.Response r, Message inMessage) throws Throwable - Overrides:
checkResponsein classClientProxyImpl- Throws:
Throwable
-
getReturnType
- Overrides:
getReturnTypein classClientProxyImpl
-
getGenericReturnType
- Overrides:
getGenericReturnTypein classClientProxyImpl
-
createMessage
protected Message createMessage(Object body, OperationResourceInfo ori, jakarta.ws.rs.core.MultivaluedMap<String, String> headers, URI currentURI, Exchange exchange, Map<String, Object> invocationContext, boolean proxy) - Overrides:
createMessagein classClientProxyImpl
-
setTimeouts
-
handleHeaders
protected void handleHeaders(Method m, Object[] params, jakarta.ws.rs.core.MultivaluedMap<String, String> headers, List<Parameter> beanParams, jakarta.ws.rs.core.MultivaluedMap<ParameterType, Parameter> map) - Overrides:
handleHeadersin classClientProxyImpl
-
invoke
Description copied from class:ClientProxyImplUpdates the current state if Client method is invoked, otherwise does the remote invocation or returns a new proxy if subresource method is invoked. Can throw an expected exception if ResponseExceptionMapper is registered- Specified by:
invokein interfaceInvocationHandler- Overrides:
invokein classClientProxyImpl- Throws:
Throwable
-
close
public void close()Description copied from interface:ClientRelease the internal state and configuration associated with this client- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceClient- Specified by:
closein interfaceCloseable- Overrides:
closein classAbstractClient
-
getTlsConfig
-