Replaced all tabs with spaces in java and pom.xml
[so.git] / mso-api-handlers / mso-api-handler-common / src / main / java / org / onap / so / apihandler / common / RequestClient.java
index 9f5c846..0aac35d 100644 (file)
@@ -24,7 +24,6 @@ package org.onap.so.apihandler.common;
 
 import java.io.IOException;
 import java.security.GeneralSecurityException;
-
 import org.apache.http.HttpResponse;
 import org.apache.http.client.ClientProtocolException;
 import org.apache.http.client.HttpClient;
@@ -34,72 +33,70 @@ import org.slf4j.LoggerFactory;
 import org.springframework.core.env.Environment;
 
 public abstract class RequestClient {
-       private static Logger logger = LoggerFactory.getLogger(RequestClient.class);
-       protected Environment props;
-       protected String url;
-       protected HttpClient client;
-       private int type;
-       
-       public RequestClient(int type){
-               this.type = type;
-       }
-       
-       public void setProps(Environment env) {
-               this.props = env;
-       }
-
-       public void setUrl(String url) {
-               this.url = url;
-       }
-       
-       public String getUrl() {
-               return url;
-       }
-
-       public int getType(){
-               return type;
-       }
-
-       public HttpClient getClient() {
-               return client;
-       }
-
-       public void setClient(HttpClient client) {
-               this.client = client;
-       }
-
-       public abstract HttpResponse post(String request, String requestId, String requestTimeout, String schemaVersion, String serviceInstanceId, String action) throws IOException;
-
-       public abstract HttpResponse post(String request) throws ClientProtocolException, IOException;
-       
-       public abstract HttpResponse post(RequestClientParameter parameterObject) throws ClientProtocolException, IOException;
-
-       public abstract HttpResponse get() 
-                                       throws IOException;
-       
-       protected String decryptPropValue(String prop, String defaultValue, String encryptionKey) {
-                try {
-                        String result = CryptoUtils.decrypt(prop, encryptionKey);
-                        return result;
-                }      
-                catch (GeneralSecurityException e) {
-                        logger.debug("Security exception", e);
-                }
-                return defaultValue;
-        }
-       
-       protected String getEncryptedPropValue (String prop, String defaultValue, String encryptionKey) {
-                try {
-                        String result = CryptoUtils.decrypt(prop, encryptionKey);
-                        return result;
-                }      
-                catch (GeneralSecurityException e) {
-                        logger.debug("Security exception", e);
-                }
-                return defaultValue;
-        }
-
-       
+    private static Logger logger = LoggerFactory.getLogger(RequestClient.class);
+    protected Environment props;
+    protected String url;
+    protected HttpClient client;
+    private int type;
+
+    public RequestClient(int type) {
+        this.type = type;
+    }
+
+    public void setProps(Environment env) {
+        this.props = env;
+    }
+
+    public void setUrl(String url) {
+        this.url = url;
+    }
+
+    public String getUrl() {
+        return url;
+    }
+
+    public int getType() {
+        return type;
+    }
+
+    public HttpClient getClient() {
+        return client;
+    }
+
+    public void setClient(HttpClient client) {
+        this.client = client;
+    }
+
+    public abstract HttpResponse post(String request, String requestId, String requestTimeout, String schemaVersion,
+            String serviceInstanceId, String action) throws IOException;
+
+    public abstract HttpResponse post(String request) throws ClientProtocolException, IOException;
+
+    public abstract HttpResponse post(RequestClientParameter parameterObject)
+            throws ClientProtocolException, IOException;
+
+    public abstract HttpResponse get() throws IOException;
+
+    protected String decryptPropValue(String prop, String defaultValue, String encryptionKey) {
+        try {
+            String result = CryptoUtils.decrypt(prop, encryptionKey);
+            return result;
+        } catch (GeneralSecurityException e) {
+            logger.debug("Security exception", e);
+        }
+        return defaultValue;
+    }
+
+    protected String getEncryptedPropValue(String prop, String defaultValue, String encryptionKey) {
+        try {
+            String result = CryptoUtils.decrypt(prop, encryptionKey);
+            return result;
+        } catch (GeneralSecurityException e) {
+            logger.debug("Security exception", e);
+        }
+        return defaultValue;
+    }
+
 
 
 }