Skip to content

Commit

Permalink
Move client classes into the project
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwdouglas committed Jun 17, 2021
1 parent 805aa6c commit c79ca43
Show file tree
Hide file tree
Showing 14 changed files with 27 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@
import org.jboss.resteasy.reactive.client.impl.ClientImpl;
import org.jboss.resteasy.reactive.client.impl.UniInvoker;
import org.jboss.resteasy.reactive.client.impl.WebTargetImpl;
import org.jboss.resteasy.reactive.client.processor.beanparam.BeanParamItem;
import org.jboss.resteasy.reactive.client.processor.beanparam.ClientBeanParamInfo;
import org.jboss.resteasy.reactive.client.processor.beanparam.CookieParamItem;
import org.jboss.resteasy.reactive.client.processor.beanparam.HeaderParamItem;
import org.jboss.resteasy.reactive.client.processor.beanparam.Item;
import org.jboss.resteasy.reactive.client.processor.beanparam.QueryParamItem;
import org.jboss.resteasy.reactive.client.processor.scanning.ClientEndpointIndexer;
import org.jboss.resteasy.reactive.client.spi.ClientRestHandler;
import org.jboss.resteasy.reactive.common.core.GenericTypeMapping;
import org.jboss.resteasy.reactive.common.core.ResponseBuilderFactory;
Expand Down Expand Up @@ -106,12 +113,6 @@
import io.quarkus.gizmo.MethodDescriptor;
import io.quarkus.gizmo.ResultHandle;
import io.quarkus.gizmo.TryBlock;
import io.quarkus.jaxrs.client.reactive.deployment.beanparam.BeanParamItem;
import io.quarkus.jaxrs.client.reactive.deployment.beanparam.ClientBeanParamInfo;
import io.quarkus.jaxrs.client.reactive.deployment.beanparam.CookieParamItem;
import io.quarkus.jaxrs.client.reactive.deployment.beanparam.HeaderParamItem;
import io.quarkus.jaxrs.client.reactive.deployment.beanparam.Item;
import io.quarkus.jaxrs.client.reactive.deployment.beanparam.QueryParamItem;
import io.quarkus.jaxrs.client.reactive.runtime.ClientResponseBuilderFactory;
import io.quarkus.jaxrs.client.reactive.runtime.JaxrsClientReactiveRecorder;
import io.quarkus.jaxrs.client.reactive.runtime.MultipartFormUtils;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.quarkus.jaxrs.client.reactive.deployment.beanparam;
package org.jboss.resteasy.reactive.client.processor.beanparam;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.quarkus.jaxrs.client.reactive.deployment.beanparam;
package org.jboss.resteasy.reactive.client.processor.beanparam;

import static org.jboss.resteasy.reactive.common.processor.ResteasyReactiveDotNames.BEAN_PARAM;
import static org.jboss.resteasy.reactive.common.processor.ResteasyReactiveDotNames.COOKIE_PARAM;
Expand All @@ -8,7 +8,6 @@
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import org.jboss.jandex.AnnotationInstance;
import org.jboss.jandex.AnnotationTarget;
import org.jboss.jandex.ClassInfo;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package io.quarkus.jaxrs.client.reactive.deployment.beanparam;
package org.jboss.resteasy.reactive.client.processor.beanparam;

import java.util.List;

import org.jboss.resteasy.reactive.common.model.MethodParameter;
import org.jboss.resteasy.reactive.common.model.ParameterType;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.quarkus.jaxrs.client.reactive.deployment.beanparam;
package org.jboss.resteasy.reactive.client.processor.beanparam;

