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
public class MicroProfileClientProxyImpl extends ClientProxyImpl
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.cxf.jaxrs.client.ClientProxyImpl
ClientProxyImpl.BeanPair, ClientProxyImpl.BodyWriter
-
Nested 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, valuesMap
-
Fields inherited from class org.apache.cxf.jaxrs.client.AbstractClient
cfg, EXECUTOR_SERVICE_PROPERTY, HTTP_SCHEME, KEEP_CONDUIT_ALIVE, REQUEST_CONTEXT, RESPONSE_CONTEXT
-
-
Constructor Summary
Constructors Constructor Description MicroProfileClientProxyImpl(URI baseURI, ClassLoader loader, ClassResourceInfo cri, boolean isRoot, boolean inheritHeaders, ExecutorService executorService, javax.ws.rs.core.Configuration configuration, CDIInterceptorWrapper interceptorWrapper, TLSConfiguration tlsConfig, Object... varValues)MicroProfileClientProxyImpl(ClientState initialState, ClassLoader loader, ClassResourceInfo cri, boolean isRoot, boolean inheritHeaders, ExecutorService executorService, javax.ws.rs.core.Configuration configuration, CDIInterceptorWrapper interceptorWrapper, TLSConfiguration tlsConfig, Object... varValues)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.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, javax.ws.rs.core.Response r, Message inMessage)voidclose()Release the internal state and configuration associated with this clientprotected MessagecreateMessage(Object body, OperationResourceInfo ori, javax.ws.rs.core.MultivaluedMap<String,String> headers, URI currentURI, Exchange exchange, Map<String,Object> invocationContext, boolean proxy)protected ObjectdoInvokeAsync(OperationResourceInfo ori, Message outMessage, javax.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)TLSConfigurationgetTlsConfig()protected voidhandleHeaders(Method m, Object[] params, javax.ws.rs.core.MultivaluedMap<String,String> headers, List<Parameter> beanParams, javax.ws.rs.core.MultivaluedMap<ParameterType,Parameter> map)Objectinvoke(Object o, Method m, Object[] params)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(javax.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, setRequestHeaders
-
Methods 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 Detail
-
MicroProfileClientProxyImpl
public MicroProfileClientProxyImpl(URI baseURI, ClassLoader loader, ClassResourceInfo cri, boolean isRoot, boolean inheritHeaders, ExecutorService executorService, javax.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, javax.ws.rs.core.Configuration configuration, CDIInterceptorWrapper interceptorWrapper, TLSConfiguration tlsConfig, Object... varValues)
-
-
Method Detail
-
checkAsyncCallback
protected javax.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, javax.ws.rs.client.InvocationCallback<Object> asyncCallback)
- Overrides:
doInvokeAsyncin classClientProxyImpl
-
doRunInterceptorChain
protected void doRunInterceptorChain(Message message)
- Overrides:
doRunInterceptorChainin classAbstractClient
-
newJaxrsClientCallback
protected JaxrsClientCallback<?> newJaxrsClientCallback(javax.ws.rs.client.InvocationCallback<Object> asyncCallback, Message outMessage, Class<?> responseClass, Type outGenericType)
- Overrides:
newJaxrsClientCallbackin classClientProxyImpl
-
checkResponse
protected void checkResponse(Method m, javax.ws.rs.core.Response r, Message inMessage) throws Throwable
- Overrides:
checkResponsein classClientProxyImpl- Throws:
Throwable
-
getReturnType
protected Class<?> getReturnType(Method method, Message outMessage)
- Overrides:
getReturnTypein classClientProxyImpl
-
getGenericReturnType
protected Type getGenericReturnType(Class<?> serviceCls, Method method, Class<?> returnType)
- Overrides:
getGenericReturnTypein classClientProxyImpl
-
createMessage
protected Message createMessage(Object body, OperationResourceInfo ori, javax.ws.rs.core.MultivaluedMap<String,String> headers, URI currentURI, Exchange exchange, Map<String,Object> invocationContext, boolean proxy)
- Overrides:
createMessagein classClientProxyImpl
-
handleHeaders
protected void handleHeaders(Method m, Object[] params, javax.ws.rs.core.MultivaluedMap<String,String> headers, List<Parameter> beanParams, javax.ws.rs.core.MultivaluedMap<ParameterType,Parameter> map)
- Overrides:
handleHeadersin classClientProxyImpl
-
invoke
public Object invoke(Object o, Method m, Object[] params) throws Throwable
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
public TLSConfiguration getTlsConfig()
-
-