public abstract class EurekaClinicalClient extends Object implements AutoCloseable
| Modifier | Constructor and Description |
|---|---|
protected |
EurekaClinicalClient(Class<? extends javax.ws.rs.ext.ContextResolver<? extends org.codehaus.jackson.map.ObjectMapper>> cls) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
doDelete(String path) |
protected String |
doGet(String path) |
protected <T> T |
doGet(String path,
Class<T> cls) |
protected <T> T |
doGet(String path,
Class<T> cls,
javax.ws.rs.core.MultivaluedMap<String,String> queryParams) |
protected <T> T |
doGet(String path,
com.sun.jersey.api.client.GenericType<T> genericType) |
protected <T> T |
doGet(String path,
com.sun.jersey.api.client.GenericType<T> genericType,
javax.ws.rs.core.MultivaluedMap<String,String> queryParams) |
protected String |
doGet(String path,
javax.ws.rs.core.MultivaluedMap<String,String> queryParams) |
protected com.sun.jersey.api.client.ClientResponse |
doGetResponse(String path)
Makes the GET call and returns the response.
|
protected void |
doPost(String path) |
protected <T> T |
doPost(String path,
Class<T> cls,
javax.ws.rs.core.MultivaluedMap<String,String> formParams) |
protected <T> T |
doPost(String path,
com.sun.jersey.api.client.GenericType<T> genericType,
javax.ws.rs.core.MultivaluedMap<String,String> formParams) |
protected void |
doPost(String path,
Object o) |
protected <T> T |
doPost(String path,
Object o,
Class<T> cls) |
protected URI |
doPostCreate(String path,
InputStream inputStream) |
protected URI |
doPostCreate(String path,
Object o) |
protected void |
doPostMultipart(String path,
String filename,
InputStream inputStream) |
protected void |
doPut(String path) |
protected void |
doPut(String path,
Object o) |
protected void |
errorIfStatusEqualTo(com.sun.jersey.api.client.ClientResponse response,
com.sun.jersey.api.client.ClientResponse.Status... status)
If there is an unexpected status code, it gets the status message, closes
the response, and throws an exception.
|
protected void |
errorIfStatusNotEqualTo(com.sun.jersey.api.client.ClientResponse response,
com.sun.jersey.api.client.ClientResponse.Status... status)
If there is an unexpected status code, it gets the status message, closes
the response, and throws an exception.
|
protected Long |
extractId(URI uri) |
com.sun.jersey.api.client.WebResource |
getResource() |
protected abstract String |
getResourceUrl() |
protected WebResourceWrapper |
getResourceWrapper() |
protected com.sun.jersey.api.client.Client |
getRestClient() |
protected EurekaClinicalClient(Class<? extends javax.ws.rs.ext.ContextResolver<? extends org.codehaus.jackson.map.ObjectMapper>> cls)
public void close()
close in interface AutoCloseablepublic com.sun.jersey.api.client.WebResource getResource()
protected com.sun.jersey.api.client.Client getRestClient()
protected abstract String getResourceUrl()
protected WebResourceWrapper getResourceWrapper()
protected void doDelete(String path) throws ClientException
ClientExceptionprotected void doPut(String path) throws ClientException
ClientExceptionprotected void doPut(String path, Object o) throws ClientException
ClientExceptionprotected String doGet(String path) throws ClientException
ClientExceptionprotected String doGet(String path, javax.ws.rs.core.MultivaluedMap<String,String> queryParams) throws ClientException
ClientExceptionprotected <T> T doGet(String path, Class<T> cls) throws ClientException
ClientExceptionprotected <T> T doGet(String path, Class<T> cls, javax.ws.rs.core.MultivaluedMap<String,String> queryParams) throws ClientException
ClientExceptionprotected com.sun.jersey.api.client.ClientResponse doGetResponse(String path) throws ClientException
getEntity method is called.path - the path to call.ClientException - if an error occurs making the call.protected <T> T doGet(String path, com.sun.jersey.api.client.GenericType<T> genericType) throws ClientException
ClientExceptionprotected <T> T doGet(String path, com.sun.jersey.api.client.GenericType<T> genericType, javax.ws.rs.core.MultivaluedMap<String,String> queryParams) throws ClientException
ClientExceptionprotected <T> T doPost(String path, Class<T> cls, javax.ws.rs.core.MultivaluedMap<String,String> formParams) throws ClientException
ClientExceptionprotected <T> T doPost(String path, com.sun.jersey.api.client.GenericType<T> genericType, javax.ws.rs.core.MultivaluedMap<String,String> formParams) throws ClientException
ClientExceptionprotected void doPost(String path) throws ClientException
ClientExceptionprotected void doPost(String path, Object o) throws ClientException
ClientExceptionprotected <T> T doPost(String path, Object o, Class<T> cls) throws ClientException
ClientExceptionprotected URI doPostCreate(String path, Object o) throws ClientException
ClientExceptionprotected URI doPostCreate(String path, InputStream inputStream) throws ClientException
ClientExceptionprotected void doPostMultipart(String path, String filename, InputStream inputStream) throws ClientException
ClientExceptionprotected void errorIfStatusEqualTo(com.sun.jersey.api.client.ClientResponse response,
com.sun.jersey.api.client.ClientResponse.Status... status)
throws ClientException
response - the response.status - the expected status code(s).ClientExceptionprotected void errorIfStatusNotEqualTo(com.sun.jersey.api.client.ClientResponse response,
com.sun.jersey.api.client.ClientResponse.Status... status)
throws ClientException
response - the response.status - the expected status code(s).ClientExceptionCopyright © 2016–2017 Emory University. All rights reserved.