org.wso2.carbon.registry.core.jdbc.handlers
Class UserDefinedHandlerManager

java.lang.Object
  extended by org.wso2.carbon.registry.core.jdbc.handlers.HandlerManager
      extended by org.wso2.carbon.registry.core.jdbc.handlers.UserDefinedHandlerManager

public class UserDefinedHandlerManager
extends HandlerManager

This class is designed to manage user-defined handlers.


Constructor Summary
UserDefinedHandlerManager()
           
 
Method Summary
 void addAssociation(RequestContext requestContext)
          Manages the handler invocations of ADD_ASSOCIATION method.
 String addComment(RequestContext requestContext)
          Manages the handler invocations of ADD_COMMENT method.
 void addHandler(String[] methods, Filter filter, Handler handler)
          Registers handlers with the handler manager.
 void addHandler(String[] methods, Filter filter, Handler handler, String lifecyclePhase)
          Registers handlers belonging to the given lifecycle phase with the handler manager.
 void addHandlerWithPriority(String[] methods, Filter filter, Handler handler)
          This is to add a handler that invokes with the high priority, it becomes the first in the list until another handler with this method is added.
 void addHandlerWithPriority(String[] methods, Filter filter, Handler handler, String lifecyclePhase)
          This is to add a handler belonging to the given lifecycle phase that invokes with the high priority, it becomes the first in the list until another handler with this method is added.
 void applyTag(RequestContext requestContext)
          Manages the handler invocations of APPLY_TAG method.
 String copy(RequestContext requestContext)
          Manages the handler invocations of COPY method.
 void createLink(RequestContext requestContext)
          Manages the handler invocations of CREATE_LINK method.
 void createVersion(RequestContext requestContext)
          Manages the handler invocations of CREATE_VERSION method.
 void delete(RequestContext requestContext)
          Manages the handler invocations of DELETE method.
 org.apache.axiom.om.OMElement dump(RequestContext requestContext)
          Manages the handler invocations of DUMP method.
 void editComment(RequestContext requestContext)
          Manages the handler invocations of REMOVE_COMMENT method.
 Collection executeQuery(RequestContext requestContext)
          Manages the handler invocations of EXECUTE_QUERY method.
 Resource get(RequestContext requestContext)
          Manages the handler invocations of GET method.
 Association[] getAllAssociations(RequestContext requestContext)
          Manages the handler invocations of GET_ALL_ASSOCIATIONS method.
 Association[] getAssociations(RequestContext requestContext)
          Manages the handler invocations of GET_ASSOCIATIONS method.
 float getAverageRating(RequestContext requestContext)
          Manages the handler invocations of GET_AVERAGE_RATING method.
 Comment[] getComments(RequestContext requestContext)
          Manages the handler invocations of GET_COMMENTS method.
 int getRating(RequestContext requestContext)
          Manages the handler invocations of GET_RATING method.
 RegistryContext getRegistryContext(RequestContext requestContext)
          Manages the handler invocations of GET_REGISTRY_CONTEXT method.
 TaggedResourcePath[] getResourcePathsWithTag(RequestContext requestContext)
          Manages the handler invocations of GET_RESOURCE_PATHS_WITH_TAG method.
 Tag[] getTags(RequestContext requestContext)
          Manages the handler invocations of GET_TAGS method.
 HandlerManager getUserHandlerManager()
           
 String[] getVersions(RequestContext requestContext)
          Manages the handler invocations of GET_VERSIONS method.
 void importChild(RequestContext requestContext)
          Manages the handler invocations of IMPORT_CHILD method.
 String importResource(RequestContext requestContext)
          Manages the handler invocations of IMPORT method.
 void invokeAspect(RequestContext requestContext)
          Manages the handler invocations of INVOKE_ASPECT method.
 String move(RequestContext requestContext)
          Manages the handler invocations of MOVE method.
 String put(RequestContext requestContext)
          Manages the handler invocations of PUT method.
 void putChild(RequestContext requestContext)
          Manages the handler invocations of PUT_CHILD method.
 void rateResource(RequestContext requestContext)
          Manages the handler invocations of RATE_RESOURCE method.
 void removeAssociation(RequestContext requestContext)
          Manages the handler invocations of REMOVE_ASSOCIATION method.
 void removeComment(RequestContext requestContext)
          Manages the handler invocations of EDIT_COMMENT method.
 void removeHandler(Handler handler)
          remove a handler from all the filters, all the methods
 void removeHandler(Handler handler, String lifecyclePhase)
          remove a handler belonging to the given lifecycle phase from all the filters, all the methods
 void removeHandler(String[] methods, Filter filter, Handler handler)
          Removes handlers with the handler manager.
 void removeHandler(String[] methods, Filter filter, Handler handler, String lifecyclePhase)
          Removes handlers belonging to the given lifecycle phase with the handler manager.
 void removeLink(RequestContext requestContext)
          Manages the handler invocations of REMOVE_LINK method.
 void removeTag(RequestContext requestContext)
          Manages the handler invocations of REMOVE_TAG method.
 String rename(RequestContext requestContext)
          Manages the handler invocations of RENAME method.
 boolean resourceExists(RequestContext requestContext)
          Manages the handler invocations of RESOURCE_EXISTS method.
 void restore(RequestContext requestContext)
          Manages the handler invocations of RESTORE method.
 void restoreVersion(RequestContext requestContext)
          Manages the handler invocations of RESTORE_VERSION method.
 Collection searchContent(RequestContext requestContext)
          Manages the handler invocations of SEARCH_CONTENT method.
 void setEvaluateAllHandlers(boolean evaluateAllHandlers)
           
 
