diff --git a/src/fr/inrialpes/exmo/align/service/AServProtocolManager.java b/src/fr/inrialpes/exmo/align/service/AServProtocolManager.java index 451114b6913d90c929c8a78b5928725f05de6fb0..f3f23e55535b48b48000034666bfeb6fde6a1147 100644 --- a/src/fr/inrialpes/exmo/align/service/AServProtocolManager.java +++ b/src/fr/inrialpes/exmo/align/service/AServProtocolManager.java @@ -82,6 +82,7 @@ import java.util.zip.ZipEntry; public class AServProtocolManager { CacheImpl alignmentCache = null; + Parameters commandLineParams = null; Set renderers = null; Set methods = null; Set services = null; @@ -104,6 +105,7 @@ public class AServProtocolManager { public void init( DBService connection, Parameters p ) throws SQLException, AlignmentException { alignmentCache = new CacheImpl( connection ); + commandLineParams = p; alignmentCache.init( p ); myId = "http://"+p.getParameter("host")+":"+p.getParameter("http"); renderers = implementations( "org.semanticweb.owl.align.AlignmentVisitor" ); @@ -201,6 +203,13 @@ public class AServProtocolManager { // Implements: align public Message align(Message mess){ Message result = null; + Parameters p = mess.getParameters(); + for (Enumeration<String> e = commandLineParams.getNames(); e.hasMoreElements();) { + String key = e.nextElement(); + if ( p.getParameter( key ) == null ){ + p.setParameter( key , commandLineParams.getParameter( key ) ); + } + } // Do the fast part (retrieve) result = retrieveAlignment( mess ); if ( result != null ) return result;