Class UpsertRequest

java.lang.Object
com.norconex.committer.core.UpsertRequest
All Implemented Interfaces:
CommitterRequest

public class UpsertRequest extends Object implements CommitterRequest
A committer upsert request (update or insert).
  • Constructor Details

  • Method Details

    • getReference

      public String getReference()
      Description copied from interface: CommitterRequest
      Gets the document reference.
      Specified by:
      getReference in interface CommitterRequest
      Returns:
      document reference
    • getMetadata

      public Properties getMetadata()
      Description copied from interface: CommitterRequest
      Gets the metadata.
      Specified by:
      getMetadata in interface CommitterRequest
      Returns:
      metadata
    • getContent

      public InputStream getContent()
    • getWithheldReason

      public String getWithheldReason()
      Why the committer withheld this document rather than send it (for example its access control list could not be read), or null when it did not. Set by the committer; read by whoever called it, to try the document again later.
    • setWithheldReason

      public void setWithheldReason(String withheldReason)
      Why the committer withheld this document rather than send it (for example its access control list could not be read), or null when it did not. Set by the committer; read by whoever called it, to try the document again later.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object