public class OperationStatisticsHandler extends Handler
| Constructor and Description |
|---|
OperationStatisticsHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAssociation(RequestContext requestContext)
Gets called when an Association is added.
|
String |
copy(RequestContext requestContext)
Copy a resource in the registry.
|
void |
delete(RequestContext requestContext)
Processes the DELETE action of the media type.
|
void |
dump(RequestContext requestContext)
Gets called when dumping an path
|
void |
dumpLite(RequestContext requestContext)
Gets called when dumping an path from registry depsync
|
Collection |
executeQuery(RequestContext requestContext)
Gets called when executing Queries.
|
Resource |
get(RequestContext requestContext)
Processes the GET action for resource path of the requestContext.
|
Association[] |
getAllAssociations(RequestContext requestContext)
Gets called when getting all Associations.
|
Association[] |
getAssociations(RequestContext requestContext)
Gets called when getting Associations of given 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 |
removeAssociation(RequestContext requestContext)
Gets called when an Association is removed.
|
String |
rename(RequestContext requestContext)
Rename a resource in the registry.
|
boolean |
resourceExists(RequestContext requestContext)
Gets called when searching for existence of resource.
|
void |
restore(RequestContext requestContext)
Gets called when restoring a path
|
addComment, applyTag, createLink, createVersion, editComment, equals, getAverageRating, getComments, getRating, getRegistryContext, getResourcePathsWithTag, getTags, getVersions, hashCode, importChild, invokeAspect, putChild, rateResource, removeComment, removeLink, removeTag, restoreVersion, searchContentpublic Resource get(RequestContext requestContext) throws RegistryException
Handlerget in class HandlerrequestContext - 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.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 errorpublic 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 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 addAssociation(RequestContext requestContext) throws RegistryException
HandleraddAssociation in class HandlerrequestContext - Information about the current request. requestContext.sourcePath:
Source/Current Path requestContext.targetPath: Destination/New Path
requestContext.associationType: Type of AssociationRegistryException - If the media type handler is supposed to handle the addAssociation
on the media type and if the addAssociation fails due a handler
specific errorpublic void removeAssociation(RequestContext requestContext) throws RegistryException
HandlerremoveAssociation in class HandlerrequestContext - Information about the current request. requestContext.sourcePath:
Source/Current Path requestContext.targetPath: Destination/New Path
requestContext.associationType: Type of AssociationRegistryException - If the media type handler is supposed to handle the
removeAssociation on the media type and if the removeAssociation
fails due a handler specific errorpublic Association[] getAllAssociations(RequestContext requestContext) throws RegistryException
HandlergetAllAssociations in class HandlerrequestContext - Information about the current request. requestContext.resourcePath:
Path of ResourceRegistryException - If the media type handler is supposed to handle the
getAllAssociations on the media type and if the getAllAssociations
fails due a handler specific errorpublic Association[] getAssociations(RequestContext requestContext) throws RegistryException
HandlergetAssociations in class HandlerrequestContext - Information about the current request. requestContext.resourcePath:
Path of Resource requestContext.associationType: Type of AssociationRegistryException - If the media type handler is supposed to handle the getAssociations
on the media type and if the getAssociations fails due a handler
specific errorpublic Collection executeQuery(RequestContext requestContext) throws RegistryException
HandlerexecuteQuery in class HandlerrequestContext - Information about the current request. requestContext.resourcePath:
Path of Resource requestContext.queryParameters: Map of query
parameters.RegistryException - If the media type handler is supposed to handle the executeQuery on
the media type and if the executeQuery fails due a handler specific
errorpublic boolean resourceExists(RequestContext requestContext) throws RegistryException
HandlerresourceExists in class HandlerrequestContext - Information about the current request.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 dump(RequestContext requestContext) throws RegistryException
Handlerdump 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 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 dumpLite(RequestContext requestContext) throws RegistryException
HandlerdumpLite 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 errorCopyright © 2015 WSO2 Inc. All Rights Reserved.