@Test public void testAppendRootUriWithNonDefaultPort() { fileName = new S3NFileName( SCHEME, "", "FooFolder", FileType.FOLDER ); String expectedUri = SCHEME + ": assertEquals( expectedUri, fileName.getURI() ); fileName = new S3NFileName( SCHEME, "FooBucket", "/FooBucket/FooFolder", FileType.FOLDER ); expectedUri = SCHEME + ": assertEquals( expectedUri, fileName.getURI() ); }
@Override public String getURI() { final StringBuilder buffer = new StringBuilder(); appendRootUri( buffer, false ); buffer.append( getPath() ); return buffer.toString(); }
S3NFileName extends AbstractFileName { @Override public String getURI() { final StringBuilder buffer = new StringBuilder(); appendRootUri( buffer, false ); buffer.append( getPath() ); return buffer.toString(); } }
S3NFileName extends AbstractFileName { @Override public String getURI() { final StringBuilder buffer = new StringBuilder(); appendRootUri( buffer, false ); buffer.append( getPath() ); return buffer.toString(); } S3NFileName( String scheme, String bucketId, String path, FileType type ); }
S3NFileName extends AbstractFileName { @Override public String getURI() { final StringBuilder buffer = new StringBuilder(); appendRootUri( buffer, false ); buffer.append( getPath() ); return buffer.toString(); } S3NFileName( String scheme, String bucketId, String path, FileType type ); @Override String getURI(); String getBucketId(); String getBucketRelativePath(); FileName createName( String absPath, FileType type ); }
S3NFileName extends AbstractFileName { @Override public String getURI() { final StringBuilder buffer = new StringBuilder(); appendRootUri( buffer, false ); buffer.append( getPath() ); return buffer.toString(); } S3NFileName( String scheme, String bucketId, String path, FileType type ); @Override String getURI(); String getBucketId(); String getBucketRelativePath(); FileName createName( String absPath, FileType type ); static final String DELIMITER; }