/** * Resolves a URI reference against a base URI. Work-around for bug in * java.net.URI (<http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4708535>) * * @param baseURI the base URI * @param reference the URI reference * @return the resulting URI */ public static URI resolve(final URI baseURI, final String reference) { return URIUtils.resolve(baseURI, URI.create(reference)); }
URI requestURI = new URI(request.getRequestLine().getUri()); URI absoluteRequestURI = URIUtils.rewriteURI(requestURI, target, true); uri = URIUtils.resolve(absoluteRequestURI, uri); } catch (URISyntaxException ex) { throw new ProtocolException(ex.getMessage(), ex);
private URI resolve(final String request) throws HttpException { return URIUtils.resolve(baseUri, request); }
/** * Resolves a URI reference against a base URI. Work-around for bug in * java.net.URI (<http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4708535>) * * @param baseURI the base URI * @param reference the URI reference * @return the resulting URI */ public static URI resolve(final URI baseURI, final String reference) { return URIUtils.resolve(baseURI, URI.create(reference)); }
/** * Resolves a URI reference against a base URI. Work-around for bug in * java.net.URI (<http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4708535>) * * @param baseURI the base URI * @param reference the URI reference * @return the resulting URI */ public static URI resolve(final URI baseURI, final String reference) { return URIUtils.resolve(baseURI, URI.create(reference)); }
/** * Resolves a URI reference against a base URI. Work-around for bug in * java.net.URI (<http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4708535>) * * @param baseURI the base URI * @param reference the URI reference * @return the resulting URI */ public static URI resolve(final URI baseURI, final String reference) { return URIUtils.resolve(baseURI, URI.create(reference)); }
/** * Resolves a URI reference against a base URI. Work-around for bug in * java.net.URI (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4708535) * * @param baseURI the base URI * @param reference the URI reference * @return the resulting URI */ public static URI resolve(final URI baseURI, final String reference) { return resolve(baseURI, URI.create(reference)); }
/** * Resolves a URI reference against a base URI. Work-around for bug in * java.net.URI (<http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4708535>) * * @param baseURI the base URI * @param reference the URI reference * @return the resulting URI */ public static URI resolve(final URI baseURI, final String reference) { return URIUtils.resolve(baseURI, URI.create(reference)); }
/** * Resolves a URI reference against a base URI. Work-around for bug in * java.net.URI (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4708535) * * @param baseURI the base URI * @param reference the URI reference * @return the resulting URI */ public static URI resolve(final URI baseURI, final String reference) { return resolve(baseURI, URI.create(reference)); }
/** * Resolves a URI reference against a base URI. Work-around for bug in * java.net.URI (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4708535) * * @param baseURI the base URI * @param reference the URI reference * @return the resulting URI */ public static URI resolve(final URI baseURI, final String reference) { return resolve(baseURI, URI.create(reference)); }
/** * Resolves a URI reference against a base URI. Work-around for bug in * java.net.URI (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4708535) * * @param baseURI the base URI * @param reference the URI reference * @return the resulting URI */ public static URI resolve(final URI baseURI, final String reference) { return resolve(baseURI, URI.create(reference)); }
/** * Resolves a URI reference against a base URI. Work-around for bug in * java.net.URI (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4708535) * * @param baseURI the base URI * @param reference the URI reference * @return the resulting URI */ public static URI resolve(final URI baseURI, final String reference) { return resolve(baseURI, URI.create(reference)); }
/** * Resolves a URI reference against a base URI. Work-around for bug in * java.net.URI (<http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4708535>) * * @param baseURI the base URI * @param reference the URI reference * @return the resulting URI */ public static URI resolve(final URI baseURI, final String reference) { return URIUtils.resolve(baseURI, URI.create(reference)); }
public void consume(Map<String, String> returnResult) { URI location; try { location = URIUtils.resolve(uri, targetHost, redirectLocations); } catch (URISyntaxException e) { //this is not a fatal error throw new IllegalArgumentException("could not determine '" + HttpClientService.FINAL_LOCATION + "': " + e.getMessage(), e); } returnResult.put(HttpClientService.FINAL_LOCATION, location.toASCIIString()); } }
public void consume(Map<String, String> returnResult) { URI location; try { location = URIUtils.resolve(uri, targetHost, redirectLocations); } catch (URISyntaxException e) { //this is not a fatal error throw new IllegalArgumentException("could not determine '" + ScoreHttpClient.FINAL_LOCATION + "': " + e.getMessage(), e); } returnResult.put(ScoreHttpClient.FINAL_LOCATION, location.toASCIIString()); } }
public void consume(Map<String, String> returnResult) { URI location; try { location = URIUtils.resolve(uri, targetHost, redirectLocations); } catch (URISyntaxException e) { //this is not a fatal error throw new IllegalArgumentException("could not determine '" + HttpClientService.FINAL_LOCATION + "': " + e.getMessage(), e); } returnResult.put(HttpClientService.FINAL_LOCATION, location.toASCIIString()); } }
public void consume(Map<String, String> returnResult) { URI location; try { location = URIUtils.resolve(uri, targetHost, redirectLocations); } catch (URISyntaxException e) { //this is not a fatal error throw new IllegalArgumentException("could not determine '"+ ScoreHttpClient.FINAL_LOCATION +"': " + e.getMessage(), e); } returnResult.put(ScoreHttpClient.FINAL_LOCATION, location.toASCIIString()); } }
/** * Gets the balance. * * @return the balance. * @throws IOException indicates I/O exception. * @deprecated Use {@link OKCoinAccountService#getAccountInfo()} instead. */ @Deprecated public Funds getBalance() throws IOException { return httpClient.get(URIUtils.resolve(HTTPS_BASE, "/trade/btc.do"), new IndexHtmlPageReader()); }
/** * Execute request, do not follow redirects * * @param request Http request * @return Http response * @throws IOException on error */ public CloseableHttpResponse execute(HttpRequestBase request) throws IOException { URI requestURI = request.getURI(); if (!requestURI.isAbsolute()) { request.setURI(URIUtils.resolve(uri, requestURI)); } uri = request.getURI(); return httpClient.execute(request); }
/** * Construct <code>Http4FileObject</code>. * @param name file name * @param fileSystem file system * @param builder <code>Http4FileSystemConfigBuilder</code> object * @throws FileSystemException if any error occurs * @throws URISyntaxException if given file name cannot be converted to a URI due to URI syntax error */ protected Http4FileObject(final AbstractFileName name, final FS fileSystem, final Http4FileSystemConfigBuilder builder) throws FileSystemException, URISyntaxException { super(name, fileSystem); final FileSystemOptions fileSystemOptions = fileSystem.getFileSystemOptions(); urlCharset = builder.getUrlCharset(fileSystemOptions); final String pathEncoded = ((GenericURLFileName) name).getPathQueryEncoded(getUrlCharset()); internalURI = URIUtils.resolve(fileSystem.getInternalBaseURI(), pathEncoded); }