/** * Resolves a relative URI using this URI as the base URI. */ public ParsedURI resolve(String relURISpec) { // This algorithm is based on the algorithm specified in chapter 5 of // RFC 2396: URI Generic Syntax. See http://www.ietf.org/rfc/rfc2396.txt // RFC, step 1: ParsedURI relURI = new ParsedURI(relURISpec); return this.resolve(relURI); }
private String parsePath() throws URISyntaxException { return parsePctEncoded(fchar, '?', '#'); }
/** * Resolves the given IRI against this ParsedIRI. * * @see #resolve(ParsedIRI) * @param iri * The IRI to be resolved against this ParsedIRI * @return The resulting IRI * @throws NullPointerException * If {@code relative} is {@code null} */ public String resolve(String iri) { return resolve(ParsedIRI.create(iri)).toString(); }
/** * Relativizes the given IRI against this ParsedIRI. * * @see #relativize(ParsedIRI) * @param iri * The IRI to be relativized against this ParsedIRI * @return The resulting IRI * @throws NullPointerException * If {@code absolute} is {@code null} */ public String relativize(String iri) { return relativize(ParsedIRI.create(iri)).toString(); }
public void setBaseURI(String uriString) { // Resolve the specified base URI against the inherited base URI baseURI = baseURI.resolve(createBaseURI(uriString)); }
private String parseUserInfo() throws URISyntaxException { int start = pos; String userinfo = parsePctEncoded(uchar, '@', '/'); if ('@' == peek()) { advance(1); return userinfo; } else { pos = start; // reset return null; } }
/** * Resolves the given IRI against this ParsedIRI. * * @see #resolve(ParsedIRI) * @param iri * The IRI to be resolved against this ParsedIRI * @return The resulting IRI * @throws NullPointerException * If {@code relative} is {@code null} */ public String resolve(String iri) { return resolve(ParsedIRI.create(iri)).toString(); }
/** * Relativizes the given IRI against this ParsedIRI. * * @see #relativize(ParsedIRI) * @param iri * The IRI to be relativized against this ParsedIRI * @return The resulting IRI * @throws NullPointerException * If {@code absolute} is {@code null} */ public String relativize(String iri) { return relativize(ParsedIRI.create(iri)).toString(); }
public void setBaseURI(String uriString) { // Resolve the specified base URI against the inherited base URI baseURI = baseURI.resolve(createBaseURI(uriString)); }
/** * Resolves a relative URI using this URI as the base URI. */ public ParsedURI resolve(String relURISpec) { // This algorithm is based on the algorithm specified in chapter 5 of // RFC 2396: URI Generic Syntax. See http://www.ietf.org/rfc/rfc2396.txt // RFC, step 1: ParsedURI relURI = new ParsedURI(relURISpec); return this.resolve(relURI); }
private String parsePath() throws URISyntaxException { return parsePctEncoded(fchar, '?', '#'); }
/** * Resolves the given IRI against this ParsedIRI. * * @see #resolve(ParsedIRI) * @param iri * The IRI to be resolved against this ParsedIRI * @return The resulting IRI * @throws NullPointerException * If {@code relative} is {@code null} */ public String resolve(String iri) { return resolve(ParsedIRI.create(iri)).toString(); }
/** * Relativizes the given IRI against this ParsedIRI. * * @see #relativize(ParsedIRI) * @param iri * The IRI to be relativized against this ParsedIRI * @return The resulting IRI * @throws NullPointerException * If {@code absolute} is {@code null} */ public String relativize(String iri) { return relativize(ParsedIRI.create(iri)).toString(); }
public void setBaseURI(String uriString) { // Resolve the specified base URI against the inherited base URI baseURI = baseURI.resolve(createBaseURI(uriString)); }
/** * Resolves a relative URI using this URI as the base URI. */ public ParsedURI resolve(String relURISpec) { // This algorithm is based on the algorithm specified in chapter 5 of // RFC 2396: URI Generic Syntax. See http://www.ietf.org/rfc/rfc2396.txt // RFC, step 1: ParsedURI relURI = new ParsedURI(relURISpec); return this.resolve(relURI); }
private String parsePath() throws URISyntaxException { return parsePctEncoded(fchar, '?', '#'); }