/** * Returns a string representing a UTF-8 encoded url. * * @return an encoded url string */ public String toString() { if (myURL == null) { myURL = composeURL(getProtocol(), getUserInfo(), getHost(), myIsDefaultPort ? -1 : getPort(), getURIEncodedPath()); } return myURL; }
/** * Returns a string representing a UTF-8 encoded url. * * @return an encoded url string */ public String toString() { if (myURL == null) { myURL = composeURL(getProtocol(), getUserInfo(), getHost(), myIsDefaultPort ? -1 : getPort(), getURIEncodedPath()); } return myURL; }
/** * Returns a string representing a decoded url. * * @return a decoded url string */ public String toDecodedString() { return composeURL(getProtocol(), getUserInfo(), getHost(), myIsDefaultPort ? -1 : getPort(), getPath()); }
/** * Returns a string representing a decoded url. * * @return a decoded url string */ public String toDecodedString() { return composeURL(getProtocol(), getUserInfo(), getHost(), myIsDefaultPort ? -1 : getPort(), getPath()); }
/** * Returns a string representing a UTF-8 encoded url. * * @return an encoded url string */ public String toString() { if (myURL == null) { myURL = composeURL(getProtocol(), getUserInfo(), getHost(), myIsDefaultPort ? -1 : getPort(), getURIEncodedPath()); } return myURL; }
/** * Returns a string representing a UTF-8 encoded url. * * @return an encoded url string */ public String toString() { if (myURL == null) { myURL = composeURL(getProtocol(), getUserInfo(), getHost(), myIsDefaultPort ? -1 : getPort(), getURIEncodedPath()); } return myURL; }
/** * Returns a string representing a decoded url. * * @return a decoded url string */ public String toDecodedString() { return composeURL(getProtocol(), getUserInfo(), getHost(), myIsDefaultPort ? -1 : getPort(), getPath()); }
/** * Returns a string representing a decoded url. * * @return a decoded url string */ public String toDecodedString() { return composeURL(getProtocol(), getUserInfo(), getHost(), myIsDefaultPort ? -1 : getPort(), getPath()); }
/** * Constructs a new <b>SVNURL</b> representation removing a tail path * segment from the path component of this representation. * * @return a new <b>SVNURL</b> representation */ public SVNURL removePathTail() throws SVNException { String newPath = SVNPathUtil.removeTail(myPath); String url = composeURL(getProtocol(), getUserInfo(), getHost(), myIsDefaultPort ? -1 : getPort(), newPath); return parseURIDecoded(url); } /**
/** * Constructs a new <b>SVNURL</b> representation removing a tail path * segment from the path component of this representation. * * @return a new <b>SVNURL</b> representation * @throws SVNException */ public SVNURL removePathTail() throws SVNException { final String newPath = SVNPathUtil.removeTail(myEncodedPath); final String url = composeURL(getProtocol(), getUserInfo(), getHost(), myIsDefaultPort ? -1 : getPort(), newPath); return parseURIEncoded(url); } /**
/** * Constructs a new <b>SVNURL</b> representation removing a tail path * segment from the path component of this representation. * * @return a new <b>SVNURL</b> representation * @throws SVNException */ public SVNURL removePathTail() throws SVNException { String newPath = SVNPathUtil.removeTail(myPath); String url = composeURL(getProtocol(), getUserInfo(), getHost(), myIsDefaultPort ? -1 : getPort(), newPath); return parseURIDecoded(url); } /**
/** * Constructs a new <b>SVNURL</b> representation removing a tail path * segment from the path component of this representation. * * @return a new <b>SVNURL</b> representation * @throws SVNException */ public SVNURL removePathTail() throws SVNException { String newPath = SVNPathUtil.removeTail(myPath); String url = composeURL(getProtocol(), getUserInfo(), getHost(), myIsDefaultPort ? -1 : getPort(), newPath); return parseURIDecoded(url); } /**
/** * Creates a new <b>SVNURL</b> object replacing a path component of * this object with a new provided one. * * @param path a path component * @param uriEncoded <span class="javakeyword">true</span> if <code>path</code> * is UTF-8 encoded * @return a new <b>SVNURL</b> representation * @throws SVNException if a parse error occurred */ public SVNURL setPath(String path, boolean uriEncoded) throws SVNException { if (path == null || "".equals(path)) { path = "/"; } if (!uriEncoded) { path = SVNEncodingUtil.uriEncode(path); } else { path = SVNEncodingUtil.autoURIEncode(path); } String url = composeURL(getProtocol(), getUserInfo(), getHost(), myIsDefaultPort ? -1 : getPort(), path); return parseURIEncoded(url); }
/** * Creates a new <b>SVNURL</b> object replacing a path component of * this object with a new provided one. * * @param path a path component * @param uriEncoded <span class="javakeyword">true</span> if <code>path</code> * is UTF-8 encoded * @return a new <b>SVNURL</b> representation * @throws SVNException if a parse error occurred */ public SVNURL setPath(String path, boolean uriEncoded) throws SVNException { if (path == null || "".equals(path)) { path = "/"; } if (!uriEncoded) { path = SVNEncodingUtil.uriEncode(path); } else { path = SVNEncodingUtil.autoURIEncode(path); } String url = composeURL(getProtocol(), getUserInfo(), getHost(), myIsDefaultPort ? -1 : getPort(), path); return parseURIEncoded(url); }
/** * Creates a new <b>SVNURL</b> object replacing a path component of * this object with a new provided one. * * @param path a path component * @param uriEncoded <span class="javakeyword">true</span> if <code>path</code> * is UTF-8 encoded * @return a new <b>SVNURL</b> representation * @throws SVNException if a parse error occurred */ public SVNURL setPath(String path, boolean uriEncoded) throws SVNException { if (path == null || "".equals(path)) { path = "/"; } if (!uriEncoded) { path = SVNEncodingUtil.uriEncode(path); } else { path = SVNEncodingUtil.autoURIEncode(path); } String url = composeURL(getProtocol(), getUserInfo(), getHost(), myIsDefaultPort ? -1 : getPort(), path); return parseURIEncoded(url); }
/** * Creates a new <b>SVNURL</b> object replacing a path component of * this object with a new provided one. * * @param path a path component * @param uriEncoded <span class="javakeyword">true</span> if <code>path</code> * is UTF-8 encoded * @return a new <b>SVNURL</b> representation * @throws SVNException if a parse error occurred */ public SVNURL setPath(String path, boolean uriEncoded) throws SVNException { if (path == null || "".equals(path)) { path = "/"; } if (!uriEncoded) { path = SVNEncodingUtil.uriEncode(path); } else { path = SVNEncodingUtil.autoURIEncode(path); } String url = composeURL(getProtocol(), getUserInfo(), getHost(), myIsDefaultPort ? -1 : getPort(), path); return parseURIEncoded(url); }
/** * Constructs a new <b>SVNURL</b> representation appending a new path * segment to the path component of this representation. * * @param segment a new path segment * @param uriEncoded <span class="javakeyword">true</span> if * <code>segment</code> is UTF-8 encoded, * <span class="javakeyword">false</span> * otherwise * @return a new <b>SVNURL</b> representation * @throws SVNException if a parse error occurred */ public SVNURL appendPath(String segment, boolean uriEncoded) throws SVNException { if (segment == null || "".equals(segment)) { return this; } if (!uriEncoded) { segment = SVNEncodingUtil.uriEncode(segment); } else { segment = SVNEncodingUtil.autoURIEncode(segment); } String path = getURIEncodedPath(); if ("".equals(path)) { path = "/" + segment; } else { path = SVNPathUtil.append(path, segment); } String url = composeURL(getProtocol(), getUserInfo(), getHost(), myIsDefaultPort ? -1 : getPort(), path); return parseURIEncoded(url); }
/** * Constructs a new <b>SVNURL</b> representation appending a new path * segment to the path component of this representation. * * @param segment a new path segment * @param uriEncoded <span class="javakeyword">true</span> if * <code>segment</code> is UTF-8 encoded, * <span class="javakeyword">false</span> * otherwise * @return a new <b>SVNURL</b> representation * @throws SVNException if a parse error occurred */ public SVNURL appendPath(String segment, boolean uriEncoded) throws SVNException { if (segment == null || "".equals(segment)) { return this; } if (!uriEncoded) { segment = SVNEncodingUtil.uriEncode(segment); } else { segment = SVNEncodingUtil.autoURIEncode(segment); } String path = getURIEncodedPath(); if ("".equals(path)) { path = "/" + segment; } else { path = SVNPathUtil.append(path, segment); } String url = composeURL(getProtocol(), getUserInfo(), getHost(), myIsDefaultPort ? -1 : getPort(), path); return parseURIEncoded(url); }
/** * Constructs a new <b>SVNURL</b> representation appending a new path * segment to the path component of this representation. * * @param segment a new path segment * @param uriEncoded <span class="javakeyword">true</span> if * <code>segment</code> is UTF-8 encoded, * <span class="javakeyword">false</span> * otherwise * @return a new <b>SVNURL</b> representation * @throws SVNException if a parse error occurred */ public SVNURL appendPath(String segment, boolean uriEncoded) throws SVNException { if (segment == null || "".equals(segment)) { return this; } if (!uriEncoded) { segment = SVNEncodingUtil.uriEncode(segment); } else { segment = SVNEncodingUtil.autoURIEncode(segment); } String path = getURIEncodedPath(); if ("".equals(path)) { path = "/" + segment; } else { path = SVNPathUtil.append(path, segment); } String url = composeURL(getProtocol(), getUserInfo(), getHost(), myIsDefaultPort ? -1 : getPort(), path); return parseURIEncoded(url); }
/** * Constructs a new <b>SVNURL</b> representation appending a new path * segment to the path component of this representation. * * @param segment a new path segment * @param uriEncoded <span class="javakeyword">true</span> if * <code>segment</code> is UTF-8 encoded, * <span class="javakeyword">false</span> * otherwise * @return a new <b>SVNURL</b> representation * @throws SVNException if a parse error occurred */ public SVNURL appendPath(String segment, boolean uriEncoded) throws SVNException { if (segment == null || "".equals(segment)) { return this; } if (!uriEncoded) { segment = SVNEncodingUtil.uriEncode(segment); } else { segment = SVNEncodingUtil.autoURIEncode(segment); } String path = getURIEncodedPath(); if ("".equals(path)) { path = "/" + segment; } else { path = SVNPathUtil.append(path, segment); } String url = composeURL(getProtocol(), getUserInfo(), getHost(), myIsDefaultPort ? -1 : getPort(), path); return parseURIEncoded(url); }