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 theUriListHandlerobjects. It will find the right one and try to execute it for the given arguments
-
-
Constructor Summary
Constructors Constructor Description UriListHandlerService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Thandle(Context context, javax.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.
-
-
-
Method Detail
-
handle
public <T> T handle(Context context, javax.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 hadled- Returns:
- The object that was handled through this method
- Throws:
SQLExceptionAuthorizeException
-
-