Package com.ibm.fhir.client
Class FHIRRequestHeader
- java.lang.Object
-
- com.ibm.fhir.client.FHIRRequestHeader
-
public class FHIRRequestHeader extends Object
This class represents an HTTP request header that will be used as part of a FHIRClient operation invocation.
-
-
Constructor Summary
Constructors Constructor Description FHIRRequestHeader()
FHIRRequestHeader(String name, Object value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Returns the name of the request header.Object
getValue()
Returns the value of the request header.static FHIRRequestHeader
header(String name, Object value)
This static method can be used as a shortcut for instantiating a new FHIRRequestHeader.void
setName(String name)
Sets the name of the request header.void
setValue(Object value)
Sets the value of the request header.
-
-
-
Method Detail
-
getName
public String getName()
Returns the name of the request header.
-
setName
public void setName(String name)
Sets the name of the request header.
-
getValue
public Object getValue()
Returns the value of the request header.
-
setValue
public void setValue(Object value)
Sets the value of the request header.
-
header
public static FHIRRequestHeader header(String name, Object value)
This static method can be used as a shortcut for instantiating a new FHIRRequestHeader. Example:import static com.ibm.fhir.client.FHIRRequestHeader.header; ... response = client.create(myPatient, header("Header1","value1"), header("Header2","value2"));
- Parameters:
name
- the name of the request headervalue
- the value of the request header- Returns:
- a new FHIRRequestHeader instance
-
-