Package org.hl7.fhir.utilities
Class SimpleHTTPClient
- java.lang.Object
-
- org.hl7.fhir.utilities.SimpleHTTPClient
-
public class SimpleHTTPClient extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classSimpleHTTPClient.HeaderclassSimpleHTTPClient.HTTPResult
-
Constructor Summary
Constructors Constructor Description SimpleHTTPClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddHeader(String name, String value)SimpleHTTPClient.HTTPResultget(String url)SimpleHTTPClient.HTTPResultget(String url, String accept)StringgetPassword()StringgetUsername()SimpleHTTPClient.HTTPResultpost(String url, String contentType, byte[] content, String accept)SimpleHTTPClient.HTTPResultput(String url, String contentType, byte[] content, String accept)voidsetPassword(String password)voidsetUsername(String username)voidtrustAllhosts()
-
-
-
Constructor Detail
-
SimpleHTTPClient
public SimpleHTTPClient()
-
-
Method Detail
-
getUsername
public String getUsername()
-
setUsername
public void setUsername(String username)
-
getPassword
public String getPassword()
-
setPassword
public void setPassword(String password)
-
trustAllhosts
public void trustAllhosts()
-
get
public SimpleHTTPClient.HTTPResult get(String url) throws IOException
- Throws:
IOException
-
get
public SimpleHTTPClient.HTTPResult get(String url, String accept) throws IOException
- Throws:
IOException
-
post
public SimpleHTTPClient.HTTPResult post(String url, String contentType, byte[] content, String accept) throws IOException
- Throws:
IOException
-
put
public SimpleHTTPClient.HTTPResult put(String url, String contentType, byte[] content, String accept) throws IOException
- Throws:
IOException
-
-