public class HttpClient extends Object implements AutoCloseable
| Constructor and Description |
|---|
HttpClient(String jsessionId) |
HttpClient(String username,
String password) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
get(String url) |
String |
postJson(String url,
Object object) |
public HttpClient(String jsessionId)
public String get(String url) throws IOException
IOExceptionpublic String postJson(String url, Object object) throws IOException, com.fasterxml.jackson.core.JsonProcessingException, UnsupportedCharsetException, org.apache.http.ParseException
IOExceptioncom.fasterxml.jackson.core.JsonProcessingExceptionUnsupportedCharsetExceptionorg.apache.http.ParseExceptionpublic void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2018. All rights reserved.