ruper2/src/java/core/org/krysalis/ruper2/util/net VirtualResourceLocator.java,1.6,1.7

[email protected]
Newsgroups gmane.comp.krysalis.metamorphosis.cvs
Message-ID <[email protected]>
Update of /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper2/util/net
In directory sc8-pr-cvs1:/tmp/cvs-serv11152/src/java/core/org/krysalis/ruper2/util/net

Modified Files:
	VirtualResourceLocator.java 
Log Message:
Leverage selectors for performList, to make it much more powerful.

Index: VirtualResourceLocator.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper2/util/net/VirtualResourceLocator.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** VirtualResourceLocator.java	14 Oct 2003 20:48:07 -0000	1.6
--- VirtualResourceLocator.java	30 Oct 2003 05:15:53 -0000	1.7
***************
*** 44,49 ****
  
  	public VirtualResourceLocator(VirtualResourceLocator context, String url) {
! 		// :TODO: Basic right now, just concatenates
! 		parseString(context + (context.isDirectory() ? "" : "/") + url);
  	}
  
--- 44,57 ----
  
  	public VirtualResourceLocator(VirtualResourceLocator context, String url) {
! 
! 		if (-1 != url.indexOf(":")) {
! 			// Absolute URL
! 			parseString(url);
! 		}
! 		else {
! 			// :TODO: Basic right now, just concatenates,
! 			// no # processing
! 			parseString(context + (context.isDirectory() ? "" : "/") + url);
! 		}
  	}
  




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
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.