public class IrisClient extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.http.impl.client.DefaultHttpClient |
httpClient |
static String |
USER_AGENT |
| Constructor and Description |
|---|
IrisClient(String accountId,
String userName,
String password) |
IrisClient(String uri,
String accountId,
String userName,
String password,
String version) |
public static final String USER_AGENT
protected org.apache.http.impl.client.DefaultHttpClient httpClient
public IrisClient(String uri, String accountId, String userName, String password, String version)
public IrisResponse get(String uri) throws Exception
Exceptionpublic <T> T post(String uri, BaseModel data, Class<T> returnType) throws Exception
Exceptionpublic IrisResponse post(String uri, BaseModel data) throws Exception
Exceptionpublic IrisResponse delete(String uri) throws Exception
Exceptionpublic <T> T put(String uri, BaseModel data, Class<T> returnType) throws Exception
Exceptionpublic IrisResponse put(String uri, BaseModel data) throws Exception
Exceptionpublic void postFile(String uri, File file, String contentType) throws Exception
Exceptionpublic void putFile(String uri, File file, String contentType) throws Exception
Exceptionpublic String buildAccountModelUri(String uriSuffix, Map<String,Object> query) throws URISyntaxException
URISyntaxExceptionpublic String buildAccountModelUri(String[] tokens) throws URISyntaxException
URISyntaxExceptionpublic String buildAccountModelUri(String[] tokens, Map<String,Object> query) throws URISyntaxException
URISyntaxExceptionpublic String buildModelUri(String[] tokens, Map<String,Object> query) throws URISyntaxException
URISyntaxExceptionpublic String buildModelUri(String[] tokens) throws URISyntaxException
URISyntaxExceptionprotected IrisResponse executeRequest(org.apache.http.client.methods.HttpUriRequest request) throws Exception
Exceptionpublic void checkResponse(IrisResponse response, BaseResponse baseResponse) throws IrisClientException
IrisClientExceptionCopyright © 2020. All rights reserved.