aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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