org.wso2.registry.jdbc.urlhandlers
Class CommentURLHandler

java.lang.Object
  extended by org.wso2.registry.jdbc.urlhandlers.URLHandler
      extended by org.wso2.registry.jdbc.urlhandlers.CommentURLHandler

public class CommentURLHandler
extends URLHandler


Field Summary
 
Fields inherited from class org.wso2.registry.jdbc.urlhandlers.URLHandler
dataSource, realm
 
Constructor Summary
CommentURLHandler(javax.sql.DataSource dataSource, org.wso2.usermanager.Realm realm)
           
 
Method Summary
 boolean delete(java.lang.String path)
          Determine if delete(...) on the given url can be handled.
 Resource get(java.lang.String url)
          Accepts URL in the form ;comments:
 
Methods inherited from class org.wso2.registry.jdbc.urlhandlers.URLHandler
put
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommentURLHandler

public CommentURLHandler(javax.sql.DataSource dataSource,
                         org.wso2.usermanager.Realm realm)
Method Detail

get

public Resource get(java.lang.String url)
             throws RegistryException
Accepts URL in the form ;comments:

Overrides:
get in class URLHandler
Parameters:
url - URL to process
Returns:
Resource instance if the URL can be processed. Null if the request cannot be processed.
Throws:
RegistryException

delete

public boolean delete(java.lang.String path)
               throws RegistryException
Description copied from class: URLHandler
Determine if delete(...) on the given url can be handled. If yes, process the request and delete the resulting resource. Further processing of the resource is terminated if true is returned. If the given url cannot be handled return false, which causes other url handlers to process the request, or the request to be reached the media type handlers.

Overrides:
delete in class URLHandler
Parameters:
path - Path of the resource to be deleted.
Returns:
true if the URL handler impl processes the delete request. false if it does not process the delete request.
Throws:
RegistryException - URL handler implementations should handle all exceptions and throw RegistryException if the exception has to propagated to the client.


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