From dc0dbeef80ca6bbed4b80362eb59a5704327c56a Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Wed, 4 Jun 2014 15:40:23 +0200 Subject: Trace SL Request in web app --- pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/PdfAsHelper.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pdf-as-web/src/main') 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(); -- cgit v1.2.3