From cdca20e8c619788ada3519fac0861dfbd91522c7 Mon Sep 17 00:00:00 2001 From: bschnalzer Date: Mon, 20 Nov 2017 12:37:53 +0100 Subject: Applied Patch RedirectTargetForm --- .../src/main/java/at/gv/egiz/bku/binding/FixedFormParameters.java | 3 ++- .../src/main/java/at/gv/egiz/bku/binding/HTTPBindingProcessorImpl.java | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/bkucommon/src/main/java/at/gv/egiz/bku/binding/FixedFormParameters.java b/bkucommon/src/main/java/at/gv/egiz/bku/binding/FixedFormParameters.java index 8d67886b..0caeb199 100644 --- a/bkucommon/src/main/java/at/gv/egiz/bku/binding/FixedFormParameters.java +++ b/bkucommon/src/main/java/at/gv/egiz/bku/binding/FixedFormParameters.java @@ -30,7 +30,8 @@ package at.gv.egiz.bku.binding; */ public interface FixedFormParameters { String XMLREQUEST = "XMLRequest"; - String REDIRECTURL = "RedirectURL"; + String REDIRECTURL = "RedirectURL"; + String REDIRECTTARGET = "redirectTarget"; String DATAURL = "DataURL"; String STYLESHEETURL = "StylesheetURL"; } diff --git a/bkucommon/src/main/java/at/gv/egiz/bku/binding/HTTPBindingProcessorImpl.java b/bkucommon/src/main/java/at/gv/egiz/bku/binding/HTTPBindingProcessorImpl.java index 0c637d72..4951bf02 100644 --- a/bkucommon/src/main/java/at/gv/egiz/bku/binding/HTTPBindingProcessorImpl.java +++ b/bkucommon/src/main/java/at/gv/egiz/bku/binding/HTTPBindingProcessorImpl.java @@ -810,9 +810,12 @@ public class HTTPBindingProcessorImpl extends AbstractBindingProcessor implement srcContex.setSourceIsDataURL(false); log.debug("Start consuming request stream."); FormParameter redirectURL = formParameterMap.get(FixedFormParameters.REDIRECTURL); + FormParameter redirectTarget = formParameterMap.get(FixedFormParameters.REDIRECTTARGET); formParameterMap.clear(); if (redirectURL != null) formParameterMap.put(FixedFormParameters.REDIRECTURL, redirectURL); + if (redirectTarget != null) + formParameterMap.put(FixedFormParameters.REDIRECTTARGET, redirectTarget); String ct = headerMap .get(HttpUtil.HTTP_HEADER_CONTENT_TYPE.toLowerCase()); if (ct == null) { -- cgit v1.2.3