Package ca.uhn.fhir.jaxrs.client
Class JaxRsHttpRequest
java.lang.Object
ca.uhn.fhir.rest.client.api.BaseHttpRequest
ca.uhn.fhir.jaxrs.client.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 Summary
ConstructorDescriptionJaxRsHttpRequest
(jakarta.ws.rs.client.Invocation.Builder theRequest, ca.uhn.fhir.rest.api.RequestTypeEnum theRequestType, jakarta.ws.rs.client.Entity<?> theEntity) -
Method Summary
Modifier and TypeMethodDescriptionvoid
ca.uhn.fhir.rest.client.api.IHttpResponse
execute()
jakarta.ws.rs.client.Entity
<?> Get the Entityjakarta.ws.rs.client.Invocation.Builder
Get the Requestca.uhn.fhir.rest.api.RequestTypeEnum
Get the Request TypegetUri()
void
removeHeaders
(String theHeaderName) void
Methods inherited from class ca.uhn.fhir.rest.client.api.BaseHttpRequest
getUrlSource, setUrlSource
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ca.uhn.fhir.rest.client.api.IHttpRequest
getUrlSource, setUrlSource
-
Constructor Details
-
JaxRsHttpRequest
public JaxRsHttpRequest(jakarta.ws.rs.client.Invocation.Builder theRequest, ca.uhn.fhir.rest.api.RequestTypeEnum theRequestType, jakarta.ws.rs.client.Entity<?> theEntity)
-
-
Method Details
-
addHeader
- Specified by:
addHeader
in interfaceca.uhn.fhir.rest.client.api.IHttpRequest
-
execute
- Specified by:
execute
in interfaceca.uhn.fhir.rest.client.api.IHttpRequest
-
getAllHeaders
- Specified by:
getAllHeaders
in interfaceca.uhn.fhir.rest.client.api.IHttpRequest
-
getEntity
Get the Entity- Returns:
- the entity
-
getHttpVerbName
- Specified by:
getHttpVerbName
in interfaceca.uhn.fhir.rest.client.api.IHttpRequest
-
removeHeaders
- Specified by:
removeHeaders
in interfaceca.uhn.fhir.rest.client.api.IHttpRequest
-
getRequest
Get the Request- Returns:
- the Request
-
getRequestBodyFromStream
- Specified by:
getRequestBodyFromStream
in interfaceca.uhn.fhir.rest.client.api.IHttpRequest
-
getRequestType
Get the Request Type- Returns:
- the request type
-
getUri
- Specified by:
getUri
in interfaceca.uhn.fhir.rest.client.api.IHttpRequest
-
setUri
- Specified by:
setUri
in interfaceca.uhn.fhir.rest.client.api.IHttpRequest
-