Merge "Reorder modifiers"
[so.git] / mso-api-handlers / mso-api-handler-common / src / main / java / org / openecomp / mso / apihandler / common / CamundaTaskClient.java
index 3941e1e..cbbbff3 100644 (file)
@@ -25,7 +25,6 @@ import java.io.IOException;
 import javax.xml.bind.DatatypeConverter;\r
 \r
 import org.apache.http.HttpResponse;\r
-import org.apache.http.client.ClientProtocolException;\r
 import org.apache.http.client.methods.HttpGet;\r
 import org.apache.http.client.methods.HttpPost;\r
 import org.apache.http.entity.StringEntity;\r
@@ -39,8 +38,7 @@ public class CamundaTaskClient extends RequestClient{
        }\r
        \r
        @Override\r
-       public HttpResponse post(String jsonReq)\r
-                                       throws ClientProtocolException, IOException{\r
+       public HttpResponse post(String jsonReq) throws IOException{\r
                HttpPost post = new HttpPost(url);\r
                msoLogger.debug("Camunda Task url is: "+ url);          \r
 \r
@@ -65,27 +63,19 @@ public class CamundaTaskClient extends RequestClient{
        \r
        @Override\r
        public HttpResponse post(String camundaReqXML, String requestId,\r
-                       String requestTimeout, String schemaVersion, String serviceInstanceId, String action)\r
-                                       throws ClientProtocolException, IOException{\r
-               msoLogger.debug("Method not supported");\r
-               return null;\r
+                       String requestTimeout, String schemaVersion, String serviceInstanceId, String action) {\r
+               throw new UnsupportedOperationException("Method not supported.");\r
        }\r
-       \r
+\r
        @Override\r
-       public HttpResponse post(String requestId, boolean isBaseVfModule,\r
-                       int recipeTimeout, String requestAction, String serviceInstanceId,\r
-                       String vnfId, String vfModuleId, String volumeGroupId, String networkId, String configurationId,\r
-                       String serviceType, String vnfType, String vfModuleType, String networkType,\r
-                       String requestDetails, String recipeParamXsd)\r
-                                       throws ClientProtocolException, IOException{\r
-               msoLogger.debug("Method not supported");\r
-               return null;\r
+       public HttpResponse post(RequestClientParamater params) {\r
+               throw new UnsupportedOperationException("Method not supported.");\r
        }\r
-       \r
+\r
        @Override\r
-       public HttpResponse get() throws ClientProtocolException, IOException{\r
+       public HttpResponse get() throws IOException {\r
                HttpGet get = new HttpGet(url);\r
-               msoLogger.debug("Camunda Task url is: "+ url);  \r
+               msoLogger.debug("Camunda Task url is: "+ url);\r
                String encryptedCredentials;\r
                if(props!=null){\r
                        encryptedCredentials = props.getProperty(CommonConstants.CAMUNDA_AUTH,null);\r
@@ -97,7 +87,6 @@ public class CamundaTaskClient extends RequestClient{
                                }\r
                        }\r
                }\r
-               \r
                return client.execute(get);\r
        }\r
 \r