Package org.hl7.fhir.utilities.http
Class ManagedWebAccessor
java.lang.Object
org.hl7.fhir.utilities.http.ManagedWebAccessorBase<ManagedWebAccessor>
org.hl7.fhir.utilities.http.ManagedWebAccessor
Simple HTTP client for making requests to a server.
-
Constructor Summary
ConstructorsConstructorDescriptionManagedWebAccessor(Iterable<String> serverTypes, String userAgent, List<ServerDetailsPOJO> serverAuthDetails) -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class org.hl7.fhir.utilities.http.ManagedWebAccessorBase
withApiKey, withBasicAuth, withHeader, withNoneAuth, withServerSpecificAuth, withToken
-
Constructor Details
-
ManagedWebAccessor
public ManagedWebAccessor(Iterable<String> serverTypes, String userAgent, List<ServerDetailsPOJO> serverAuthDetails)
-
-
Method Details
-
get
- Throws:
IOException
-
get
- Throws:
IOException
-
post
- Throws:
IOException
-
post
public HTTPResult post(String url, byte[] content, String contentType, String accept) throws IOException - Throws:
IOException
-
put
- Throws:
IOException
-
put
public HTTPResult put(String url, byte[] content, String contentType, String accept) throws IOException - Throws:
IOException
-