Class HistoricMementoBuilder


  • public class HistoricMementoBuilder
    extends PostBuilder
    Builds a POST request for creating a memento (LDPRm) with the state given in the request body and the datetime given in the Memento-Datetime request header.
    Author:
    bbpennel
    • Constructor Detail

      • HistoricMementoBuilder

        public HistoricMementoBuilder​(URI uri,
                                      FcrepoClient client,
                                      Instant mementoInstant)
        Instantiate builder
        Parameters:
        uri - uri of the resource this request is being made to
        client - the client
        mementoInstant - Instant to use for the memento-datetime
      • HistoricMementoBuilder

        public HistoricMementoBuilder​(URI uri,
                                      FcrepoClient client,
                                      String mementoDatetime)
        Instantiate builder.
        Parameters:
        uri - uri of the resource this request is being made to
        client - the client
        mementoDatetime - RFC1123 formatted date to use for the memento-datetime