diff options
author | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2014-06-04 15:40:23 +0200 |
---|---|---|
committer | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2014-06-04 15:40:23 +0200 |
commit | dc0dbeef80ca6bbed4b80362eb59a5704327c56a (patch) | |
tree | 533a3f41317ab11b566bab10b495917b062d910c /pdf-as-web/src/main/java/at/gv/egiz | |
parent | 6de4496bc66024471186174c77554ba9804b980a (diff) | |
download | pdf-as-4-dc0dbeef80ca6bbed4b80362eb59a5704327c56a.tar.gz pdf-as-4-dc0dbeef80ca6bbed4b80362eb59a5704327c56a.tar.bz2 pdf-as-4-dc0dbeef80ca6bbed4b80362eb59a5704327c56a.zip |
Trace SL Request in web app
Diffstat (limited to 'pdf-as-web/src/main/java/at/gv/egiz')
-rw-r--r-- | pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/PdfAsHelper.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/PdfAsHelper.java b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/PdfAsHelper.java index 5a452188..ee67985b 100644 --- a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/PdfAsHelper.java +++ b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/PdfAsHelper.java @@ -549,6 +549,8 @@ public class PdfAsHelper { StringEscapeUtils.escapeHtml4(slRequest)); template = template.replace("##DataURL##", url); response.getWriter().write(template); + //TODO: set content type of response!! + response.setContentType("text/html"); response.getWriter().close(); } else if (statusRequest.needSignature()) { logger.debug("Needing Signature from BKU"); @@ -561,6 +563,8 @@ public class PdfAsHelper { .marshalToString(of .createCreateCMSSignatureRequest(pack.getRequestType())); + logger.trace("SL Request: " + slRequest); + response.setContentType("text/xml"); response.getWriter().write(slRequest); response.getWriter().close(); |