Class UriListHandlerService
java.lang.Object
org.dspace.app.rest.repository.handler.service.UriListHandlerService
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 -
Method Summary
Modifier and TypeMethodDescription<T> Thandle(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.
-
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 contextrequest- The current active RequesturiList- The list of Strings representing the UriList to be handledclazz- The class to be handled- Returns:
- The object that was handled through this method
- Throws:
SQLExceptionAuthorizeException
-