Class GenericHTTPDepositor
- java.lang.Object
-
- uk.org.esciencelab.researchobjectservice.deposition.GenericHTTPDepositor
-
- All Implemented Interfaces:
Depositor
@Component public class GenericHTTPDepositor extends java.lang.Object implements Depositor
An example implementation of a Depositor, that performs a simple HTTP POST of a zipped BagIt-RO serialization of a Research Object to a configured URL, with some optional configured HTTP headers.
-
-
Constructor Summary
Constructors Constructor Description GenericHTTPDepositor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.URI
deposit(ResearchObject researchObject, java.util.Map<java.lang.String,java.lang.String> params)
Deposit the RO into the repo.
-
-
-
Method Detail
-
deposit
public java.net.URI deposit(ResearchObject researchObject, java.util.Map<java.lang.String,java.lang.String> params) throws DepositionException
Description copied from interface:Depositor
Deposit the RO into the repo.- Specified by:
deposit
in interfaceDepositor
- Parameters:
researchObject
- the RO to deposit.params
- optional parameters to pass through to the depositor.- Returns:
- The URI of the deposited RO within the repository.
- Throws:
DepositionException
-
-