Class Bundle.Entry.Request

  • All Implemented Interfaces:
    Visitable
    Enclosing class:
    Bundle.Entry

    public static class Bundle.Entry.Request
    extends BackboneElement
    Additional information about how this entry should be processed as part of a transaction or batch. For history, it shows how the entry was processed to create the version contained in the entry.
    • Method Detail

      • getMethod

        public HTTPVerb getMethod()
        In a transaction or batch, this is the HTTP action to be executed for this entry. In a history bundle, this indicates the HTTP action that occurred.
        Returns:
        An immutable object of type HTTPVerb that is non-null.
      • getUrl

        public Uri getUrl()
        The URL for this entry, relative to the root (the address to which the request is posted).
        Returns:
        An immutable object of type Uri that is non-null.
      • getIfNoneMatch

        public String getIfNoneMatch()
        If the ETag values match, return a 304 Not Modified status. See the API documentation for ["Conditional Read"](http. html#cread).
        Returns:
        An immutable object of type String that may be null.
      • getIfModifiedSince

        public Instant getIfModifiedSince()
        Only perform the operation if the last updated date matches. See the API documentation for ["Conditional Read"](http. html#cread).
        Returns:
        An immutable object of type Instant that may be null.
      • getIfMatch

        public String getIfMatch()
        Only perform the operation if the Etag value matches. For more information, see the API section ["Managing Resource Contention"](http.html#concurrency).
        Returns:
        An immutable object of type String that may be null.
      • getIfNoneExist

        public String getIfNoneExist()
        Instruct the server not to perform the create if a specified resource already exists. For further information, see the API documentation for ["Conditional Create"](http.html#ccreate). This is just the query portion of the URL - what follows the "?" (not including the "?").
        Returns:
        An immutable object of type String that may be null.
      • accept

        public void accept​(java.lang.String elementName,
                           int elementIndex,
                           Visitor visitor)
        Description copied from interface: Visitable
        Accept a Visitor and invoke the appropriate visit methods. A typical implementation would look like this:
         if (visitor.preVisit(this)) {
             visitor.visitStart(elementName, elementIndex, this);
             if (visitor.visit(elementName, elementIndex, this)) {
                 // visit children
             }
             visitor.visitEnd(elementName, elementIndex, this);
             visitor.postVisit(this);
         }
         
        Specified by:
        accept in interface Visitable
        Specified by:
        accept in class AbstractVisitable
        Parameters:
        elementName - the name of the element in the context of this visit
        elementIndex - the index of the element in a list or -1 if it is not contained within a List
        visitor - the visitor to use
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object