KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > soto > state > cocoon > standalone > CocoonResourceHandler


1 package org.sapia.soto.state.cocoon.standalone;
2
3 import org.sapia.soto.util.FileResourceHandler;
4 import org.sapia.soto.util.Utils;
5
6 /**
7  * @author Yanick Duchesne
8  *
9  * <dl>
10  * <dt><b>Copyright:</b><dd>Copyright &#169; 2002-2004 <a HREF="http://www.sapia-oss.org">Sapia Open Source Software</a>. All Rights Reserved.</dd></dt>
11  * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the
12  * <a HREF="http://www.sapia-oss.org/license.html">license page</a> at the Sapia OSS web site</dd></dt>
13  * </dl>
14  */

15 public class CocoonResourceHandler extends FileResourceHandler{
16     
17     /**
18    * @see org.sapia.soto.util.FileResourceHandler#accepts(java.lang.String)
19    */

20   public boolean accepts(String JavaDoc uri) {
21     String JavaDoc scheme = Utils.getScheme(uri);
22     return scheme != null && scheme.length() != 0 && scheme.equals("cocoon");
23   }
24
25
26 }
27
Popular Tags