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 2019/12/24 17:57:56 UTC
[commons-vfs] 02/02: Restore binary compatibility with 2.4.1.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-vfs.git
commit c5e2796cd02ef1d2afe100244306c765b7bcad67
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Dec 24 12:57:50 2019 -0500
Restore binary compatibility with 2.4.1.
---
.../apache/commons/vfs2/provider/HostFileNameParser.java | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/HostFileNameParser.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/HostFileNameParser.java
index c15c37d..2da513b 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/HostFileNameParser.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/HostFileNameParser.java
@@ -216,6 +216,21 @@ public class HostFileNameParser extends AbstractFileNameParser {
* @param name Used to return the remainder of the URI.
* @return Authority extracted host authority, never null.
* @throws FileSystemException if authority cannot be extracted.
+ * @deprecated Use {@link #extractToPath(VfsComponentContext, String, StringBuilder)}.
+ */
+ @Deprecated
+ protected Authority extractToPath(final String uri, final StringBuilder name) throws FileSystemException {
+ return extractToPath(null, uri, name);
+ }
+
+ /**
+ * Extracts the scheme, userinfo, hostname and port components of a generic URI.
+ *
+ * @param context component context.
+ * @param uri The absolute URI to parse.
+ * @param name Used to return the remainder of the URI.
+ * @return Authority extracted host authority, never null.
+ * @throws FileSystemException if authority cannot be extracted.
*/
protected Authority extractToPath(final VfsComponentContext context, final String uri, final StringBuilder name) throws FileSystemException {
final Authority auth = new Authority();