Class JaxRsHttpRequest

  • All Implemented Interfaces:
    ca.uhn.fhir.rest.client.api.IHttpRequest

    public class JaxRsHttpRequest
    extends ca.uhn.fhir.rest.client.api.BaseHttpRequest
    implements ca.uhn.fhir.rest.client.api.IHttpRequest
    A Http Request based on JaxRs. This is an adapter around the class Invocation
    Author:
    Peter Van Houte | peter.vanhoute@agfa.com | Agfa Healthcare
    • Constructor Detail

      • JaxRsHttpRequest

        public JaxRsHttpRequest​(javax.ws.rs.client.Invocation.Builder theRequest,
                                ca.uhn.fhir.rest.api.RequestTypeEnum theRequestType,
                                javax.ws.rs.client.Entity<?> theEntity)
    • Method Detail

      • addHeader

        public void addHeader​(String theName,
                              String theValue)
        Specified by:
        addHeader in interface ca.uhn.fhir.rest.client.api.IHttpRequest
      • execute

        public ca.uhn.fhir.rest.client.api.IHttpResponse execute()
        Specified by:
        execute in interface ca.uhn.fhir.rest.client.api.IHttpRequest
      • getEntity

        public javax.ws.rs.client.Entity<?> getEntity()
        Get the Entity
        Returns:
        the entity
      • getHttpVerbName

        public String getHttpVerbName()
        Specified by:
        getHttpVerbName in interface ca.uhn.fhir.rest.client.api.IHttpRequest
      • removeHeaders

        public void removeHeaders​(String theHeaderName)
        Specified by:
        removeHeaders in interface ca.uhn.fhir.rest.client.api.IHttpRequest
      • getRequest

        public javax.ws.rs.client.Invocation.Builder getRequest()
        Get the Request
        Returns:
        the Request
      • getRequestBodyFromStream

        public String getRequestBodyFromStream()
        Specified by:
        getRequestBodyFromStream in interface ca.uhn.fhir.rest.client.api.IHttpRequest
      • getRequestType

        public ca.uhn.fhir.rest.api.RequestTypeEnum getRequestType()
        Get the Request Type
        Returns:
        the request type
      • getUri

        public String getUri()
        Specified by:
        getUri in interface ca.uhn.fhir.rest.client.api.IHttpRequest
      • setUri

        public void setUri​(String theUrl)
        Specified by:
        setUri in interface ca.uhn.fhir.rest.client.api.IHttpRequest