diff options
author | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2016-02-15 13:57:32 +0100 |
---|---|---|
committer | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2016-02-15 13:57:32 +0100 |
commit | 23fafb58424165a22f0c37dee093b6312ce6acef (patch) | |
tree | 2039084dfb97c4372f2a37ce98267ead22e10744 /pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/config | |
parent | 0c1bea550142c9e1571ced54976cb0167b2fc55b (diff) | |
download | pdf-as-4-23fafb58424165a22f0c37dee093b6312ce6acef.tar.gz pdf-as-4-23fafb58424165a22f0c37dee093b6312ce6acef.tar.bz2 pdf-as-4-23fafb58424165a22f0c37dee093b6312ce6acef.zip |
QR placeholder generation servlet
Diffstat (limited to 'pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/config')
-rw-r--r-- | pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/config/WebConfiguration.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/config/WebConfiguration.java b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/config/WebConfiguration.java index 0ad96b04..4ef320a1 100644 --- a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/config/WebConfiguration.java +++ b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/config/WebConfiguration.java @@ -93,6 +93,8 @@ public class WebConfiguration implements IConfigurationConstants { public static final String UPLOAD_MAX_FILESIZE = "web.upload.filesizeMax"; public static final String UPLOAD_MAX_REQUESTSIZE = "web.upload.RequestsizeMax"; + public static final String PLACEHOLDER_GENERATOR_ENABLED = "qr.placeholder.generator.enabled"; + private static final int THRESHOLD_SIZE = 1024 * 1024 * 3; // 3MB private static final int MAX_FILE_SIZE = 1024 * 1024 * 40; // 40MB private static final int MAX_REQUEST_SIZE = 1024 * 1024 * 50; // 50MB @@ -308,6 +310,16 @@ public class WebConfiguration implements IConfigurationConstants { return false; } + public static boolean isQRPlaceholderGenerator() { + String value = properties.getProperty(PLACEHOLDER_GENERATOR_ENABLED); + if (value != null) { + if (value.equals("true")) { + return true; + } + } + return false; + } + public static String getMoaURL(String keyIdentifier) { return properties.getProperty(MOA_LIST + "." + keyIdentifier + "." + MOA_URL); } |