Methods inherited from class org.wso2.carbon.registry.core.jdbc.handlers.HandlerManager
isProcessingComplete
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserDefinedHandlerManager

public UserDefinedHandlerManager()
Method Detail

getUserHandlerManager

public HandlerManager getUserHandlerManager()

addHandler

public void addHandler(String[] methods,
                       Filter filter,
                       Handler handler)
Description copied from class: HandlerManager
Registers handlers with the handler manager. Each handler should be registered with a Filter. If a handler should be engaged only to a subset of allowed methods, those methods can be specified as a string array.

Overrides:
addHandler in class HandlerManager
Parameters:
methods - Methods for which the registered handler should be engaged. Allowed values in the string array are "GET", "PUT", "IMPORT", "DELETE", "PUT_CHILD", "IMPORT_CHILD", "MOVE", "COPY", "RENAME", "CREATE_LINK", "REMOVE_LINK", "ADD_ASSOCIATION", "RESOURCE_EXISTS", "REMOVE_ASSOCIATION", "GET_ASSOCIATIONS", "GET_ALL_ASSOCIATIONS", "APPLY_TAG", "GET_RESOURCE_PATHS_WITH_TAG", "GET_TAGS", "REMOVE_TAG", "ADD_COMMENT", "EDIT_COMMENT", "GET_COMMENTS", "RATE_RESOURCE", "GET_AVERAGE_RATING", "GET_RATING", "CREATE_VERSION", "GET_VERSIONS", "RESTORE_VERSION", "EXECUTE_QUERY", "SEARCH_CONTENT", and "INVOKE_ASPECT". If null is given, handler will be engaged to all methods.
filter - Filter instance associated with the handler.
handler - Handler instance to be registered.

addHandler

public void addHandler(String[] methods,
                       Filter filter,
                       Handler handler,
                       String lifecyclePhase)
Description copied from class: HandlerManager
Registers handlers belonging to the given lifecycle phase with the handler manager. Each handler should be registered with a Filter. If a handler should be engaged only to a subset of allowed methods, those methods can be specified as a string array.

Overrides:
addHandler in class HandlerManager
Parameters:
methods - Methods for which the registered handler should be engaged. Allowed values in the string array are "GET", "PUT", "IMPORT", "DELETE", "PUT_CHILD", "IMPORT_CHILD", "MOVE", "COPY", "RENAME", "CREATE_LINK", "REMOVE_LINK", "ADD_ASSOCIATION", "RESOURCE_EXISTS", "REMOVE_ASSOCIATION", "GET_ASSOCIATIONS", "GET_ALL_ASSOCIATIONS", "APPLY_TAG", "GET_RESOURCE_PATHS_WITH_TAG", "GET_TAGS", "REMOVE_TAG", "ADD_COMMENT", "EDIT_COMMENT", "GET_COMMENTS", "RATE_RESOURCE", "GET_AVERAGE_RATING", "GET_RATING", "CREATE_VERSION", "GET_VERSIONS", "RESTORE_VERSION", "EXECUTE_QUERY", "SEARCH_CONTENT", and "INVOKE_ASPECT". If null is given, handler will be engaged to all methods.
filter - Filter instance associated with the handler.
handler - Handler instance to be registered.
lifecyclePhase - The name of the lifecycle phase.

