aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build.gradle2
-rw-r--r--doc/AnbindungExterneWebanwendung.docxbin472247 -> 470686 bytes
-rw-r--r--doc/AnbindungExterneWebanwendung.pdfbin621439 -> 614939 bytes
-rw-r--r--pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/PdfAsParameterExtractor.java21
-rw-r--r--pdf-as-web/src/main/webapp/index.jsp8
5 files changed, 16 insertions, 15 deletions
diff --git a/build.gradle b/build.gradle
index 2fab1550..dc5b8c2a 100644
--- a/build.gradle
+++ b/build.gradle
@@ -12,7 +12,7 @@ buildscript {
allprojects {
apply plugin: "com.github.ben-manes.versions"
repositories { mavenCentral() }
- version = '4.1.7-RC-0.0.7'
+ version = '4.1.7-RC-0.0.8'
}
configurations {
diff --git a/doc/AnbindungExterneWebanwendung.docx b/doc/AnbindungExterneWebanwendung.docx
index bde3191b..764b9517 100644
--- a/doc/AnbindungExterneWebanwendung.docx
+++ b/doc/AnbindungExterneWebanwendung.docx
Binary files differ
diff --git a/doc/AnbindungExterneWebanwendung.pdf b/doc/AnbindungExterneWebanwendung.pdf
index 38823d05..00338b3c 100644
--- a/doc/AnbindungExterneWebanwendung.pdf
+++ b/doc/AnbindungExterneWebanwendung.pdf
Binary files differ
diff --git a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/PdfAsParameterExtractor.java b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/PdfAsParameterExtractor.java
index 77d6d217..1ec94c86 100644
--- a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/PdfAsParameterExtractor.java
+++ b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/PdfAsParameterExtractor.java
@@ -74,7 +74,7 @@ public class PdfAsParameterExtractor {
public static final String PARAM_PREPROCESSOR_PREFIX = "pp:";
public static final String PARAM_OVERWRITE_PREFIX = "ov:";
public static final String PARAM_QRCODE_CONTENT = "qrcontent";
- public static final String PARAM_DYNAMIC_SIGNATURE_BLOCK_PARAMETER = "sbp";
+ public static final String PARAM_DYNAMIC_SIGNATURE_BLOCK_PARAMETER = "sbp:";
public static String getConnector(HttpServletRequest request) {
String connector = (String)request.getAttribute(PARAM_CONNECTOR);
@@ -86,18 +86,17 @@ public class PdfAsParameterExtractor {
public static Map<String,String> getDynamicSignatureBlockParameters(HttpServletRequest request) throws Exception {
HashMap<String, String> signatureBlockParametersMap = new HashMap<String, String>();
- String sbpString = (String) request.getAttribute(PARAM_DYNAMIC_SIGNATURE_BLOCK_PARAMETER);
-// Map<String, String[]> map = request.getParameterMap();
- if(sbpString == null || sbpString.length() == 0)
- return signatureBlockParametersMap;
- for(String s : sbpString.split(";")){
- if(!s.contains("=")) {
- throw new Exception("Invalid parameter: "+s);
+
+ Enumeration<String> parameterNames = request.getAttributeNames();
+ while(parameterNames.hasMoreElements()) {
+ String parameterName = parameterNames.nextElement();
+ if (parameterName.startsWith(PARAM_DYNAMIC_SIGNATURE_BLOCK_PARAMETER)) {
+ String key = parameterName.substring(PARAM_DYNAMIC_SIGNATURE_BLOCK_PARAMETER.length());
+ String value = (String) request.getAttribute(parameterName);
+ signatureBlockParametersMap.put(key, value);
}
- String[] values = s.split("=", 2);
- signatureBlockParametersMap.put(values[0], values[1]);
}
- return signatureBlockParametersMap;
+ return signatureBlockParametersMap;
}
public static String getQRCodeContent(HttpServletRequest request) {
String qrcodeContent = (String)request.getAttribute(PARAM_QRCODE_CONTENT);
diff --git a/pdf-as-web/src/main/webapp/index.jsp b/pdf-as-web/src/main/webapp/index.jsp
index 5a904374..a52d1361 100644
--- a/pdf-as-web/src/main/webapp/index.jsp
+++ b/pdf-as-web/src/main/webapp/index.jsp
@@ -24,9 +24,11 @@
<img src="assets/img/localBKU.png" /> <button type="submit"
value="bku" name="connector" id="bku">Lokale BKU
</button>
- <!--
- <label for="sbp">SBP</label>
- <input type="text" id="ab" name="sbp">-->
+
+ <label for="ab">SBP keyA</label>
+ <input type="text" id="ab" name="sbp:keyA">
+ <label for="abc">SBP keyB</label>
+ <input type="text" id="abc" name="sbp:keyB">
<%
}
%>