summaryrefslogtreecommitdiff
path: root/bkucommon
diff options
context:
space:
mode:
authorbschnalzer <bianca.schnalzer@egiz.gv.at>2017-11-20 12:37:53 +0100
committerbschnalzer <bianca.schnalzer@egiz.gv.at>2017-11-20 12:37:53 +0100
commitcdca20e8c619788ada3519fac0861dfbd91522c7 (patch)
treee0cad043bebd089677fb2fc2db6f0d6a5f8fc64d /bkucommon
parentc9421495bf0f6e5918cb17595a2fab677aec69a2 (diff)
downloadmocca-cdca20e8c619788ada3519fac0861dfbd91522c7.tar.gz
mocca-cdca20e8c619788ada3519fac0861dfbd91522c7.tar.bz2
mocca-cdca20e8c619788ada3519fac0861dfbd91522c7.zip
Applied Patch RedirectTargetForm
Diffstat (limited to 'bkucommon')
-rw-r--r--bkucommon/src/main/java/at/gv/egiz/bku/binding/FixedFormParameters.java3
-rw-r--r--bkucommon/src/main/java/at/gv/egiz/bku/binding/HTTPBindingProcessorImpl.java3
2 files changed, 5 insertions, 1 deletions
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) {