addHandlerWithPriority

public void addHandlerWithPriority(String[] methods,
                                   Filter filter,
                                   Handler handler)
Description copied from class: HandlerManager
This is to add a handler that invokes with the high priority, it becomes the first in the list until another handler with this method is added.

Overrides:
addHandlerWithPriority in class HandlerManager
Parameters:
methods - Methods for which the registered handler should be engaged. Allowed values in the string array are "GET", "PUT", "IMPORT", "DELETE", "PUT_CHILD", "IMPORT_CHILD", "MOVE", "COPY", "RENAME", "CREATE_LINK", "REMOVE_LINK", "ADD_ASSOCIATION", "RESOURCE_EXISTS", "REMOVE_ASSOCIATION", "GET_ASSOCIATIONS", "GET_ALL_ASSOCIATIONS", "APPLY_TAG", "GET_RESOURCE_PATHS_WITH_TAG", "GET_TAGS", "REMOVE_TAG", "ADD_COMMENT", "EDIT_COMMENT", "GET_COMMENTS", "RATE_RESOURCE", "GET_AVERAGE_RATING", "GET_RATING", "CREATE_VERSION", "GET_VERSIONS", "RESTORE_VERSION", "EXECUTE_QUERY", "SEARCH_CONTENT", and "INVOKE_ASPECT". If null is given, handler will be engaged to all methods.
filter - Filter instance associated with the handler.
handler - Handler instance to be registered.

addHandlerWithPriority

public void addHandlerWithPriority(String[] methods,
                                   Filter filter,
                                   Handler handler,
                                   String lifecyclePhase)
Description copied from class: HandlerManager
This is to add a handler belonging to the given lifecycle phase that invokes with the high priority, it becomes the first in the list until another handler with this method is added.

Overrides:
addHandlerWithPriority in class HandlerManager
Parameters:
methods - Methods for which the registered handler should be engaged. Allowed values in the string array are "GET", "PUT", "IMPORT", "DELETE", "PUT_CHILD", "IMPORT_CHILD", "MOVE", "COPY", "RENAME", "CREATE_LINK", "REMOVE_LINK", "ADD_ASSOCIATION", "RESOURCE_EXISTS", "REMOVE_ASSOCIATION", "GET_ASSOCIATIONS", "GET_ALL_ASSOCIATIONS", "APPLY_TAG", "GET_RESOURCE_PATHS_WITH_TAG", "GET_TAGS", "REMOVE_TAG", "ADD_COMMENT", "EDIT_COMMENT", "GET_COMMENTS", "RATE_RESOURCE", "GET_AVERAGE_RATING", "GET_RATING", "CREATE_VERSION", "GET_VERSIONS", "RESTORE_VERSION", "EXECUTE_QUERY", "SEARCH_CONTENT", and "INVOKE_ASPECT". If null is given, handler will be engaged to all methods.
filter - Filter instance associated with the handler.
handler - Handler instance to be registered.
lifecyclePhase - The name of the lifecycle phase.

removeHandler

public void removeHandler(Handler handler)
Description copied from class: HandlerManager
remove a handler from all the filters, all the methods

Overrides:
removeHandler in class HandlerManager
Parameters:
handler - the handler to remove

removeHandler

public void removeHandler(Handler handler,
                          String lifecyclePhase)
Description copied from class: HandlerManager
remove a handler belonging to the given lifecycle phase from all the filters, all the methods

Overrides:
removeHandler in class HandlerManager
Parameters:
handler - the handler to remove.
lifecyclePhase - The name of the lifecycle phase.

removeHandler

public void removeHandler(String[] methods,
                          Filter filter,
                          Handler handler)
Description copied from class: HandlerManager
Removes handlers with the handler manager. Each handler should be registered with a Filter. If a handler should be disengaged only for a subset of allowed methods, those methods can be specified as a string array.

