openamf/src/java/org/openamf AMFBody.java,1.6,1.7

[email protected]
Newsgroups gmane.comp.java.openamf.cvs
Message-ID <[email protected]>
Update of /cvsroot/openamf/openamf/src/java/org/openamf
In directory sc8-pr-cvs1:/tmp/cvs-serv10140/src/java/org/openamf

Modified Files:
	AMFBody.java 
Log Message:
corrected setTarget to update serviceName and serviceMethodName protected fileds

Index: AMFBody.java
===================================================================
RCS file: /cvsroot/openamf/openamf/src/java/org/openamf/AMFBody.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** AMFBody.java	18 Apr 2003 01:09:32 -0000	1.6
--- AMFBody.java	6 Jun 2003 10:38:13 -0000	1.7
***************
*** 48,51 ****
--- 48,56 ----
  	public void setTarget(String target) {
  		this.target = target;
+ 		int dotIndex = target.lastIndexOf('.');
+ 		if (dotIndex > 0) {
+ 			this.serviceName = target.substring(0, dotIndex);
+ 			this.serviceMethodName = target.substring(dotIndex + 1);
+ 		}
  	}
  	




-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.