Package org.hl7.fhir.utilities.http
Class ManagedWebAccess
java.lang.Object
org.hl7.fhir.utilities.http.ManagedWebAccess
see security.md - manages web access by the FHIR HAPI Core library
By using accessPolicy, allowedDomains and accessor, a host java application can control
whether this library has direct access to the web (and which domains it is allowed to access),
or whether the host application provides controlled access, or whether no access is allowed at all
(in which case other information providers need to be provided)
- Author:
- Grahame
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfacestatic enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ManagedWebAccessorstatic ManagedFhirWebAccessorstatic HTTPResultstatic HTTPResultstatic HTTPResulthttpCall(HTTPRequest httpRequest) static voidstatic voidloadFromFHIRSettings(FhirSettings settings) static StringmakeSecureRef(String url) static HTTPResultstatic HTTPResultstatic voidsetAccessPolicy(ManagedWebAccess.WebAccessPolicy accessPolicy) static voidsetUserAgent(String userAgent)
-
Constructor Details
-
ManagedWebAccess
public ManagedWebAccess()
-
-
Method Details
-
getAccessPolicy
-
setAccessPolicy
-
setUserAgent
-
accessor
-
fhirAccessor
-
get
- Throws:
IOException
-
get
public static HTTPResult get(Iterable<String> serverTypes, String url, String accept) throws IOException - Throws:
IOException
-
post
public static HTTPResult post(Iterable<String> serverTypes, String url, byte[] content, String contentType, String accept) throws IOException - Throws:
IOException
-
put
public static HTTPResult put(Iterable<String> serverTypes, String url, byte[] content, String contentType, String accept) throws IOException - Throws:
IOException
-
httpCall
- Throws:
IOException
-
loadFromFHIRSettings
-
loadFromFHIRSettings
-
makeSecureRef
-