From a2a5fdad1da092f8b5e41b1f1b78f0a3ea6f2fe9 Mon Sep 17 00:00:00 2001 From: tkellner Date: Mon, 3 Mar 2014 15:28:57 +0000 Subject: Disable cookies in BindingProcessor git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@1296 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- .../main/java/at/gv/egiz/bku/binding/AbstractBindingProcessor.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bkucommon/src/main/java/at/gv/egiz/bku/binding') 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 -- cgit v1.2.3