Overrides:
removeHandler in class HandlerManager
Parameters:
methods - Methods for which the registered handler should be disengaged. Allowed values in the string array are "GET", "PUT", "IMPORT", "DELETE", "PUT_CHILD", "IMPORT_CHILD", "MOVE", "COPY", "RENAME", "CREATE_LINK", "REMOVE_LINK", "ADD_ASSOCIATION", "RESOURCE_EXISTS", "REMOVE_ASSOCIATION", "GET_ASSOCIATIONS", "GET_ALL_ASSOCIATIONS", "APPLY_TAG", "GET_RESOURCE_PATHS_WITH_TAG", "GET_TAGS", "REMOVE_TAG", "ADD_COMMENT", "EDIT_COMMENT", "GET_COMMENTS", "RATE_RESOURCE", "GET_AVERAGE_RATING", "GET_RATING", "CREATE_VERSION", "GET_VERSIONS", "RESTORE_VERSION", "EXECUTE_QUERY", "SEARCH_CONTENT", and "INVOKE_ASPECT". If null is given, handler will be disengaged to all methods.
filter - Filter instance associated with the handler. Each filter that you pass in must have the associated handler set to it.
handler - Handler instance to be unregistered.

removeHandler

public void removeHandler(String[] methods,
                          Filter filter,
                          Handler handler,
                          String lifecyclePhase)
Description copied from class: HandlerManager
Removes handlers belonging to the given lifecycle phase with the handler manager. Each handler should be registered with a Filter. If a handler should be disengaged only for a subset of allowed methods, those methods can be specified as a string array.

Overrides:
removeHandler in class HandlerManager
Parameters:
methods - Methods for which the registered handler should be disengaged. Allowed values in the string array are "GET", "PUT", "IMPORT", "DELETE", "PUT_CHILD", "IMPORT_CHILD", "MOVE", "COPY", "RENAME", "CREATE_LINK", "REMOVE_LINK", "ADD_ASSOCIATION", "RESOURCE_EXISTS", "REMOVE_ASSOCIATION", "GET_ASSOCIATIONS", "GET_ALL_ASSOCIATIONS", "APPLY_TAG", "GET_RESOURCE_PATHS_WITH_TAG", "GET_TAGS", "REMOVE_TAG", "ADD_COMMENT", "EDIT_COMMENT", "GET_COMMENTS", "RATE_RESOURCE", "GET_AVERAGE_RATING", "GET_RATING", "CREATE_VERSION", "GET_VERSIONS", "RESTORE_VERSION", "EXECUTE_QUERY", "SEARCH_CONTENT", and "INVOKE_ASPECT". If null is given, handler will be disengaged to all methods.
filter - Filter instance associated with the handler. Each filter that you pass in must have the associated handler set to it.
handler - Handler instance to be unregistered.
lifecyclePhase - The name of the lifecycle phase.

editComment

public void editComment(RequestContext requestContext)
                 throws RegistryException
Description copied from class: HandlerManager
Manages the handler invocations of REMOVE_COMMENT method.

Overrides:
editComment in class HandlerManager
Parameters:
requestContext - Details of the request.
Throws:
RegistryException - This exception is thrown for all exceptions occurred inside handlers or filters.

removeComment

public void removeComment(RequestContext requestContext)
                   throws RegistryException
Description copied from class: HandlerManager
Manages the handler invocations of EDIT_COMMENT method.

Overrides:
removeComment in class HandlerManager
Parameters:
requestContext - Details of the request.
Throws:
RegistryException - This exception is thrown for all exceptions occurred inside handlers or filters.

createVersion

public void createVersion(RequestContext requestContext)
                   throws RegistryException
Description copied from class: HandlerManager
Manages the handler invocations of CREATE_VERSION method.

Overrides:
createVersion in class HandlerManager
Parameters:
requestContext - Details of the request.
Throws:
RegistryException - This exception is thrown for all exceptions occurred inside handlers or filters.

restoreVersion

public void restoreVersion(RequestContext requestContext)
                    throws RegistryException
Description copied from class: HandlerManager
Manages the handler invocations of RESTORE_VERSION method.

