pnever 02/05/14 04:35:20
Modified: src/share/org/apache/slide slide.properties
src/share/org/apache/slide/util Configuration.java
Log:
- Added new prop org.apache.slide.uriRedirectorClass
- Renamed prop org.apache.slide.standardLiveProperties to
org.apache.slide.standardLivePropertiesClass
Revision Changes Path
1.6 +7 -1 jakarta-slide/src/share/org/apache/slide/slide.properties
Index: slide.properties
===================================================================
RCS file: /home/cvs/jakarta-slide/src/share/org/apache/slide/slide.properties,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- slide.properties 8 May 2002 15:59:33 -0000 1.5
+++ slide.properties 14 May 2002 11:35:19 -0000 1.6
@@ -30,7 +30,13 @@
# - Set getAllProtectedProperties()
# - Set getAllComputedProperties()
# Default: org.apache.slide.webdav.util.resourcekind.AbstractResourceKind
-org.apache.slide.standardLiveProperties=org.apache.slide.webdav.util.resourcekind.AbstractResourceKind
+org.apache.slide.standardLivePropertiesClass=org.apache.slide.webdav.util.resourcekind.AbstractResourceKind
+
+# URI redirector. Must be a class containing public static methods:
+# - String redirectUri( NamespaceAccessToken nsaToken, String uri )
+# - NodeRevisionNumber redirectLatestRevisionNumber( NamespaceAccessToken nsaToken,
String uri )
+# Default: org.apache.slide.webdav.util.DeltavUriRedirector
+org.apache.slide.uriRedirectorClass=org.apache.slide.webdav.util.DeltavUriRedirector
# Debug
# Default: false
1.11 +46 -11 jakarta-slide/src/share/org/apache/slide/util/Configuration.java
Index: Configuration.java
===================================================================
RCS file:
/home/cvs/jakarta-slide/src/share/org/apache/slide/util/Configuration.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- Configuration.java 8 May 2002 15:59:50 -0000 1.10
+++ Configuration.java 14 May 2002 11:35:19 -0000 1.11
@@ -1,7 +1,7 @@
/*
- * $Header:
/home/cvs/jakarta-slide/src/share/org/apache/slide/util/Configuration.java,v 1.10
2002/05/08 15:59:50 pnever Exp $
- * $Revision: 1.10 $
- * $Date: 2002/05/08 15:59:50 $
+ * $Header:
/home/cvs/jakarta-slide/src/share/org/apache/slide/util/Configuration.java,v 1.11
2002/05/14 11:35:19 pnever Exp $
+ * $Revision: 1.11 $
+ * $Date: 2002/05/14 11:35:19 $
*
* ====================================================================
*
@@ -92,7 +92,7 @@
* @author <a href="mailto:[EMAIL PROTECTED]">Keith Visco</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Assaf Arkin</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Remy Maucherat</a>
- * @version $Revision: 1.10 $ $Date: 2002/05/08 15:59:50 $
+ * @version $Revision: 1.11 $ $Date: 2002/05/14 11:35:19 $
*/
public abstract class Configuration {
@@ -166,10 +166,22 @@
* - Set getAllProtectedProperties()
* - Set getAllComputedProperties()
* <pre>
- * org.apache.slide.standardLiveProperties
+ * org.apache.slide.standardLivePropertiesClass
* </pre>
*/
- public static final String StandardLiveProperties =
"org.apache.slide.standardLiveProperties";
+ public static final String StandardLivePropertiesClass =
"org.apache.slide.standardLivePropertiesClass";
+
+
+ /**
+ * Property specifying the URI redirector.
+ * It should be a loadable class containing the following static methods:
+ * - String redirectUri( NamespaceAccessToken nsaToken, String uri )
+ * - NodeRevisionNumber redirectLatestRevisionNumber( NamespaceAccessToken
nsaToken, String uri )
+ * <pre>
+ * org.apache.slide.uriRedirectorClass
+ * </pre>
+ */
+ public static final String UriRedirectorClass =
"org.apache.slide.uriRedirectorClass";
/**
@@ -247,7 +259,13 @@
/**
* The "agent" knowing about standard live properties.
*/
- private static Class _standardLiveProperties;
+ private static Class _standardLivePropertiesClass;
+
+
+ /**
+ * The URI redirector.
+ */
+ private static Class _uriRedirectorClass;
/**
@@ -302,8 +320,16 @@
/**
* Returns "agent" knowing about standard live properties.
*/
- public static Class standardLiveProperties() {
- return _standardLiveProperties;
+ public static Class standardLivePropertiesClass() {
+ return _standardLivePropertiesClass;
+ }
+
+
+ /**
+ * Returns URI redirector class.
+ */
+ public static Class uriRedirectorClass() {
+ return _uriRedirectorClass;
}
@@ -432,12 +458,21 @@
}
prop = _default.getProperty(
- Property.StandardLiveProperties,
"org.apache.slide.webdav.util.resourcekind.AbstractResourceKind");
+ Property.StandardLivePropertiesClass,
"org.apache.slide.webdav.util.resourcekind.AbstractResourceKind");
try {
- _standardLiveProperties = Class.forName( prop );
+ _standardLivePropertiesClass = Class.forName( prop );
}
catch( ClassNotFoundException x ) {
Domain.warn( "Class "+prop+" for standard live property definitions not
found" );
+ }
+
+ prop = _default.getProperty(
+ Property.UriRedirectorClass,
"org.apache.slide.webdav.util.DeltavUriRedirector");
+ try {
+ _uriRedirectorClass = Class.forName( prop );
+ }
+ catch( ClassNotFoundException x ) {
+ Domain.warn( "Class "+prop+" for URI redirection not found" );
}
String defaultEncoding = new
java.io.InputStreamReader(System.in).getEncoding();
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>