public class AMWebClient extends Object
| Constructor and Description |
|---|
AMWebClient(org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
exec(HttpVerb method,
com.sun.jersey.api.client.WebResource resource,
Class<T> c)
Execute the operation.
|
<T> T |
exec(HttpVerb method,
com.sun.jersey.api.client.WebResource resource,
com.sun.jersey.api.client.GenericType<T> t)
Execute the operation.
|
<T> T |
get(com.sun.jersey.api.client.WebResource resource,
Class<T> c)
Execute the GET operation.
|
BaseRestClient |
getRestClient() |
com.sun.jersey.api.client.WebResource |
resource(String url) |
public com.sun.jersey.api.client.WebResource resource(String url)
public BaseRestClient getRestClient()
public <T> T exec(HttpVerb method, com.sun.jersey.api.client.WebResource resource, Class<T> c) throws IOException
T - type expectedmethod - method to executeresource - resource to work againstc - class to buildIOException - on any failurepublic <T> T exec(HttpVerb method, com.sun.jersey.api.client.WebResource resource, com.sun.jersey.api.client.GenericType<T> t) throws IOException
T - type expectedmethod - method to executeresource - resource to work againstt - type to work withIOException - on any failurepublic <T> T get(com.sun.jersey.api.client.WebResource resource,
Class<T> c)
throws IOException
T - type expectedresource - resource to work againstc - class to buildIOException - on any failureCopyright © 2014–2015 The Apache Software Foundation. All rights reserved.