diff options
author | emusic <emina.music@egiz.gv.at> | 2018-09-03 15:21:57 +0200 |
---|---|---|
committer | emusic <emina.music@egiz.gv.at> | 2018-09-03 15:21:57 +0200 |
commit | 0eaaab24a86f609e6f0e41f4378c6da0ce050863 (patch) | |
tree | d3fdb5dca9a03343d959c078628dc8286066fc31 | |
parent | 138c89ab424cdb691e8dd481eabe1fbda396e182 (diff) | |
download | pdf-as-4-0eaaab24a86f609e6f0e41f4378c6da0ce050863.tar.gz pdf-as-4-0eaaab24a86f609e6f0e41f4378c6da0ce050863.tar.bz2 pdf-as-4-0eaaab24a86f609e6f0e41f4378c6da0ce050863.zip |
"deleting unused settings"
-rw-r--r-- | pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/settings/SignatureProfileSettings.java | 3 | ||||
-rw-r--r-- | pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/PDFData.java | 30 |
2 files changed, 11 insertions, 22 deletions
diff --git a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/settings/SignatureProfileSettings.java b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/settings/SignatureProfileSettings.java index fb19347a..bb6cca83 100644 --- a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/settings/SignatureProfileSettings.java +++ b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/settings/SignatureProfileSettings.java @@ -57,8 +57,7 @@ public class SignatureProfileSettings implements IProfileConstants { logger.debug("Table Prefix: " + tablePrefix); Map<String, String> keys = configuration.getValuesPrefix(keysPrefix); - Map<String, String> values = configuration - .getValuesPrefix(valuesPrefix); + Map<String, String> values = configuration.getValuesPrefix(valuesPrefix); if (keys != null) { Iterator<String> keyIterator = keys.keySet().iterator(); diff --git a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/PDFData.java b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/PDFData.java index bc773ec8..2cf2f8ff 100644 --- a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/PDFData.java +++ b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/PDFData.java @@ -23,32 +23,22 @@ ******************************************************************************/ package at.gv.egiz.pdfas.web.servlets; -import java.io.*; -import java.nio.charset.StandardCharsets; -import java.nio.file.Files; -import java.nio.file.Path; -import java.security.SecureRandom; - -import javax.servlet.ServletException; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; - -import at.gv.egiz.pdfas.web.config.WebConfiguration; -import org.apache.commons.io.FileUtils; -import org.apache.commons.io.IOUtils; -import org.apache.pdfbox.pdmodel.PDDocument; -import org.apache.pdfbox.pdmodel.encryption.AccessPermission; -import org.apache.pdfbox.pdmodel.encryption.StandardProtectionPolicy; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - import at.gv.egiz.pdfas.api.ws.PDFASVerificationResponse; +import at.gv.egiz.pdfas.web.config.WebConfiguration; import at.gv.egiz.pdfas.web.helper.PdfAsHelper; import at.gv.egiz.pdfas.web.helper.PdfAsParameterExtractor; import at.gv.egiz.pdfas.web.stats.StatisticEvent; import at.gv.egiz.pdfas.web.stats.StatisticEvent.Status; import at.gv.egiz.pdfas.web.stats.StatisticFrontend; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import javax.servlet.ServletException; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.io.OutputStream; /** * Servlet implementation class PDFData |