Package org.dspace.app.rest
Class LDNInboxController
java.lang.Object
org.dspace.app.rest.LDNInboxController
@Controller
@RequestMapping("/ldn")
@ConditionalOnProperty("ldn.enabled")
public class LDNInboxController
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioninbox(jakarta.servlet.http.HttpServletRequest request, Notification notification) LDN DSpace inbox.options()LDN DSpace inbox options.
-
Constructor Details
-
LDNInboxController
public LDNInboxController()
-
-
Method Details
-
inbox
@PostMapping(value="/inbox", consumes="application/ld+json") public ResponseEntity<Object> inbox(jakarta.servlet.http.HttpServletRequest request, @RequestBody Notification notification) throws Exception LDN DSpace inbox.- Parameters:
notification- received notification- Returns:
- ResponseEntity 400 not stored, 202 stored
- Throws:
Exception
-
options
LDN DSpace inbox options.- Returns:
- ResponseEntity 200 with allow and accept-post headers
-
handleResponseStatusException
@ExceptionHandler(org.springframework.web.server.ResponseStatusException.class) public ResponseEntity<String> handleResponseStatusException(ResponseStatusException e) - Parameters:
e-- Returns:
- ResponseEntity
-