summaryrefslogtreecommitdiff
path: root/bkucommon/src/main/java/at/gv/egiz
diff options
context:
space:
mode:
Diffstat (limited to 'bkucommon/src/main/java/at/gv/egiz')
-rw-r--r--bkucommon/src/main/java/at/gv/egiz/bku/binding/HTTPBindingProcessor.java8
-rw-r--r--bkucommon/src/main/java/at/gv/egiz/bku/conf/Configurator.java4
2 files changed, 7 insertions, 5 deletions
diff --git a/bkucommon/src/main/java/at/gv/egiz/bku/binding/HTTPBindingProcessor.java b/bkucommon/src/main/java/at/gv/egiz/bku/binding/HTTPBindingProcessor.java
index 832b1770..cb11a3e6 100644
--- a/bkucommon/src/main/java/at/gv/egiz/bku/binding/HTTPBindingProcessor.java
+++ b/bkucommon/src/main/java/at/gv/egiz/bku/binding/HTTPBindingProcessor.java
@@ -347,8 +347,8 @@ public class HTTPBindingProcessor extends AbstractBindingProcessor implements
srcContex.setSourceUrl(conn.getUrl());
currentState = State.PROCESS;
} else if (((contentType.startsWith(HttpUtil.TXT_HTML))
- || (contentType.startsWith(HttpUtil.TXT_PLAIN)) || (contentType
- .startsWith(HttpUtil.TXT_XML)))
+ || (contentType.startsWith(HttpUtil.TXT_PLAIN))
+ || (contentType.startsWith(HttpUtil.TXT_XML)))
&& (dataUrlResponse.isHttpResponseXMLOK())) {
log.info("Dataurl response matches <ok/> with content type: "
+ contentType);
@@ -568,10 +568,10 @@ public class HTTPBindingProcessor extends AbstractBindingProcessor implements
commandCtx.setSTAL(getSTAL());
commandCtx.setURLDereferencerContext(new SimpleFormDataContextImpl(this));
commandCtx.setLocale(locale);
- slCommand = SLCommandFactory.getInstance().createSLCommand(source,
+ slCommand = SLCommandFactory.getInstance().createSLCommand(source,
commandCtx);
log.debug("Created new command: " + slCommand);
- }
+ }
@Override
public void run() {
diff --git a/bkucommon/src/main/java/at/gv/egiz/bku/conf/Configurator.java b/bkucommon/src/main/java/at/gv/egiz/bku/conf/Configurator.java
index d9a118e5..41c2512f 100644
--- a/bkucommon/src/main/java/at/gv/egiz/bku/conf/Configurator.java
+++ b/bkucommon/src/main/java/at/gv/egiz/bku/conf/Configurator.java
@@ -84,6 +84,7 @@ public abstract class Configurator {
throw new SLRuntimeException(
"Expecting directory as SSL.caDirectory parameter");
}
+ log.info("loading trustStore from " + caDir.getAbsolutePath());
CertificateFactory cf = CertificateFactory.getInstance("X.509");
for (File f : caDir.listFiles()) {
try {
@@ -114,6 +115,7 @@ public abstract class Configurator {
throw new SLRuntimeException(
"Expecting directory as SSL.certDirectory parameter");
}
+ log.info("loading certStore from " + certDir.getAbsolutePath());
List<X509Certificate> certCollection = new LinkedList<X509Certificate>();
CertificateFactory cf = CertificateFactory.getInstance("X.509");
for (File f : certDir.listFiles()) {
@@ -256,7 +258,7 @@ public abstract class Configurator {
log.debug("Setting user agent to: "
+ properties.getProperty(USERAGENT_CONFIG_P));
} else {
- log.warn("Cannot read manifest");
+ log.warn("Failed to read manifest, setting user-agent to " + USERAGENT_DEFAULT);
properties.setProperty(USERAGENT_CONFIG_P, USERAGENT_DEFAULT);
}
} catch (IOException e) {