Update apache camel from 2.x to 3.x
[aai/router-core.git] / src / main / java / org / onap / aai / rest / RestClientComponent.java
index 877e25f..13023fe 100644 (file)
@@ -2,8 +2,8 @@
  * ============LICENSE_START=======================================================
  * org.onap.aai
  * ================================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
- * Copyright © 2017 Amdocs
+ * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
+ * Copyright © 2017-2018 Amdocs
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  * ============LICENSE_END=========================================================
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
  */
 package org.onap.aai.rest;
 
 import org.apache.camel.CamelContext;
 import org.apache.camel.Endpoint;
-import org.apache.camel.impl.UriEndpointComponent;
+import org.apache.camel.spi.annotations.Component;
+import org.apache.camel.support.DefaultComponent;
 
 import java.util.Map;
 
@@ -32,14 +31,15 @@ import java.util.Map;
 /**
  * Represents the component that manages {@link RestClientEndpoint}.
  */
-public class RestClientComponent extends UriEndpointComponent {
+@Component("ecomp-rest")
+public class RestClientComponent extends DefaultComponent {
 
   public RestClientComponent() {
-    super(RestClientEndpoint.class);
+    super();
   }
 
   public RestClientComponent(CamelContext context) {
-    super(context, RestClientEndpoint.class);
+    super(context);
   }
 
   @Override