Overrides:
restoreVersion in class HandlerManager
Parameters:
requestContext - Details of the request.
Throws:
RegistryException - This exception is thrown for all exceptions occurred inside handlers or filters.

rateResource

public void rateResource(RequestContext requestContext)
                  throws RegistryException
Description copied from class: HandlerManager
Manages the handler invocations of RATE_RESOURCE method.

Overrides:
rateResource in class HandlerManager
Parameters:
requestContext - Details of the request.
Throws:
RegistryException - This exception is thrown for all exceptions occurred inside handlers or filters.

removeTag

public void removeTag(RequestContext requestContext)
               throws RegistryException
Description copied from class: HandlerManager
Manages the handler invocations of REMOVE_TAG method.

Overrides:
removeTag in class HandlerManager
Parameters:
requestContext - Details of the request.
Throws:
RegistryException - This exception is thrown for all exceptions occurred inside handlers or filters.

applyTag

public void applyTag(RequestContext requestContext)
              throws RegistryException
Description copied from class: HandlerManager
Manages the handler invocations of APPLY_TAG method.

Overrides:
applyTag in class HandlerManager
Parameters:
requestContext - Details of the request.
Throws:
RegistryException - This exception is thrown for all exceptions occurred inside handlers or filters.

removeAssociation

public void removeAssociation(RequestContext requestContext)
                       throws RegistryException
Description copied from class: HandlerManager
Manages the handler invocations of REMOVE_ASSOCIATION method.

Overrides:
removeAssociation in class HandlerManager
Parameters:
requestContext - Details of the request.
Throws:
RegistryException - This exception is thrown for all exceptions occurred inside handlers or filters.

addAssociation

public void addAssociation(RequestContext requestContext)
                    throws RegistryException
Description copied from class: HandlerManager
Manages the handler invocations of ADD_ASSOCIATION method.

Overrides:
addAssociation in class HandlerManager
Parameters:
requestContext - Details of the request.
Throws:
RegistryException - This exception is thrown for all exceptions occurred inside handlers or filters.

getAllAssociations

public Association[] getAllAssociations(RequestContext requestContext)
                                 throws RegistryException
Description copied from class: HandlerManager
Manages the handler invocations of GET_ALL_ASSOCIATIONS method.

Overrides:
getAllAssociations in class HandlerManager
Parameters:
requestContext - Details of the request.
Returns:
All associations.
Throws:
RegistryException - This exception is thrown for all exceptions occurred inside handlers or filters.

getAssociations

public Association[] getAssociations(RequestContext requestContext)
                              throws RegistryException
Description copied from class: HandlerManager
Manages the handler invocations of GET_ASSOCIATIONS method.

Overrides:
getAssociations in class HandlerManager
Parameters:
requestContext - Details of the request.
Returns:
Associations of matching type.
Throws:
RegistryException - This exception is thrown for all exceptions occurred inside handlers or filters.

getResourcePathsWithTag

public TaggedResourcePath[] getResourcePathsWithTag(RequestContext requestContext)
                                             throws RegistryException
Description copied from class: HandlerManager
Manages the handler invocations of GET_RESOURCE_PATHS_WITH_TAG method.

Overrides:
getResourcePathsWithTag in class HandlerManager
Parameters:
requestContext - Details of the request.
Returns:
Tagged resource paths.
Throws:
RegistryException - This exception is thrown for all exceptions occurred inside handlers or filters.

getTags

public Tag[] getTags(RequestContext requestContext)
              throws RegistryException
Description copied from class: HandlerManager
Manages the handler invocations of GET_TAGS method.

Overrides:
getTags in class HandlerManager
Parameters:
requestContext - Details of the request.
Returns:
Array of tags.
Throws:
RegistryException - This exception is thrown for all exceptions occurred inside handlers or filters.

getComments

public Comment[] getComments(RequestContext requestContext)
                      throws RegistryException
Description copied from class: HandlerManager
Manages the handler invocations of GET_COMMENTS method.

Overrides:
getComments in class HandlerManager
Parameters:
requestContext - Details of the request.
Returns:
Array of comments.
Throws:
RegistryException - This exception is thrown for all exceptions occurred inside handlers or filters.

getAverageRating

public float getAverageRating(RequestContext requestContext)
                       throws RegistryException
