Class 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 Detail

      • FHIRRequestHeader

        public FHIRRequestHeader()
      • FHIRRequestHeader

        public FHIRRequestHeader​(String name,
                                 Object value)
    • 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 header
        value - the value of the request header
        Returns:
        a new FHIRRequestHeader instance