public class WebServiceClient extends Object
Constructor and Description |
---|
WebServiceClient() |
Modifier and Type | Method and Description |
---|---|
com.sun.jersey.api.client.Client |
createClient()
Create a client based on http conf.
|
static void |
destroy() |
protected com.sun.jersey.client.urlconnection.HttpURLConnectionFactory |
getHttpURLConnectionFactory() |
static WebServiceClient |
getWebServiceClient() |
static void |
initialize(org.apache.hadoop.conf.Configuration conf)
Construct a new WebServiceClient based on the configuration.
|
public static void initialize(org.apache.hadoop.conf.Configuration conf) throws Exception
conf
- configuration.Exception
- exception occur.public static WebServiceClient getWebServiceClient()
public com.sun.jersey.api.client.Client createClient()
@VisibleForTesting protected com.sun.jersey.client.urlconnection.HttpURLConnectionFactory getHttpURLConnectionFactory()
public static void destroy()
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.