diff options
author | tkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2011-09-08 09:52:31 +0000 |
---|---|---|
committer | tkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2011-09-08 09:52:31 +0000 |
commit | 8493281dff4676cb191ea362f87ce1be987e2e44 (patch) | |
tree | 1ba404102055252957e3a34ef8edffa791cc0828 /bkucommon/src/main/java/at | |
parent | 43c2d19d35904df088849444e24c39604470c8d6 (diff) | |
download | mocca-8493281dff4676cb191ea362f87ce1be987e2e44.tar.gz mocca-8493281dff4676cb191ea362f87ce1be987e2e44.tar.bz2 mocca-8493281dff4676cb191ea362f87ce1be987e2e44.zip |
Comment SLUnmarshaller changes, adapt tests
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@981 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'bkucommon/src/main/java/at')
-rw-r--r-- | bkucommon/src/main/java/at/gv/egiz/bku/slcommands/SLCommandFactory.java | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/SLCommandFactory.java b/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/SLCommandFactory.java index 09ccb115..6eb27160 100644 --- a/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/SLCommandFactory.java +++ b/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/SLCommandFactory.java @@ -94,7 +94,9 @@ public class SLCommandFactory extends SLUnmarshaller { * <code>context</code>. * * @param source - * the <code>Source</code> to unmarshall from + * the <code>StreamSource</code> to unmarshal from + * Note that the StreamSource _must_ contain a Reader set with + * setReader() * @return the <code>SLCommand</code> unmarshalled from the given * <code>source</code> * @throws SLRequestException @@ -113,11 +115,10 @@ public class SLCommandFactory extends SLUnmarshaller { DebugReader dr = null; if (log.isTraceEnabled() && source instanceof StreamSource) { - StreamSource streamSource = (StreamSource) source; - if (streamSource.getReader() != null) { - dr = new DebugReader(streamSource.getReader(), + if (source.getReader() != null) { + dr = new DebugReader(source.getReader(), "SLCommand unmarshalled from:\n"); - streamSource.setReader(dr); + source.setReader(dr); } } |