Class UriListHandlerService

java.lang.Object
org.dspace.app.rest.repository.handler.service.UriListHandlerService

@Component public class UriListHandlerService extends Object
This class is a wrapper Service class for the UriListHandler objects. It will find the right one and try to execute it for the given arguments
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    handle(Context context, jakarta.servlet.http.HttpServletRequest request, List<String> uriList, Class<T> clazz)
    This method will take the UriList, the request, relevant DSpace context and the class of the object to be handled It'll then loop over all the UriListHandlers defined within the codebase and first check if it supports the given method and the urilist.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • UriListHandlerService

      public UriListHandlerService()
  • Method Details

    • handle

      public <T> T handle(Context context, jakarta.servlet.http.HttpServletRequest request, List<String> uriList, Class<T> clazz) throws SQLException, AuthorizeException
      This method will take the UriList, the request, relevant DSpace context and the class of the object to be handled It'll then loop over all the UriListHandlers defined within the codebase and first check if it supports the given method and the urilist. If the handler supports this, it'll then validate the input and only if it's valid, it'll execute the handle method and perform the logic
      Type Parameters:
      T - The class to be returned, same as the class parameter above
      Parameters:
      context - The relevant DSpace context
      request - The current active Request
      uriList - The list of Strings representing the UriList to be handled
      clazz - The class to be handled
      Returns:
      The object that was handled through this method
      Throws:
      SQLException
      AuthorizeException