diff options
author | wbauer <wbauer@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2008-09-25 07:29:47 +0000 |
---|---|---|
committer | wbauer <wbauer@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2008-09-25 07:29:47 +0000 |
commit | e21dd5249d5fa19c5619847922cf8cdea95e3145 (patch) | |
tree | 00756b302d7fe37a4912ff5da812e25e2a781d9b /bkucommon/src/main/java/at/gv/egiz/bku/slcommands | |
parent | 55302f2bbe65d28a21d61822f3c316a7fafd1eff (diff) | |
download | mocca-e21dd5249d5fa19c5619847922cf8cdea95e3145.tar.gz mocca-e21dd5249d5fa19c5619847922cf8cdea95e3145.tar.bz2 mocca-e21dd5249d5fa19c5619847922cf8cdea95e3145.zip |
improved robustness of http binding processor
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@70 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'bkucommon/src/main/java/at/gv/egiz/bku/slcommands')
-rw-r--r-- | bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/InfoboxReadCommandImpl.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/InfoboxReadCommandImpl.java b/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/InfoboxReadCommandImpl.java index 4d64ae36..b6c89e5b 100644 --- a/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/InfoboxReadCommandImpl.java +++ b/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/InfoboxReadCommandImpl.java @@ -371,12 +371,12 @@ public class InfoboxReadCommandImpl extends SLCommandImpl<InfoboxReadRequestType infoboxReadRequest = new InfoboxReadRequest();
infoboxReadRequest.setInfoboxIdentifier("SecureSignatureKeypair");
stalRequests.add(infoboxReadRequest);
-
infoboxReadRequest = new InfoboxReadRequest();
infoboxReadRequest.setInfoboxIdentifier("CertifiedKeypair");
stalRequests.add(infoboxReadRequest);
requestSTAL(stalRequests);
+ log.trace("Got STAL response");
IdentityLink identityLink = getIdentityLinkFromResponses();
List<X509Certificate> certificates = getCertificatesFromResponses();
@@ -413,10 +413,12 @@ public class InfoboxReadCommandImpl extends SLCommandImpl<InfoboxReadRequestType Result xmlResult = (isXMLEntity || identityLinkDomainIdentifier != null)
? result.getXmlResult(true)
: new StreamResult((resultBytes = new ByteArrayOutputStream()));
- try {
+ try { + log.trace("Trying to transform identitylink");
identityLinkTransformer.transformIdLink(issuerTemplate, new DOMSource(document), xmlResult);
} catch (IOException e) {
- // we should not get an IOException as we are writing into a DOMResult
+ // we should not get an IOException as we are writing into a DOMResult + log.warn("Failed to transform idlink",e);
throw new SLRuntimeException(e);
} catch (TransformerException e) {
log.info("Faild to transform CompressedIdentityLink.", e);
|