private static final EELFLogger LOG = EELFManager.getInstance().getLogger(ProviderOperations.class);
- private static URL url;
- private static String basic_auth;
+ private URL url;
+ private String basic_auth;
private static ProviderOperationRequestFormatter requestFormatter = new GenericProviderOperationRequestFormatter();
* @throws Exception if there was a failure processing the request. The exception message is the failure reason.
*/
@SuppressWarnings("nls")
- public static JsonNode topologyDG(String rpcName, JsonNode msg) throws APPCException {
+ public JsonNode topologyDG(String rpcName, JsonNode msg) throws APPCException {
if (msg == null) {
throw new APPCException("Provided message was null");
}
*
* @return The new value of URL
*/
- public static String getUrl() {
+ public String getUrl() {
return url.toExternalForm();
}
- public static void setUrl(String newUrl) {
+ public void setUrl(String newUrl) {
try {
url = new URL(newUrl);
} catch (MalformedURLException e) {
* @param password The password for the user
* @return The new value of the basic auth string that will be used in the request headers
*/
- public static String setAuthentication(String user, String password) {
+ public String setAuthentication(String user, String password) {
if (user != null && password != null) {
String authStr = user + ":" + password;
basic_auth = new String(Base64.encodeBase64(authStr.getBytes()));
}
@SuppressWarnings("deprecation")
- private static HttpClient getHttpClient() throws APPCException {
+ private HttpClient getHttpClient() throws APPCException {
HttpClient client;
if (url.getProtocol().equals("https")) {
try {