Update of /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper2/protocols
In directory sc8-pr-cvs1:/tmp/cvs-serv15892/src/java/core/org/krysalis/ruper2/protocols
Modified Files:
ProtocolOperationsManager.java
DefaultProtocolOperationsManager.java
Log Message:
1) Added the GumpTool [need to make it generic some time]
2) Forced VFSProvider to load VFS classes during construction, so we know early if they are missing & try soemthing else.
3) Started a VRLProtocol selector, so we can ignore links we cannot download.
Index: ProtocolOperationsManager.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper2/protocols/ProtocolOperationsManager.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** ProtocolOperationsManager.java 30 Oct 2003 05:15:53 -0000 1.9
--- ProtocolOperationsManager.java 22 Nov 2003 00:16:16 -0000 1.10
***************
*** 10,13 ****
--- 10,14 ----
import java.util.List;
import java.util.Map;
+ import java.util.Set;
import org.krysalis.ruper2.RuperException;
***************
*** 68,71 ****
--- 69,79 ----
}
+ public Set getSupportedSourceProtocols() {
+ return m_sourceProtocolMap.keySet();
+ }
+ public Set getSupportedDestinationProtocols() {
+ return m_destinationProtocolMap.keySet();
+ }
+
private void registerIntoMap(
Map map,
***************
*** 152,156 ****
Logger.getLogger().info("Perform DELETE " + locator);
! determineProviderFor(locator).delete(locator,selector);
}
--- 160,164 ----
Logger.getLogger().info("Perform DELETE " + locator);
! determineProviderFor(locator).delete(locator, selector);
}
***************
*** 238,242 ****
}
! private List processProviderList(ISelector selector) throws RuperException {
List listOfProviders = null;
--- 246,251 ----
}
! private List processProviderList(ISelector selector)
! throws RuperException {
List listOfProviders = null;
Index: DefaultProtocolOperationsManager.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper2/protocols/DefaultProtocolOperationsManager.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** DefaultProtocolOperationsManager.java 22 Oct 2003 02:14:06 -0000 1.6
--- DefaultProtocolOperationsManager.java 22 Nov 2003 00:16:16 -0000 1.7
***************
*** 6,11 ****
import org.krysalis.ruper2.RuperRuntimeException;
import org.krysalis.ruper2.impl.ResourceUpdaterContext;
- import org.krysalis.ruper2.protocols.impl.HttpClientProtocolOperationsProvider;
import org.krysalis.version.util.debug.DebugUtils;
/**
--- 6,11 ----
import org.krysalis.ruper2.RuperRuntimeException;
import org.krysalis.ruper2.impl.ResourceUpdaterContext;
import org.krysalis.version.util.debug.DebugUtils;
+ import org.krysalis.version.util.envsafe.ClassLoaderContext;
/**
***************
*** 29,39 ****
//
! // Shoot for VFS, but fallback to basic URL
//
try {
! IProtocolOperationsProvider provider = new HttpClientProtocolOperationsProvider();
! /*(IProtocolOperationsProvider) RelativelySafe.attemptLoad(
! //VFS_PROVIDER,
! HTTP_CLIENT_PROVIDER, URL_PROVIDER);*/
registerProvider(provider);
--- 29,42 ----
//
! // Shoot for VFS, but fallback to HttpClient or basic URL
//
try {
! ClassLoaderContext loader = new ClassLoaderContext(context);
!
! IProtocolOperationsProvider provider =
! (IProtocolOperationsProvider) loader.loadClassWithFallbacks(
! VFS_PROVIDER,
! HTTP_CLIENT_PROVIDER,
! URL_PROVIDER);
registerProvider(provider);
-------------------------------------------------------
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.