Class Bundle.Entry.Request
- java.lang.Object
-
- org.linuxforhealth.fhir.model.visitor.AbstractVisitable
-
- org.linuxforhealth.fhir.model.type.Element
-
- org.linuxforhealth.fhir.model.type.BackboneElement
-
- org.linuxforhealth.fhir.model.resource.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Bundle.Entry.Request.Builder
-
Field Summary
-
Fields inherited from class org.linuxforhealth.fhir.model.type.BackboneElement
modifierExtension
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(java.lang.String elementName, int elementIndex, Visitor visitor)
Accept a Visitor and invoke the appropriate visit methods.static Bundle.Entry.Request.Builder
builder()
boolean
equals(java.lang.Object obj)
String
getIfMatch()
Only perform the operation if the Etag value matches.Instant
getIfModifiedSince()
Only perform the operation if the last updated date matches.String
getIfNoneExist()
Instruct the server not to perform the create if a specified resource already exists.String
getIfNoneMatch()
If the ETag values match, return a 304 Not Modified status.HTTPVerb
getMethod()
In a transaction or batch, this is the HTTP action to be executed for this entry.Uri
getUrl()
The URL for this entry, relative to the root (the address to which the request is posted).boolean
hasChildren()
int
hashCode()
Bundle.Entry.Request.Builder
toBuilder()
Create a new Builder from the contents of this Element-
Methods inherited from class org.linuxforhealth.fhir.model.type.BackboneElement
getModifierExtension
-
Methods inherited from class org.linuxforhealth.fhir.model.type.Element
as, getExtension, getId, hasValue, is
-
-
-
-
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.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildren
in classBackboneElement
-
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 interfaceVisitable
- Specified by:
accept
in classAbstractVisitable
- Parameters:
elementName
- the name of the element in the context of this visitelementIndex
- the index of the element in a list or -1 if it is not contained within a Listvisitor
- the visitor to use
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toBuilder
public Bundle.Entry.Request.Builder toBuilder()
Description copied from class:Element
Create a new Builder from the contents of this Element- Specified by:
toBuilder
in classBackboneElement
-
builder
public static Bundle.Entry.Request.Builder builder()
-
-