public ResponseObjectProxy(Method method, EntityExtractorFactory extractorFactory) { this.returnType = (Class<T>) method.getReturnType(); this.methodHandlers = new HashMap<Method, EntityExtractor<?>>(); for (Method interfaceMethod : this.returnType.getMethods()) { this.methodHandlers.put(interfaceMethod, extractorFactory.createExtractor(interfaceMethod)); } }
public ResponseObjectProxy(Method method, EntityExtractorFactory extractorFactory) { this.returnType = (Class<T>) method.getReturnType(); this.methodHandlers = new HashMap<Method, EntityExtractor<?>>(); for (Method interfaceMethod : this.returnType.getMethods()) { this.methodHandlers.put(interfaceMethod, extractorFactory.createExtractor(interfaceMethod)); } }
public ClientInvoker(URI baseUri, Class declaring, Method method, ProxyConfig config) { this.declaring = declaring; this.method = method; this.marshallers = ClientMarshallerFactory.createMarshallers(declaring, method, providerFactory, config.getServerConsumes()); this.providerFactory = config.getProviderFactory(); this.executor = config.getExecutor(); accepts = MediaTypeHelper.getProduces(declaring, method, config.getServerProduces()); this.uri = new ResteasyUriBuilder(); this.baseUri = baseUri; uri.uri(baseUri); if (declaring.isAnnotationPresent(Path.class)) uri.path(declaring); if (method.isAnnotationPresent(Path.class)) uri.path(method); this.extractorFactory = config.getExtractorFactory(); this.extractor = extractorFactory.createExtractor(method); }
public ClientInvoker(URI baseUri, Class declaring, Method method, ProxyConfig config) { this.declaring = declaring; this.method = method; this.marshallers = ClientMarshallerFactory.createMarshallers(declaring, method, providerFactory, config.getServerConsumes()); this.providerFactory = (org.jboss.resteasy.spi.old.ResteasyProviderFactory)config.getProviderFactory(); this.executor = config.getExecutor(); final MediaType[] acpts = MediaTypeHelper.getProduces(declaring, method, config.getServerProduces()); accepts = acpts != null ? acpts[0] : null; this.uri = new ResteasyUriBuilder(); this.baseUri = baseUri; uri.uri(baseUri); if (declaring.isAnnotationPresent(Path.class)) uri.path(declaring); if (method.isAnnotationPresent(Path.class)) uri.path(method); this.extractorFactory = config.getExtractorFactory(); this.extractor = extractorFactory.createExtractor(method); }
_extractor = _extractorFactory.createExtractor(_method); _marshallers = ClientMarshallerFactory.createMarshallers(_resourceClass, _method, _providerFactory, null); _accepts = MediaTypeHelper.getProduces(_resourceClass, method, null);
_extractor = _extractorFactory.createExtractor(_method); _marshallers = ClientMarshallerFactory.createMarshallers(_resourceClass, _method, _providerFactory, null); _accepts = MediaTypeHelper.getProduces(_resourceClass, method, null);