protected Message createMessage(Object body, OperationResourceInfo ori, MultivaluedMap<String, String> headers, URI currentURI, Exchange exchange, Map<String, Object> invocationContext, boolean isProxy) { return createMessage(body, ori.getHttpMethod(), headers, currentURI, exchange, invocationContext, isProxy); }
protected Message createMessage(Object body, OperationResourceInfo ori, MultivaluedMap<String, String> headers, URI currentURI, Exchange exchange, Map<String, Object> invocationContext, boolean isProxy) { return createMessage(body, ori.getHttpMethod(), headers, currentURI, exchange, invocationContext, isProxy); }
@Override protected Message createMessage(Object body, OperationResourceInfo ori, MultivaluedMap<String, String> headers, URI currentURI, Exchange exchange, Map<String, Object> invocationContext, boolean proxy) { Method m = ori.getMethodToInvoke(); Message msg = super.createMessage(body, ori, headers, currentURI, exchange, invocationContext, proxy); @SuppressWarnings("unchecked") Map<String, Object> filterProps = (Map<String, Object>) msg.getExchange() .get("jaxrs.filter.properties"); if (filterProps == null) { filterProps = new HashMap<>(); msg.getExchange().put("jaxrs.filter.properties", filterProps); } filterProps.put("org.eclipse.microprofile.rest.client.invokedMethod", m); return msg; }
@Override protected Message createMessage(Object body, OperationResourceInfo ori, MultivaluedMap<String, String> headers, URI currentURI, Exchange exchange, Map<String, Object> invocationContext, boolean proxy) { Method m = ori.getMethodToInvoke(); Message msg = super.createMessage(body, ori, headers, currentURI, exchange, invocationContext, proxy); @SuppressWarnings("unchecked") Map<String, Object> filterProps = (Map<String, Object>) msg.getExchange() .get("jaxrs.filter.properties"); if (filterProps == null) { filterProps = new HashMap<>(); msg.getExchange().put("jaxrs.filter.properties", filterProps); } filterProps.put("org.eclipse.microprofile.rest.client.invokedMethod", m); return msg; }
origLoader = ClassLoaderUtils.setThreadContextClassloader(loader); Message outMessage = createMessage(body, ori, headers, uri, exchange, invocationContext, true); if (bodyIndex != -1) { outMessage.put(Type.class, ori.getMethodToInvoke().getGenericParameterTypes()[bodyIndex]);
origLoader = ClassLoaderUtils.setThreadContextClassloader(loader); Message outMessage = createMessage(body, ori, headers, uri, exchange, invocationContext, true); if (bodyIndex != -1) { outMessage.put(Type.class, ori.getMethodToInvoke().getGenericParameterTypes()[bodyIndex]);
origLoader = ClassLoaderUtils.setThreadContextClassloader(loader); Message outMessage = createMessage(body, ori.getHttpMethod(), headers, uri, exchange, invocationContext, true); setSupportOnewayResponseProperty(outMessage);