org.wso2.carbon.registry.core.jdbc.handlers.builtin
Class CommentURLHandler
java.lang.Object
org.wso2.carbon.registry.core.jdbc.handlers.Handler
org.wso2.carbon.registry.core.jdbc.handlers.builtin.CommentURLHandler
public class CommentURLHandler
- extends Handler
Handles paths of the form pure resource path;comments:comment ID e.g.
/projects/ids/config.xml;comments:2
Methods inherited from class org.wso2.carbon.registry.core.jdbc.handlers.Handler |
addAssociation, addComment, applyTag, copy, createLink, createVersion, dump, editComment, equals, executeQuery, getAllAssociations, getAssociations, getAverageRating, getComments, getRating, getRegistryContext, getResourcePathsWithTag, getTags, getVersions, hashCode, importChild, importResource, invokeAspect, move, put, putChild, rateResource, removeAssociation, removeComment, removeLink, removeTag, rename, resourceExists, restore, restoreVersion, searchContent |
CommentURLHandler
public CommentURLHandler()
get
public Resource get(RequestContext requestContext)
throws RegistryException
- Description copied from class:
Handler
- Processes the GET action for resource path of the requestContext.
- Overrides:
get
in class Handler
- Parameters:
requestContext
- Information about the current request.
requestContext.resourcePath: Path of the resource
requestContext.resource: Resource at the given path. This can be null
if no other handler has retrieved that resource so far. If it contains
a value, matching handlers are free to do any change to the resource,
even they can replace the resource with completely new instance.
- Returns:
- Resource instance if the handler processed the GET action successfully.
- Throws:
RegistryException
- If the media type handler is supposed to handle the get on the media type and if the
get fails due a handler specific error
delete
public void delete(RequestContext requestContext)
throws RegistryException
- Description copied from class:
Handler
- Processes the DELETE action of the media type.
- Overrides:
delete
in class Handler
- Parameters:
requestContext
- Information about the current request.
requestContext.resourcePath: path of the resource to be deleted.
- Throws:
RegistryException
- If the media type handler is supposed to handle the delete on the
media type and if the delete fails due a handler specific error
Copyright © 2011 WSO2 Inc. All Rights Reserved.