public class CachingHandler extends Handler
| Constructor and Description |
|---|
CachingHandler()
Default Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
copy(RequestContext requestContext)
Copy a resource in the registry.
|
void |
createLink(RequestContext requestContext)
Create a symbolic link or mount a registry.
|
void |
delete(RequestContext requestContext)
Processes the DELETE action of the media type.
|
void |
importResource(RequestContext requestContext)
Creates a resource in the given path by fetching the resource content from the given URL.
|
String |
move(RequestContext requestContext)
Move a resource in the registry.
|
void |
put(RequestContext requestContext)
Processes the PUT action.
|
void |
removeLink(RequestContext requestContext)
Remove a symbolic link or un-mount a registry.
|
String |
rename(RequestContext requestContext)
Rename a resource in the registry.
|
void |
restore(RequestContext requestContext)
Gets called when restoring a path
|
void |
restoreVersion(RequestContext requestContext)
Gets called when restoring a version.
|
addAssociation, addComment, applyTag, createVersion, dump, dumpLite, editComment, equals, executeQuery, get, getAllAssociations, getAssociations, getAverageRating, getComments, getRating, getRegistryContext, getResourcePathsWithTag, getTags, getVersions, hashCode, importChild, invokeAspect, putChild, rateResource, removeAssociation, removeComment, removeTag, resourceExists, searchContentpublic void put(RequestContext requestContext) throws RegistryException
Handlerput in class HandlerrequestContext - Information about the current request.
requestContext.resourcePath: Path to put the resource.
requestContext.resource: Resource to putRegistryException - If the media type handler is supposed to handle the put on the
media type and if the put fails due a handler specific errorpublic void importResource(RequestContext requestContext) throws RegistryException
HandlerimportResource in class HandlerrequestContext - Information about the current request.
requestContext.resourcePath: Path to add the new resource.
requestContext.sourceURL: URL to fetch the resource content
requestContext.resource: Resource instance containing the meta data for
the resource to be imported. Once import is done, new resource is
created combining the meta data of this meta data object and the
imported content.RegistryException - If the media type handler is supposed to handle the import on the
media type and if the import fails due a handler specific errorpublic String move(RequestContext requestContext) throws RegistryException
Handlermove in class HandlerrequestContext - Information about the current request.
requestContext.sourcePath: Source/Current Path
requestContext.targetPath: Destination/New PathRegistryException - if something went wrongpublic String copy(RequestContext requestContext) throws RegistryException
Handlercopy in class HandlerrequestContext - Information about the current request.
requestContext.sourcePath: Source/Current Path
requestContext.targetPath: Destination/New PathRegistryException - if something went wrongpublic String rename(RequestContext requestContext) throws RegistryException
Handlerrename in class HandlerrequestContext - Information about the current request.
requestContext.sourcePath: Source/Current Path
requestContext.targetPath: Destination/New PathRegistryException - if something went wrongpublic void createLink(RequestContext requestContext) throws RegistryException
HandlercreateLink in class HandlerrequestContext - Information about the current request.
requestContext.targetPath: Destination/New PathRegistryException - if something went wrongpublic void removeLink(RequestContext requestContext) throws RegistryException
HandlerremoveLink in class HandlerrequestContext - Information about the current request.RegistryException - if something went wrongpublic void delete(RequestContext requestContext) throws RegistryException
Handlerdelete in class HandlerrequestContext - Information about the current request.
requestContext.resourcePath: path of the resource to be deleted.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 errorpublic void restore(RequestContext requestContext) throws RegistryException
Handlerrestore in class HandlerrequestContext - Information about the current request. requestContext.keywords: Search
keywords.RegistryException - If the media type handler is supposed to handle the resourceExists
on the media type and if the resourceExists fails due a handler
specific errorpublic void restoreVersion(RequestContext requestContext) throws RegistryException
HandlerrestoreVersion in class HandlerrequestContext - Information about the current request. requestContext.versionPath: Path
of Resource with version This can be used to derive the path of the
resource as well.RegistryException - If the media type handler is supposed to handle the restoreVersion
on the media type and if the restoreVersion fails due a handler
specific errorCopyright © 2015 WSO2 Inc. All Rights Reserved.