From 9b8053d248b985b3b8522370a0fac8318f4f8a9c Mon Sep 17 00:00:00 2001 From: "peter.danner" Date: Thu, 8 Sep 2005 08:11:06 +0000 Subject: WebDAV Enhancement des Proxy git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@505 d688527b-c9ab-4aba-bd8d-4036d912da1d --- .../moa/id/proxy/EnhancedConnectionBuilder.java | 58 +--------------------- 1 file changed, 1 insertion(+), 57 deletions(-) (limited to 'id.server/src/at') diff --git a/id.server/src/at/gv/egovernment/moa/id/proxy/EnhancedConnectionBuilder.java b/id.server/src/at/gv/egovernment/moa/id/proxy/EnhancedConnectionBuilder.java index 3fa596c78..33f25322d 100644 --- a/id.server/src/at/gv/egovernment/moa/id/proxy/EnhancedConnectionBuilder.java +++ b/id.server/src/at/gv/egovernment/moa/id/proxy/EnhancedConnectionBuilder.java @@ -32,16 +32,6 @@ public class EnhancedConnectionBuilder implements ConnectionBuilder { static { HTTPConnection.setDefaultTimeout(0); - /* - String modules = "HTTPClient.RetryModule|" + - //"HTTPClient.CookieModule|" + - "HTTPClient.RedirectionModule|" + - //"HTTPClient.AuthorizationModule|" + - "HTTPClient.DefaultModule|" + - "HTTPClient.TransferEncodingModule|" + - "HTTPClient.ContentMD5Module|" + - "HTTPClient.ContentEncodingModule"; - */ try { HTTPConnection.removeDefaultModule(Class.forName("HTTPClient.AuthorizationModule")); HTTPConnection.removeDefaultModule(Class.forName("HTTPClient.RedirectionModule")); @@ -59,7 +49,7 @@ public class EnhancedConnectionBuilder implements ConnectionBuilder { cbDisableHostnameVerification = BoolUtils.valueOf( ProxyConfigurationProvider.getInstance().getGenericConfigurationParameter( "ProxyComponent.DisableHostnameVerification")); - //TODO MOA-ID BRZ undocumented feature + //TODO MOA-ID BRZ undocumented feature if (cbDisableHostnameVerification) Logger.warn("ProxyComponent.DisableHostnameVerification: " + cbDisableHostnameVerification); } @@ -76,31 +66,6 @@ public class EnhancedConnectionBuilder implements ConnectionBuilder { throw new IOException(MOAIDMessageProvider.getInstance().getMessage( "proxy.01", new Object[] {requestedURL, publicURLPrefix})); - - - // in case of GET request, append query string to requested URL; - // otherwise, HttpURLConnection would perform a POST request - //FIXME right parameters - /* - if ("get".equalsIgnoreCase(req.getMethod()) && ! parameters.isEmpty()) { - requestedURL = appendQueryString(requestedURL, parameters); - } - */ - /*PeterD - //TODO RSCH check functionality - if (null != req.getQueryString() && 0 != req.getQueryString().length() ) { - String query = req.getQueryString(); - requestedURL = requestedURL + "?" + query; - - for (Iterator iter = parameters.keySet().iterator(); iter.hasNext();) { - String parameterKey = (String) iter.next(); - if(query.indexOf(parameterKey) >= 0) iter.remove(); - } - } - */ - - - if (null != req.getQueryString() && 0 != req.getQueryString().length() ) { String query = req.getQueryString(); requestedURL = requestedURL + "?" + query; @@ -159,27 +124,6 @@ public class EnhancedConnectionBuilder implements ConnectionBuilder { // conn.disconnect(); } - /** - * @param requestedURL - * @param parameters - * @return - */ - /* - private String appendQueryString(String requestedURL, Map parameters) { - String newURL = requestedURL; - for (Iterator iter = parameters.keySet().iterator(); iter.hasNext();) { - String paramName = (String)iter.next(); - String paramValue = (String)parameters.get(paramName); - String paramString = paramName + "=" + paramValue; - if (newURL.indexOf("?") < 0) - newURL = newURL + "?" + paramString; - else - newURL = newURL + "&" + paramString; - } - return newURL; - } - */ - /** * @author Stefan Knirsch * @version $Id$ -- cgit v1.2.3