org.wso2.registry.jdbc.urlhandlers
Class URLHandler
java.lang.Object
org.wso2.registry.jdbc.urlhandlers.URLHandler
- Direct Known Subclasses:
- CommentCollectionURLHandler, CommentURLHandler, RatingsCollectionURLHandler, 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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
connectionFactory
protected ConnectionFactory connectionFactory
URLHandler
public URLHandler(ConnectionFactory connectionFactory)
handleURL
public abstract boolean handleURL(java.lang.String url,
Resource resource)
throws RegistryException
- Throws:
RegistryException
Copyright © 2007 Apache Web Services Project. All Rights Reserved.