public class CookieParamItem extends Item {
private final String cookieName;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package io.quarkus.jaxrs.client.reactive.deployment.beanparam;
package org.jboss.resteasy.reactive.client.processor.beanparam;

import io.quarkus.gizmo.BytecodeCreator;
import io.quarkus.gizmo.MethodDescriptor;
import io.quarkus.gizmo.ResultHandle;
import io.quarkus.jaxrs.client.reactive.runtime.ReflectionUtil;
import org.jboss.resteasy.reactive.client.impl.ReflectionUtil;

public class FieldExtractor extends ValueExtractor {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package io.quarkus.jaxrs.client.reactive.deployment.beanparam;

import org.jboss.jandex.MethodInfo;
package org.jboss.resteasy.reactive.client.processor.beanparam;

import io.quarkus.gizmo.BytecodeCreator;
import io.quarkus.gizmo.ResultHandle;
import org.jboss.jandex.MethodInfo;

public class GetterExtractor extends ValueExtractor {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.quarkus.jaxrs.client.reactive.deployment.beanparam;
package org.jboss.resteasy.reactive.client.processor.beanparam;

public class HeaderParamItem extends Item {
private final String headerName;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.quarkus.jaxrs.client.reactive.deployment.beanparam;
package org.jboss.resteasy.reactive.client.processor.beanparam;

import io.quarkus.gizmo.BytecodeCreator;
import io.quarkus.gizmo.ResultHandle;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.quarkus.jaxrs.client.reactive.deployment.beanparam;
package org.jboss.resteasy.reactive.client.processor.beanparam;

public enum ItemType {
BEAN_PARAM,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.quarkus.jaxrs.client.reactive.deployment.beanparam;
package org.jboss.resteasy.reactive.client.processor.beanparam;

import org.jboss.jandex.Type;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.quarkus.jaxrs.client.reactive.deployment.beanparam;
package org.jboss.resteasy.reactive.client.processor.beanparam;

import io.quarkus.gizmo.BytecodeCreator;
import io.quarkus.gizmo.ResultHandle;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.quarkus.jaxrs.client.reactive.deployment;
package org.jboss.resteasy.reactive.client.processor.scanning;

import static javax.ws.rs.core.MediaType.APPLICATION_JSON;
import static org.jboss.resteasy.reactive.common.processor.ResteasyReactiveDotNames.JSONP_JSON_ARRAY;
Expand All @@ -11,15 +11,16 @@
import java.util.HashSet;
import java.util.List;
import java.util.Map;

import javax.ws.rs.core.MediaType;

import org.jboss.jandex.AnnotationInstance;
import org.jboss.jandex.ClassInfo;
import org.jboss.jandex.DotName;
import org.jboss.jandex.IndexView;
import org.jboss.jandex.MethodInfo;
import org.jboss.jandex.Type;
import org.jboss.resteasy.reactive.client.processor.beanparam.BeanParamParser;
import org.jboss.resteasy.reactive.client.processor.beanparam.ClientBeanParamInfo;
import org.jboss.resteasy.reactive.client.processor.beanparam.Item;
import org.jboss.resteasy.reactive.common.model.InjectableBean;
import org.jboss.resteasy.reactive.common.model.MaybeRestClientInterface;
import org.jboss.resteasy.reactive.common.model.MethodParameter;
Expand All @@ -36,12 +37,9 @@
import org.jboss.resteasy.reactive.common.providers.serialisers.jsonp.JsonStructureHandler;
import org.jboss.resteasy.reactive.common.providers.serialisers.jsonp.JsonValueHandler;

import io.quarkus.jaxrs.client.reactive.deployment.beanparam.BeanParamParser;
import io.quarkus.jaxrs.client.reactive.deployment.beanparam.ClientBeanParamInfo;
import io.quarkus.jaxrs.client.reactive.deployment.beanparam.Item;

public class ClientEndpointIndexer
extends EndpointIndexer<ClientEndpointIndexer, ClientEndpointIndexer.ClientIndexedParam, ResourceMethod> {
static final DotName CONTINUATION = DotName.createSimple("kotlin.coroutines.Continuation");

private final String[] defaultProduces;
private final String[] defaultProducesNegotiated;
Expand Down Expand Up @@ -130,7 +128,7 @@ elementType, toClassName(paramType, currentClassInfo, actualEndpointInfo, index)
@Override
protected boolean handleCustomParameter(Map<DotName, AnnotationInstance> anns, ClientIndexedParam builder, Type paramType,
boolean field, Map<String, Object> methodContext) {
if (paramType.name().equals(JaxrsClientReactiveProcessor.CONTINUATION)) {
if (paramType.name().equals(CONTINUATION)) {
builder.setType(ParameterType.CUSTOM);
return true;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.quarkus.jaxrs.client.reactive.runtime;
package org.jboss.resteasy.reactive.client.impl;

import java.lang.reflect.Field;

Expand Down

0 comments on commit c79ca43

Please sign in to comment.