/**\r
- * Copyright 2017 ZTE Corporation.\r
- *\r
+ * Copyright 2017-2020 ZTE Corporation.\r
+ * <p>\r
* Licensed under the Apache License, Version 2.0 (the "License");\r
* you may not use this file except in compliance with the License.\r
* You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
+ * <p>\r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ * <p>\r
* Unless required by applicable law or agreed to in writing, software\r
* distributed under the License is distributed on an "AS IS" BASIS,\r
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
*/\r
package org.onap.holmes.rulemgt.bolt.enginebolt;\r
\r
-import java.io.IOException;\r
-import java.util.HashMap;\r
-import javax.ws.rs.core.MediaType;\r
import lombok.extern.slf4j.Slf4j;\r
import org.apache.http.HttpResponse;\r
import org.apache.http.client.methods.HttpDelete;\r
import org.onap.holmes.rulemgt.bean.request.CorrelationDeployRule4Engine;\r
import org.onap.holmes.rulemgt.constant.RuleMgtConstant;\r
\r
+import javax.ws.rs.core.MediaType;\r
+import java.io.IOException;\r
+import java.util.HashMap;\r
+\r
@Slf4j\r
@Service\r
public class EngineService {\r
HttpPut httpPut = new HttpPut(url);\r
try {\r
httpClient = HttpsUtils.getConditionalHttpsClient(HttpsUtils.DEFUALT_TIMEOUT);\r
- return HttpsUtils.put(httpPut, headers, new HashMap<>(), new StringEntity(content),httpClient);\r
+ return HttpsUtils.put(httpPut, headers, new HashMap<>(), new StringEntity(content), httpClient);\r
} finally {\r
closeHttpClient(httpClient);\r
}\r
return headers;\r
}\r
\r
- private String getRequestPref(){\r
+ private String getRequestPref() {\r
return HttpsUtils.isHttpsEnabled() ? HTTPS : HTTP;\r
}\r
}\r