aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-11-10 14:21:05 +0100
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-11-10 14:21:05 +0100
commitd7b66fb00c4e75932da62fd2a50bfae479f4aa06 (patch)
treef33009db83ccc4357e81572e92c2eee88fd13801 /pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper
parent602849f69efbca27672a79da10e52c999ee43c5c (diff)
downloadpdf-as-4-d7b66fb00c4e75932da62fd2a50bfae479f4aa06.tar.gz
pdf-as-4-d7b66fb00c4e75932da62fd2a50bfae479f4aa06.tar.bz2
pdf-as-4-d7b66fb00c4e75932da62fd2a50bfae479f4aa06.zip
Use PdfAsParameterExtractor for orig digest
Diffstat (limited to 'pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper')
-rw-r--r--pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/PdfAsParameterExtractor.java7
1 files changed, 6 insertions, 1 deletions
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 9c5f8cc6..5981b99b 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
@@ -66,7 +66,7 @@ public class PdfAsParameterExtractor {
public static final String PARAM_SIG_POS_F = "sig-pos-f";
public static final String PARAM_SIG_IDX = "sig-idx";
public static final String PARAM_FILENAME = "filename";
-
+ public static final String PARAM_ORIGINAL_DIGEST = "origdigest";
public static final String PARAM_PREPROCESSOR_PREFIX = "pp:";
public static String getConnector(HttpServletRequest request) {
@@ -140,6 +140,11 @@ public class PdfAsParameterExtractor {
return finalFormat;
}
+ public static String getOrigDigest(HttpServletRequest request) {
+ String url = (String)request.getAttribute(PARAM_ORIGINAL_DIGEST);
+ return url;
+ }
+
public static String getInvokeErrorURL(HttpServletRequest request) {
String url = (String)request.getAttribute(PARAM_INVOKE_URL_ERROR);
return url;