aboutsummaryrefslogtreecommitdiff
path: root/id.server/src/at
diff options
context:
space:
mode:
authorpeter.danner <peter.danner@d688527b-c9ab-4aba-bd8d-4036d912da1d>2005-09-08 08:11:06 +0000
committerpeter.danner <peter.danner@d688527b-c9ab-4aba-bd8d-4036d912da1d>2005-09-08 08:11:06 +0000
commit9b8053d248b985b3b8522370a0fac8318f4f8a9c (patch)
treee08a9970bcf0d88da2e14ae067bedf6bf7de3fc7 /id.server/src/at
parent418acaf68457229a3a45eb6a1c6016a9736e4445 (diff)
downloadmoa-id-spss-9b8053d248b985b3b8522370a0fac8318f4f8a9c.tar.gz
moa-id-spss-9b8053d248b985b3b8522370a0fac8318f4f8a9c.tar.bz2
moa-id-spss-9b8053d248b985b3b8522370a0fac8318f4f8a9c.zip
WebDAV Enhancement des Proxy
git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@505 d688527b-c9ab-4aba-bd8d-4036d912da1d
Diffstat (limited to 'id.server/src/at')
-rw-r--r--id.server/src/at/gv/egovernment/moa/id/proxy/EnhancedConnectionBuilder.java58
1 files changed, 1 insertions, 57 deletions
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;
@@ -160,27 +125,6 @@ public class EnhancedConnectionBuilder implements ConnectionBuilder {
}
/**
- * @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$
* A private class to change the standard HostName verifier to disable the