1 package org.apache.commons.vfs.provider.url; 2 3 import org.apache.commons.vfs.FileType; 4 import org.apache.commons.vfs.provider.URLFileName; 5 6 13 public class UrlFileName extends URLFileName 14 { 15 public UrlFileName(final String scheme, final String hostName, final int port, final int defaultPort, final String userName, final String password, final String path, final FileType type, final String queryString) 16 { 17 super(scheme, hostName, port, defaultPort, userName, password, path, type, queryString); 18 } 19 20 protected void appendRootUri(final StringBuffer buffer) 21 { 22 if (getHostName() != null && !"".equals(getHostName())) 23 { 24 super.appendRootUri(buffer); 25 return; 26 } 27 28 buffer.append(getScheme()); 29 buffer.append(":"); 30 } 31 } 32 | Popular Tags |