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