@Test public void testResolve_BasePathTrailingSlash() { URI base = URI.create( "http: assertEquals( "http: assertEquals( "http: assertEquals( "http: assertEquals( "http: assertEquals( "http: }
public static URI resolve( URI base, URI ref ) { String path = ref.getRawPath(); if ( path != null && path.length() > 0 ) { path = base.getRawPath(); if ( path == null || !path.endsWith( "/" ) ) { try { base = new URI( base.getScheme(), base.getAuthority(), base.getPath() + '/', null, null ); } catch ( URISyntaxException e ) { throw new IllegalStateException( e ); } } } return URIUtils.resolve( base, ref ); }
UriUtils { public static URI resolve( URI base, URI ref ) { String path = ref.getRawPath(); if ( path != null && path.length() > 0 ) { path = base.getRawPath(); if ( path == null || !path.endsWith( "/" ) ) { try { base = new URI( base.getScheme(), base.getAuthority(), base.getPath() + '/', null, null ); } catch ( URISyntaxException e ) { throw new IllegalStateException( e ); } } } return URIUtils.resolve( base, ref ); } }
UriUtils { public static URI resolve( URI base, URI ref ) { String path = ref.getRawPath(); if ( path != null && path.length() > 0 ) { path = base.getRawPath(); if ( path == null || !path.endsWith( "/" ) ) { try { base = new URI( base.getScheme(), base.getAuthority(), base.getPath() + '/', null, null ); } catch ( URISyntaxException e ) { throw new IllegalStateException( e ); } } } return URIUtils.resolve( base, ref ); }  }
UriUtils { public static URI resolve( URI base, URI ref ) { String path = ref.getRawPath(); if ( path != null && path.length() > 0 ) { path = base.getRawPath(); if ( path == null || !path.endsWith( "/" ) ) { try { base = new URI( base.getScheme(), base.getAuthority(), base.getPath() + '/', null, null ); } catch ( URISyntaxException e ) { throw new IllegalStateException( e ); } } } return URIUtils.resolve( base, ref ); }  static URI resolve( URI base, URI ref ); static List<URI> getDirectories( URI base, URI uri ); }
UriUtils { public static URI resolve( URI base, URI ref ) { String path = ref.getRawPath(); if ( path != null && path.length() > 0 ) { path = base.getRawPath(); if ( path == null || !path.endsWith( "/" ) ) { try { base = new URI( base.getScheme(), base.getAuthority(), base.getPath() + '/', null, null ); } catch ( URISyntaxException e ) { throw new IllegalStateException( e ); } } } return URIUtils.resolve( base, ref ); }  static URI resolve( URI base, URI ref ); static List<URI> getDirectories( URI base, URI uri );  }