You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by we...@apache.org on 2005/11/28 20:31:47 UTC

svn commit: r349467 - in /portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/decoration/validators: ClasspathResourceValidator.java WebApplicationResourceValidator.java

Author: weaver
Date: Mon Nov 28 11:31:45 2005
New Revision: 349467

URL: http://svn.apache.org/viewcvs?rev=349467&view=rev
Log:
Documentation added.

Modified:
    portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/decoration/validators/ClasspathResourceValidator.java
    portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/decoration/validators/WebApplicationResourceValidator.java

Modified: portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/decoration/validators/ClasspathResourceValidator.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/decoration/validators/ClasspathResourceValidator.java?rev=349467&r1=349466&r2=349467&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/decoration/validators/ClasspathResourceValidator.java (original)
+++ portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/decoration/validators/ClasspathResourceValidator.java Mon Nov 28 11:31:45 2005
@@ -1,7 +1,29 @@
+/*
+ * Copyright 2000-2001,2004 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
 package org.apache.jetspeed.decoration.validators;
 
 import org.apache.jetspeed.decoration.ResourceValidator;
 
+/**
+ * This implementation uses <code>ClassLoader.getResource()</code> to
+ * validate the existence of a resource.
+ * 
+ * @author <href a="mailto:weaver@apache.org">Scott T. Weaver</a>
+ *
+ */
 public class ClasspathResourceValidator implements ResourceValidator
 {
     private ClassLoader classLoader;

Modified: portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/decoration/validators/WebApplicationResourceValidator.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/decoration/validators/WebApplicationResourceValidator.java?rev=349467&r1=349466&r2=349467&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/decoration/validators/WebApplicationResourceValidator.java (original)
+++ portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/decoration/validators/WebApplicationResourceValidator.java Mon Nov 28 11:31:45 2005
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2000-2001,2004 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
 package org.apache.jetspeed.decoration.validators;
 
 import java.net.MalformedURLException;
@@ -6,6 +21,13 @@
 
 import org.apache.jetspeed.decoration.ResourceValidator;
 
+/**
+ * This implementation uses <code>ServletContext.getResource()</code>
+ * to verify the existence of a resource.
+ * 
+ * @author <href a="mailto:weaver@apache.org">Scott T. Weaver</a>
+ *
+ */
 public class WebApplicationResourceValidator implements ResourceValidator
 {
     private final ServletContext servletContext;



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org