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

java.lang.Object
  extended by org.wso2.carbon.registry.core.jdbc.handlers.HandlerManager
Direct Known Subclasses:
HandlerLifecycleManager, UserDefinedHandlerManager

public class HandlerManager
extends Object

Manages the handlers and their invocations. Handlers, which are required to be invoked must be registered with the class using the addHandler(java.lang.String[], org.wso2.carbon.registry.core.jdbc.handlers.filters.Filter, org.wso2.carbon.registry.core.jdbc.handlers.Handler) method. Handlers are allowed for a subset of Registry API methods (see Java doc of Handler class for more details). Handler authors can further specify exactly for which methods their handlers should engage. For example, handler author may specify his handler should be engaged only for GET and DELETE operations. This class maintains separate maps for each supported operation and puts handlers to corresponding maps once registered.

Handlers are registered with a Filter instance. Filter decides (based on the request) whether or not to invoke its associated handler.

This class has a separate method for each supported operation. These methods are invoked by BasicRegistry once such method is invoked in the Registry API. Then this class iterates through the map corresponding to the invoked method and evaluates filters of registered handlers. For each filter which evaluates to true, its associated handler will be invoked. This process continues either till there is no more handlers or till the processingComplete parameter of the RequestContext is set to true.

There is only one instance of this class exists per registry instance.


Constructor Summary
HandlerManager()
           
 
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.
 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.
 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.
 boolean isProcessingComplete(RequestContext requestContext)
          Determines whether the processing of the request is completed or not.
 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HandlerManager

public HandlerManager()
Method Detail

addHandler

public void addHandler(String[] methods,
                       Filter filter,
                       Handler handler)
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.

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)
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.

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.
lifecyclePhase - The name of the lifecycle phase.
handler - Handler instance to be registered.

addHandlerWithPriority

public 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.

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)
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.

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.
lifecyclePhase - The name of the lifecycle phase.
handler - Handler instance to be registered.

removeHandler

public void removeHandler(Handler handler)
remove a handler from all the filters, all the methods

Parameters:
handler - the handler to remove

removeHandler

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

Parameters:
handler - the handler to remove.
lifecyclePhase - The name of the lifecycle phase.

removeHandler

public void removeHandler(String[] methods,
                          Filter filter,
                          Handler handler)
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.

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)
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.

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.

isProcessingComplete

public boolean isProcessingComplete(RequestContext requestContext)
Determines whether the processing of the request is completed or not.

Parameters:
requestContext - Details of the request.
Returns:
True if processing is complete and in simulation mode, or if processing is complete and if all handlers belonging to this handler manager needs not be evaluated.

removeComment

public void removeComment(RequestContext requestContext)
                   throws RegistryException
Manages the handler invocations of EDIT_COMMENT method.

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

editComment

public void editComment(RequestContext requestContext)
                 throws RegistryException
Manages the handler invocations of REMOVE_COMMENT method.

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
Manages the handler invocations of CREATE_VERSION method.

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
Manages the handler invocations of RESTORE_VERSION method.

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
Manages the handler invocations of RATE_RESOURCE method.

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
Manages the handler invocations of REMOVE_TAG method.

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
Manages the handler invocations of APPLY_TAG method.

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
Manages the handler invocations of REMOVE_ASSOCIATION method.

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
Manages the handler invocations of ADD_ASSOCIATION method.

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
Manages the handler invocations of GET_ALL_ASSOCIATIONS method.

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
Manages the handler invocations of GET_ASSOCIATIONS method.

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
Manages the handler invocations of GET_RESOURCE_PATHS_WITH_TAG method.

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
Manages the handler invocations of GET_TAGS method.

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
Manages the handler invocations of GET_COMMENTS method.

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
Manages the handler invocations of GET_AVERAGE_RATING method.

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
Manages the handler invocations of GET_RATING method.

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
Manages the handler invocations of GET_VERSIONS method.

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
Manages the handler invocations of EXECUTE_QUERY method.

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
Manages the handler invocations of SEARCH_CONTENT method.

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
Manages the handler invocations of ADD_COMMENT method.

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
Manages the handler invocations of GET method.

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
Manages the handler invocations of PUT method.

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
Manages the handler invocations of IMPORT method.

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
Manages the handler invocations of DELETE method.

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
Manages the handler invocations of PUT_CHILD method.

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
Manages the handler invocations of IMPORT_CHILD method.

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
Manages the handler invocations of INVOKE_ASPECT method.

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
Manages the handler invocations of COPY method.

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
Manages the handler invocations of MOVE method.

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
Manages the handler invocations of RENAME method.

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
Manages the handler invocations of CREATE_LINK method.

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
Manages the handler invocations of REMOVE_LINK method.

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
Manages the handler invocations of RESOURCE_EXISTS method.

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.

dump

public org.apache.axiom.om.OMElement dump(RequestContext requestContext)
                                   throws RegistryException
Manages the handler invocations of DUMP method.

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
Manages the handler invocations of RESTORE method.

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)


Copyright © 2010. All Rights Reserved.