diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-05 11:47:25 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-08 09:48:17 +0200 |
commit | b58f3778095977fa0018f7d20d33347365bb799b (patch) | |
tree | 7c4ec6c0d1828db355d206393ca4e36be0596bda /swext | |
parent | c5fdde23ed7388861d13f6bc229fc8c722d10534 (diff) |
java: use the non-deprecated constructor of URI
Specifically, org.apache.commons.httpclient.URI
Change-Id: Ib1f888559e9401d5fabbe8ea0585a716d9bb5a59
Diffstat (limited to 'swext')
3 files changed, 7 insertions, 7 deletions
diff --git a/swext/mediawiki/src/com/sun/star/wiki/Helper.java b/swext/mediawiki/src/com/sun/star/wiki/Helper.java index 6b4044f505ae..66d2aa263d8c 100644 --- a/swext/mediawiki/src/com/sun/star/wiki/Helper.java +++ b/swext/mediawiki/src/com/sun/star/wiki/Helper.java @@ -787,7 +787,7 @@ public class Helper { HostConfiguration aNewHostConfig = new HostConfiguration(); - URI aURI = new URI( aMainURL.toString() + "index.php?title=Special:Userlogin" ); + URI aURI = new URI( aMainURL.toString() + "index.php?title=Special:Userlogin", false ); GetMethod aGetCookie = new GetMethod( aURI.getEscapedPathQuery() ); ExecuteMethod( aGetCookie, aNewHostConfig, aURI, xContext, true ); @@ -804,7 +804,7 @@ public class Helper String sLoginToken = GetLoginToken( sLoginPage ); PostMethod aPost = new PostMethod(); - URI aPostURI = new URI( aMainURL.getPath() + "index.php?title=Special:Userlogin&action=submitlogin" ); + URI aPostURI = new URI( aMainURL.getPath() + "index.php?title=Special:Userlogin&action=submitlogin", false ); aPost.setPath( aPostURI.getEscapedPathQuery() ); aPost.addParameter( "wpName", sWikiUser ); diff --git a/swext/mediawiki/src/com/sun/star/wiki/WikiArticle.java b/swext/mediawiki/src/com/sun/star/wiki/WikiArticle.java index e7ca9a8061a1..4b92ff6e2991 100644 --- a/swext/mediawiki/src/com/sun/star/wiki/WikiArticle.java +++ b/swext/mediawiki/src/com/sun/star/wiki/WikiArticle.java @@ -61,7 +61,7 @@ public class WikiArticle m_sWikiPass = wikiSettings.get("Password"); m_sTitle = sTitle; - m_aMainURI = new URI( sMainUrl ); + m_aMainURI = new URI( sMainUrl, false ); if ( bLogin ) { @@ -123,7 +123,7 @@ public class WikiArticle if ( m_aHostConfig != null ) { - URI aURI = new URI( m_aMainURI.toString() + "index.php?title=" + m_sTitle + "&action=edit" ); + URI aURI = new URI( m_aMainURI.toString() + "index.php?title=" + m_sTitle + "&action=edit", false ); GetMethod aRequest = new GetMethod( aURI.getEscapedPathQuery() ); Helper.ExecuteMethod( aRequest, m_aHostConfig, aURI, m_xContext, false ); @@ -165,7 +165,7 @@ public class WikiArticle { if ( m_aHostConfig != null ) { - URI aURI = new URI( m_aMainURI.toString() + "index.php?title=" + m_sTitle ); + URI aURI = new URI( m_aMainURI.toString() + "index.php?title=" + m_sTitle, false ); GetMethod aRequest = new GetMethod( aURI.getEscapedPathQuery() ); Helper.ExecuteMethod( aRequest, m_aHostConfig, aURI, m_xContext, false ); @@ -206,7 +206,7 @@ public class WikiArticle // get the edit time and token getArticleWiki(); - URI aURI = new URI( m_aMainURI.getPath() + "index.php?title=" + m_sTitle + "&action=submit" ); + URI aURI = new URI( m_aMainURI.getPath() + "index.php?title=" + m_sTitle + "&action=submit", false ); PostMethod aPost = new PostMethod(); aPost.setPath( aURI.getEscapedPathQuery() ); diff --git a/swext/mediawiki/src/com/sun/star/wiki/WikiEditSettingDialog.java b/swext/mediawiki/src/com/sun/star/wiki/WikiEditSettingDialog.java index 6c884520563d..c2af4e95204f 100644 --- a/swext/mediawiki/src/com/sun/star/wiki/WikiEditSettingDialog.java +++ b/swext/mediawiki/src/com/sun/star/wiki/WikiEditSettingDialog.java @@ -212,7 +212,7 @@ public class WikiEditSettingDialog extends WikiDialog if ( sURL.length() > 0 ) { - URI aURI = new URI( sURL ); + URI aURI = new URI( sURL, false ); GetMethod aRequest = new GetMethod( aURI.getEscapedPathQuery() ); aRequest.setFollowRedirects( false ); Helper.ExecuteMethod( aRequest, aHostConfig, aURI, m_xContext, bInitHost ); |