Package org.hl7.fhir.utilities.http
Class SimpleHTTPClient
- java.lang.Object
-
- org.hl7.fhir.utilities.http.SimpleHTTPClient
-
public class SimpleHTTPClient extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSimpleHTTPClient.Header
-
Constructor Summary
Constructors Constructor Description SimpleHTTPClient()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddHeader(String name, String value)HTTPResultget(String url)HTTPResultget(String url, String accept)static intnextCounter()HTTPResultpost(String url, String contentType, byte[] content, String accept)HTTPResultput(String url, String contentType, byte[] content, String accept)
-
-
-
Constructor Detail
-
SimpleHTTPClient
public SimpleHTTPClient()
-
-
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, String contentType, byte[] content, String accept) throws IOException
- Throws:
IOException
-
put
public HTTPResult put(String url, String contentType, byte[] content, String accept) throws IOException
- Throws:
IOException
-
nextCounter
public static int nextCounter()
-
-