From e0d280a78d86f32866d80a2a7e97db4d5a6292fd Mon Sep 17 00:00:00 2001 From: tknall Date: Mon, 28 Jan 2013 17:29:47 +0000 Subject: Minor issues (e.g. source code encoding issues) fixed. Cleanup tasks... git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/pdf-as/trunk@929 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../src/main/java/at/gv/egiz/pdfas/web/helper/SignServletHelper.java | 3 ++- .../src/main/java/at/gv/egiz/pdfas/web/servlets/DataURLServlet.java | 2 +- .../main/java/at/gv/egiz/pdfas/web/servlets/VerifyPreviewServlet.java | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) (limited to 'pdf-as-web') diff --git a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/SignServletHelper.java b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/SignServletHelper.java index 3b8937a..cddd073 100644 --- a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/SignServletHelper.java +++ b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/SignServletHelper.java @@ -48,6 +48,7 @@ import at.gv.egiz.pdfas.api.io.DataSink; import at.gv.egiz.pdfas.api.sign.SignParameters; import at.gv.egiz.pdfas.api.sign.SignResult; import at.gv.egiz.pdfas.api.sign.SignatureDetailInformation; +import at.gv.egiz.pdfas.exceptions.ErrorCode; import at.gv.egiz.pdfas.web.FormFields; import at.gv.egiz.pdfas.web.PDFContainer; import at.gv.egiz.pdfas.web.io.ByteArrayDataSink; @@ -162,7 +163,7 @@ public class SignServletHelper // check if document is empty if (si.sdi.getSignatureData() == null || si.sdi.getSignatureData().getLength() == 0) { - throw new PDFDocumentException(251, "Unable to extract and textual content."); + throw new PDFDocumentException(ErrorCode.NO_TEXTUAL_CONTENT, "Unable to extract and textual content."); } log.debug("connector = " + si.connector); //$NON-NLS-1$ diff --git a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/DataURLServlet.java b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/DataURLServlet.java index a4203ff..1f3d7ed 100644 --- a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/DataURLServlet.java +++ b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/DataURLServlet.java @@ -401,7 +401,7 @@ public class DataURLServlet extends HttpServlet { response.setCharacterEncoding("UTF-8"); response.getWriter() .println( - "Das detached XML kann nicht direkt durch die BKU geschliffen werden, weil diese es als Request interpretieren w�rde. Daher das XML als Text:"); + "Das detached XML kann nicht direkt durch die BKU geschliffen werden, weil diese es als Request interpretieren w\u00FCrde. Daher das XML als Text:"); response.getWriter().println( new String(si.signedPdf, "UTF-8")); if (statLog.isInfoEnabled()) { diff --git a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/VerifyPreviewServlet.java b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/VerifyPreviewServlet.java index cce749f..6e8ff64 100644 --- a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/VerifyPreviewServlet.java +++ b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/VerifyPreviewServlet.java @@ -192,7 +192,7 @@ public class VerifyPreviewServlet extends HttpServlet value = value.replaceAll("\\\"", "\\\""); String input_key = name_prefix + key; - writer.println(" "); + writer.println(" "); writer.println(" "); writer.println(" "); -- cgit v1.2.3