/** * Like {@link #to(String, Class)} but updates an existing object instead of creating a new instance. */ public <T> T to(String tailApiUrl, T existingInstance) throws IOException { return _to(tailApiUrl, null, existingInstance); }
/** * Sends a request to the specified URL, and parses the response into the given type via databinding. * * @throws IOException * if the server returns 4xx/5xx responses. * @return * {@link Reader} that reads the response. */ public <T> T to(String tailApiUrl, Class<T> type) throws IOException { return _to(tailApiUrl, type, null); }
/** * Like {@link #to(String, Class)} but updates an existing object instead of creating a new instance. */ public <T> T to(String tailApiUrl, T existingInstance) throws IOException { return _to(tailApiUrl, null, existingInstance); }
/** * Sends a request to the specified URL, and parses the response into the given type via databinding. * * @throws IOException * if the server returns 4xx/5xx responses. * @return * {@link Reader} that reads the response. */ public <T> T to(String tailApiUrl, Class<T> type) throws IOException { return _to(tailApiUrl, type, null); }
/** * Like {@link #to(String, Class)} but updates an existing object instead of creating a new instance. */ public <T> T to(String tailApiUrl, T existingInstance) throws IOException { return _to(tailApiUrl, null, existingInstance); }
/** * Sends a request to the specified URL, and parses the response into the given type via databinding. * * @throws IOException * if the server returns 4xx/5xx responses. * @return * {@link Reader} that reads the response. */ public <T> T to(String tailApiUrl, Class<T> type) throws IOException { return _to(tailApiUrl, type, null); }
if (nextLinkMatcher.find()) { final String link = nextLinkMatcher.group(1); T nextResult = _to(link, type, instance);
if (nextLinkMatcher.find()) { final String link = nextLinkMatcher.group(1); T nextResult = _to(link, type, instance); setResponseHeaders(nextResult); final int resultLength = Array.getLength(result);
if (nextLinkMatcher.find()) { final String link = nextLinkMatcher.group(1); T nextResult = _to(link, type, instance); setResponseHeaders(nextResult); final int resultLength = Array.getLength(result);