-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feedback when error at T2P generating - HTTP-Code (header) -> todo: UI-Team coordination - body-information: error details ---------- Pairprogramming with Moritz Wolf & Alexander Lamers Co-Authored-By: AlexDevelop94 <[email protected]>
- Loading branch information
1 parent
fec6d5a
commit 1f3a546
Showing
6 changed files
with
137 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
src/main/java/de/dhbw/text2process/helper/appParameterHelper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package de.dhbw.text2process.helper; | ||
|
||
import java.io.*; | ||
import java.util.Properties; | ||
|
||
public class appParameterHelper { | ||
|
||
public static Properties GetConfigFile(){ | ||
|
||
try (InputStream input = new FileInputStream("src/main/resources/appParameter.properties")) { | ||
|
||
Properties prop = new Properties(); | ||
|
||
// load a properties file | ||
prop.load(input); | ||
|
||
System.out.println(prop); | ||
|
||
return prop; | ||
|
||
} catch (IOException io) { | ||
//io.printStackTrace(); | ||
return null; | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Request-Parameter-Configuration | ||
request.minTextLength=10 | ||
request.maxTextLength=15000 | ||
|
||
# Response-Parameter-Configuration | ||
response.exception.textLength=30 | ||
|
||
# Other Project Settings | ||
other.validation.regex=[^a-z0-9,./?:!\\s\\t\\n'£$%&*()_\\-`] |