Description copied from class: HandlerManager
Manages the handler invocations of GET_AVERAGE_RATING method.

Overrides:
getAverageRating in class HandlerManager
Parameters:
requestContext - Details of the request.
Returns:
Average rating.
Throws:
RegistryException - This exception is thrown for all exceptions occurred inside handlers or filters.

getRating

public int getRating(RequestContext requestContext)
              throws RegistryException
Description copied from class: HandlerManager
Manages the handler invocations of GET_RATING method.

Overrides:
getRating in class HandlerManager
Parameters:
requestContext - Details of the request.
Returns:
Rating given by user.
Throws:
RegistryException - This exception is thrown for all exceptions occurred inside handlers or filters.

getVersions

public String[] getVersions(RequestContext requestContext)
                     throws RegistryException
Description copied from class: HandlerManager
Manages the handler invocations of GET_VERSIONS method.

Overrides:
getVersions in class HandlerManager
Parameters:
requestContext - Details of the request.
Returns:
Versions.
Throws:
RegistryException - This exception is thrown for all exceptions occurred inside handlers or filters.

executeQuery

public Collection executeQuery(RequestContext requestContext)
                        throws RegistryException
Description copied from class: HandlerManager
Manages the handler invocations of EXECUTE_QUERY method.

Overrides:
executeQuery in class HandlerManager
Parameters:
requestContext - Details of the request.
Returns:
Collection of results.
Throws:
RegistryException - This exception is thrown for all exceptions occurred inside handlers or filters.

searchContent

public Collection searchContent(RequestContext requestContext)
                         throws RegistryException
Description copied from class: HandlerManager
Manages the handler invocations of SEARCH_CONTENT method.

Overrides:
searchContent in class HandlerManager
Parameters:
requestContext - Details of the request.
Returns:
Collection of content.
Throws:
RegistryException - This exception is thrown for all exceptions occurred inside handlers or filters.

addComment

public String addComment(RequestContext requestContext)
                  throws RegistryException
Description copied from class: HandlerManager
Manages the handler invocations of ADD_COMMENT method.

Overrides:
addComment in class HandlerManager
Parameters:
requestContext - Details of the request.
Returns:
comment added.
Throws:
RegistryException - This exception is thrown for all exceptions occurred inside handlers or filters.

get

public Resource get(RequestContext requestContext)
             throws RegistryException
Description copied from class: HandlerManager
Manages the handler invocations of GET method.

Overrides:
get in class HandlerManager
Parameters:
requestContext - Details of the request.
Returns:
Resource requested from the GET operation.
Throws:
RegistryException - This exception is thrown for all exceptions occurred inside handlers or filters.

put

public String put(RequestContext requestContext)
           throws RegistryException
Description copied from class: HandlerManager
Manages the handler invocations of PUT method.

Overrides:
put in class HandlerManager
Parameters:
requestContext - Details of the request.
Returns:
Path where the resource is actually stored. Subsequent accesses to the resource should use this path.
Throws:
RegistryException - This exception is thrown for all exceptions occurred inside handlers or filters.

importResource

public String importResource(RequestContext requestContext)
                      throws RegistryException
Description copied from class: HandlerManager
Manages the handler invocations of IMPORT method.

Overrides:
importResource in class HandlerManager
Parameters:
requestContext - Details of the request.
Returns:
Path where the resource is actually stored. Subsequent accesses to the resource should use this path.
Throws:
RegistryException - This exception is thrown for all exceptions occurred inside handlers or filters.

delete

public void delete(RequestContext requestContext)
            throws RegistryException
Description copied from class: HandlerManager
Manages the handler invocations of DELETE method.

Overrides:
delete in class HandlerManager
Parameters:
requestContext - Details of the request.
Throws:
RegistryException - This exception is thrown for all exceptions occurred inside handlers or filters.

putChild

public void putChild(RequestContext requestContext)
              throws RegistryException
Description copied from class: HandlerManager
Manages the handler invocations of PUT_CHILD method.

Overrides:
putChild in class HandlerManager
Parameters:
requestContext - Details of the request.
Throws:
RegistryException - This exception is thrown for all exceptions occurred inside handlers or filters.

importChild

