summaryrefslogtreecommitdiff
path: root/bkucommon/src/main/java/at
diff options
context:
space:
mode:
authortkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2014-03-03 15:28:57 +0000
committertkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2014-03-03 15:28:57 +0000
commita2a5fdad1da092f8b5e41b1f1b78f0a3ea6f2fe9 (patch)
tree27942560b51cd37dbfaaaaf9e62c5e3e0a66855d /bkucommon/src/main/java/at
parent6fe1fbc794c51c32c06d5dfd51fb953102aaf6e0 (diff)
downloadmocca-a2a5fdad1da092f8b5e41b1f1b78f0a3ea6f2fe9.tar.gz
mocca-a2a5fdad1da092f8b5e41b1f1b78f0a3ea6f2fe9.tar.bz2
mocca-a2a5fdad1da092f8b5e41b1f1b78f0a3ea6f2fe9.zip
Disable cookies in BindingProcessor
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@1296 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'bkucommon/src/main/java/at')
-rw-r--r--bkucommon/src/main/java/at/gv/egiz/bku/binding/AbstractBindingProcessor.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/bkucommon/src/main/java/at/gv/egiz/bku/binding/AbstractBindingProcessor.java b/bkucommon/src/main/java/at/gv/egiz/bku/binding/AbstractBindingProcessor.java
index 4f6e58f4..1b2778c4 100644
--- a/bkucommon/src/main/java/at/gv/egiz/bku/binding/AbstractBindingProcessor.java
+++ b/bkucommon/src/main/java/at/gv/egiz/bku/binding/AbstractBindingProcessor.java
@@ -24,6 +24,9 @@
package at.gv.egiz.bku.binding;
+import java.net.CookieHandler;
+import java.net.CookieManager;
+import java.net.CookiePolicy;
import java.util.Date;
import java.util.Locale;
@@ -87,6 +90,8 @@ public abstract class AbstractBindingProcessor implements BindingProcessor {
this.id = IdFactory.getInstance().createId(id);
this.stal = stal;
this.commandInvoker = commandInvoker;
+ // disable cookies
+ CookieHandler.setDefault(new CookieManager(null, CookiePolicy.ACCEPT_NONE));
}
@Override