aboutsummaryrefslogtreecommitdiff
path: root/common/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'common/src/main/java')
-rw-r--r--common/src/main/java/at/gv/egovernment/moa/util/FileUtils.java2
-rw-r--r--common/src/main/java/at/gv/egovernment/moa/util/MOAEntityResolver.java4
2 files changed, 5 insertions, 1 deletions
diff --git a/common/src/main/java/at/gv/egovernment/moa/util/FileUtils.java b/common/src/main/java/at/gv/egovernment/moa/util/FileUtils.java
index 58a07f5e6..7effe8b4f 100644
--- a/common/src/main/java/at/gv/egovernment/moa/util/FileUtils.java
+++ b/common/src/main/java/at/gv/egovernment/moa/util/FileUtils.java
@@ -44,7 +44,7 @@ public class FileUtils {
* @return file content
* @throws IOException on any exception thrown
*/
- public static byte[] readURL(String urlString) throws IOException {
+ public static byte[] readURL(String urlString) throws IOException {
URL url = new URL(urlString);
InputStream in = new BufferedInputStream(url.openStream());
byte[] content = StreamUtils.readStream(in);
diff --git a/common/src/main/java/at/gv/egovernment/moa/util/MOAEntityResolver.java b/common/src/main/java/at/gv/egovernment/moa/util/MOAEntityResolver.java
index ae83a551d..0401108d5 100644
--- a/common/src/main/java/at/gv/egovernment/moa/util/MOAEntityResolver.java
+++ b/common/src/main/java/at/gv/egovernment/moa/util/MOAEntityResolver.java
@@ -91,9 +91,13 @@ public class MOAEntityResolver implements EntityResolver {
try {
URI uri = new URI(systemId);
systemId = uri.getPath();
+ System.out.println("MOAEntityResover: " + uri);
if (!"file".equals(uri.getScheme()) || "".equals(systemId.trim())) {
return null;
}
+
+ //ExternalURIVerifier.verify(uri.getHost(), uri.getPort());
+
} catch (MalformedURIException e) {
return null;
}