public void importChild(RequestContext requestContext)
                 throws RegistryException
Description copied from class: HandlerManager
Manages the handler invocations of IMPORT_CHILD method.

Overrides:
importChild in class HandlerManager
Parameters:
requestContext - Details of the request.
Throws:
RegistryException - This exception is thrown for all exceptions occurred inside handlers or filters.

invokeAspect

public void invokeAspect(RequestContext requestContext)
                  throws RegistryException
Description copied from class: HandlerManager
Manages the handler invocations of INVOKE_ASPECT method.

Overrides:
invokeAspect in class HandlerManager
Parameters:
requestContext - Details of the request.
Throws:
RegistryException - This exception is thrown for all exceptions occurred inside handlers or filters.

copy

public String copy(RequestContext requestContext)
            throws RegistryException
Description copied from class: HandlerManager
Manages the handler invocations of COPY method.

Overrides:
copy in class HandlerManager
Parameters:
requestContext - Details of the request.
Returns:
the actual path for the new resource.
Throws:
RegistryException - This exception is thrown for all exceptions occurred inside handlers or filters.

move

public String move(RequestContext requestContext)
            throws RegistryException
Description copied from class: HandlerManager
Manages the handler invocations of MOVE method.

Overrides:
move in class HandlerManager
Parameters:
requestContext - Details of the request.
Returns:
the actual path for the new resource.
Throws:
RegistryException - This exception is thrown for all exceptions occurred inside handlers or filters.

rename

public String rename(RequestContext requestContext)
              throws RegistryException
Description copied from class: HandlerManager
Manages the handler invocations of RENAME method.

Overrides:
rename in class HandlerManager
Parameters:
requestContext - Details of the request.
Returns:
the actual path for the new resource.
Throws:
RegistryException - This exception is thrown for all exceptions occurred inside handlers or filters.

createLink

public void createLink(RequestContext requestContext)
                throws RegistryException
Description copied from class: HandlerManager
Manages the handler invocations of CREATE_LINK method.

Overrides:
createLink in class HandlerManager
Parameters:
requestContext - Details of the request.
Throws:
RegistryException - This exception is thrown for all exceptions occurred inside handlers or filters.

removeLink

public void removeLink(RequestContext requestContext)
                throws RegistryException
Description copied from class: HandlerManager
Manages the handler invocations of REMOVE_LINK method.

Overrides:
removeLink in class HandlerManager
Parameters:
requestContext - Details of the request.
Throws:
RegistryException - This exception is thrown for all exceptions occurred inside handlers or filters.

resourceExists

public boolean resourceExists(RequestContext requestContext)
                       throws RegistryException
Description copied from class: HandlerManager
Manages the handler invocations of RESOURCE_EXISTS method.

Overrides:
resourceExists in class HandlerManager
Parameters:
requestContext - Details of the request.
Returns:
whether the resource exists
Throws:
RegistryException - This exception is thrown for all exceptions occurred inside handlers or filters.

getRegistryContext

public RegistryContext getRegistryContext(RequestContext requestContext)
Description copied from class: HandlerManager
Manages the handler invocations of GET_REGISTRY_CONTEXT method.

Overrides:
getRegistryContext in class HandlerManager
Parameters:
requestContext - Details of the request.
Returns:
whether the resource exists

dump

public org.apache.axiom.om.OMElement dump(RequestContext requestContext)
                                   throws RegistryException
Description copied from class: HandlerManager
Manages the handler invocations of DUMP method.

Overrides:
dump in class HandlerManager
Parameters:
requestContext - Details of the request.
Returns:
the dumped element
Throws:
RegistryException - This exception is thrown for all exceptions occurred inside handlers or filters.

restore

public void restore(RequestContext requestContext)
             throws RegistryException
Description copied from class: HandlerManager
Manages the handler invocations of RESTORE method.

Overrides:
restore in class HandlerManager
Parameters:
requestContext - Details of the request.
Throws:
RegistryException - This exception is thrown for all exceptions occurred inside handlers or filters.

setEvaluateAllHandlers

public void setEvaluateAllHandlers(boolean evaluateAllHandlers)
Overrides:
setEvaluateAllHandlers in class HandlerManager


Copyright © 2012 WSO2 Inc. All Rights Reserved.