diff options
author | jestin | 2006-07-11 13:57:07 +0000 |
---|---|---|
committer | jestin | 2006-07-11 13:57:07 +0000 |
commit | c9dbee9c2fb98a3ca467ac82a97a9d6f3dba9737 (patch) | |
tree | 19df9d4d9a3874f0a96a9ae6cee6716fe48bd9fd /src/IvyClient.java | |
parent | 5acff6b70cee194fbb74df827618169d2e2a6499 (diff) | |
download | ivy-java-c9dbee9c2fb98a3ca467ac82a97a9d6f3dba9737.zip ivy-java-c9dbee9c2fb98a3ca467ac82a97a9d6f3dba9737.tar.gz ivy-java-c9dbee9c2fb98a3ca467ac82a97a9d6f3dba9737.tar.bz2 ivy-java-c9dbee9c2fb98a3ca467ac82a97a9d6f3dba9737.tar.xz |
voir chaque fichier pour les modifs.
Je rajoute les servlets dans la base, j'essayerai de fabriquer un ant file
pour les construire
Diffstat (limited to 'src/IvyClient.java')
-rwxr-xr-x | src/IvyClient.java | 26 |
1 files changed, 4 insertions, 22 deletions
diff --git a/src/IvyClient.java b/src/IvyClient.java index 2c9b9ce..85edfc8 100755 --- a/src/IvyClient.java +++ b/src/IvyClient.java @@ -234,26 +234,6 @@ public class IvyClient implements Runnable { sendString(Die,0,message); } - /** - * checks the "validity" of a regular expression. - * @param exp the string being a regular expression - * @return true if the regexp is valid - * @since 1.2.4 - */ - public boolean CheckRegexp( String exp ) { - return true; - /* - boolean ok = true; - if ( exp.startsWith( "^" )&&messages_classes!=null) { - ok=false; - for (int i=0 ; i < messages_classes.length;i++) { - if (messages_classes[i].equals(exp.substring(1))) return true; - } - } - return ok; - */ - } - /////////////////////////////////////////////////// // // PROTECTED METHODS @@ -493,7 +473,7 @@ public class IvyClient implements Runnable { break; case AddRegexp: String regexp=s.substring(from,b.length); - if ( CheckRegexp(regexp) ) { + if ( bus.CheckRegexp(regexp) ) { try { regexps.put(msgId,new RE(regexp)); regexpsText.put(msgId,regexp); @@ -504,7 +484,9 @@ public class IvyClient implements Runnable { sendBuffer(Error+e.toString()); } } else { - throw new IvyException("regexp Warning exp='"+regexp+"' can't match removing from "+appName); + // throw new IvyException("regexp Warning exp='"+regexp+"' can't match removing from "+appName); + traceDebug("Warning "+appName+" subscribes to '"+regexp+"', it can't match our message filter"); + bus.regexpReceived(this,msgId.intValue(),regexp); } break; case DelRegexp: |