org.wso2.registry.jdbc.urlhandlers
Class URLHandler

java.lang.Object
  extended by org.wso2.registry.jdbc.urlhandlers.URLHandler
Direct Known Subclasses:
CommentCollectionURLHandler, CommentURLHandler, RatingsCollectionURLHandler, RatingURLHandler, TagURLHandler

public abstract class URLHandler
extends java.lang.Object

Base class for URL handlers. URL handlers are used support virtual resources. JDBC registry allows users to access some none-resource entities in the same way they access normal resources (e.g. comments, tags, ratings). These entities can be accessed by providing a special URL to identify the virtual resource. For example tags for the resource at path /projects/mybank/design can be accessed by the URL /projects/mybank/design?tags. URL handlers are used to support that behavior. That is, we can register URL handlers to handle each type of virtual resource. Then those URL handlers are responsible for interpreting the special URL and generating the virtual resource referred by that URL.


Field Summary
protected  ConnectionFactory connectionFactory
           
 
Constructor Summary
URLHandler(ConnectionFactory connectionFactory)
           
 
Method Summary
abstract  boolean handleURL(java.lang.String url, Resource resource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connectionFactory

protected ConnectionFactory connectionFactory
Constructor Detail

URLHandler

public URLHandler(ConnectionFactory connectionFactory)
Method Detail

handleURL

public abstract boolean handleURL(java.lang.String url,
                                  Resource resource)
                           throws RegistryException
Throws:
RegistryException


Copyright © 2007 Apache Web Services Project. All Rights Reserved.