public abstract class AbstractJerseyClient<C extends AbstractConfig>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected com.sun.jersey.api.client.Client |
client |
protected C |
config |
| Constructor and Description |
|---|
AbstractJerseyClient(C config) |
| Modifier and Type | Method and Description |
|---|---|
protected com.sun.jersey.api.client.WebResource.Builder |
buildRequest(java.lang.String pathWithinContext,
java.lang.String query) |
protected abstract com.sun.jersey.api.client.Client |
createClient(C config) |
protected <R extends BasicResponse> |
executeAndClose(com.sun.jersey.api.client.WebResource.Builder builder,
java.lang.Class<R> responseType) |
protected <T extends BasicResponse> |
fillResponse(T response,
com.sun.jersey.api.client.ClientResponse clientResponse)
Populates a response object with data from the ClientResponse.
|
protected C extends AbstractConfig config
protected com.sun.jersey.api.client.Client client
public AbstractJerseyClient(C config)
protected abstract com.sun.jersey.api.client.Client createClient(C config)
protected <T extends BasicResponse> T fillResponse(T response, com.sun.jersey.api.client.ClientResponse clientResponse)
protected <R extends BasicResponse> R executeAndClose(com.sun.jersey.api.client.WebResource.Builder builder, java.lang.Class<R> responseType)
protected com.sun.jersey.api.client.WebResource.Builder buildRequest(java.lang.String pathWithinContext,
java.lang.String query)