You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2012/07/23 17:55:43 UTC
svn commit: r1364691 -
/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/webdav/WebdavFileObject.java
Author: ggregory
Date: Mon Jul 23 15:55:43 2012
New Revision: 1364691
URL: http://svn.apache.org/viewvc?rev=1364691&view=rev
Log:
Rename private method urlString to toUrlString.
Modified:
commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/webdav/WebdavFileObject.java
Modified: commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/webdav/WebdavFileObject.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/webdav/WebdavFileObject.java?rev=1364691&r1=1364690&r2=1364691&view=diff
==============================================================================
--- commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/webdav/WebdavFileObject.java (original)
+++ commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/webdav/WebdavFileObject.java Mon Jul 23 15:55:43 2012
@@ -238,7 +238,7 @@ public class WebdavFileObject extends Ht
protected void doRename(FileObject newFile) throws Exception
{
String url = encodePath(urlString((URLFileName) getName()));
- String dest = urlString((URLFileName) newFile.getName(), false);
+ String dest = toUrlString((URLFileName) newFile.getName(), false);
DavMethod method = new MoveMethod(url, dest, false);
setupMethod(method);
execute(method);
@@ -547,17 +547,17 @@ public class WebdavFileObject extends Ht
private String urlString(URLFileName name)
{
- return urlString(name, true);
+ return toUrlString(name, true);
}
/**
- * Convert the FileName to an encoded url String.
+ * Converts the given URLFileName to an encoded URL String.
*
* @param name The FileName.
* @param includeUserInfo true if user information should be included.
* @return The encoded URL String.
*/
- private String urlString(URLFileName name, boolean includeUserInfo)
+ private String toUrlString(URLFileName name, boolean includeUserInfo)
{
String user = null;
String password = null;