diff options
Diffstat (limited to 'example')
4 files changed, 7 insertions, 22 deletions
diff --git a/example/src/main/java/org/onap/msb/sdk/example/client/AnimalServiceClient.java b/example/src/main/java/org/onap/msb/sdk/example/client/AnimalServiceClient.java index 8600241..7cd1654 100644 --- a/example/src/main/java/org/onap/msb/sdk/example/client/AnimalServiceClient.java +++ b/example/src/main/java/org/onap/msb/sdk/example/client/AnimalServiceClient.java @@ -20,11 +20,6 @@ import retrofit2.Call; import retrofit2.http.GET; import retrofit2.http.Path; -/** - * @author hu.rui - * - */ - @ServiceHttpEndPoint(serviceName = "animals", serviceVersion = "v1") public interface AnimalServiceClient { diff --git a/example/src/main/java/org/onap/msb/sdk/example/client/ExampleClient.java b/example/src/main/java/org/onap/msb/sdk/example/client/ExampleClient.java index 59263f1..2bcbae1 100644 --- a/example/src/main/java/org/onap/msb/sdk/example/client/ExampleClient.java +++ b/example/src/main/java/org/onap/msb/sdk/example/client/ExampleClient.java @@ -11,9 +11,6 @@ * or implied. See the License for the specific language governing permissions and limitations under * the License. ******************************************************************************/ -/** - * - */ package org.onap.msb.sdk.example.client; import java.io.IOException; @@ -21,7 +18,7 @@ import java.io.IOException; import org.onap.msb.sdk.example.common.Animal; import org.onap.msb.sdk.httpclient.RetrofitServiceCreater; import org.onap.msb.sdk.httpclient.conf.HttpClientConf; -import org.onap.msb.sdk.httpclient.msb.MSBServiceWrapperClient; +import org.onap.msb.sdk.httpclient.msb.MSBServiceClient; public class ExampleClient { @@ -35,7 +32,7 @@ public class ExampleClient { int MSB_Port=10081; HttpClientConf globalHttpClientConf = new HttpClientConf(); - MSBServiceWrapperClient msbClient = new MSBServiceWrapperClient(MSB_IP, MSB_Port); + MSBServiceClient msbClient = new MSBServiceClient(MSB_IP, MSB_Port); RetrofitServiceCreater retrofitServiceCreater = new RetrofitServiceCreater(globalHttpClientConf, msbClient); diff --git a/example/src/main/java/org/onap/msb/sdk/example/server/ExampleApp.java b/example/src/main/java/org/onap/msb/sdk/example/server/ExampleApp.java index b93875f..76827c5 100644 --- a/example/src/main/java/org/onap/msb/sdk/example/server/ExampleApp.java +++ b/example/src/main/java/org/onap/msb/sdk/example/server/ExampleApp.java @@ -14,7 +14,7 @@ package org.onap.msb.sdk.example.server; import org.onap.msb.sdk.example.server.resources.AnimalResource; -import org.onap.msb.sdk.httpclient.msb.MSBServiceWrapperClient; +import org.onap.msb.sdk.httpclient.msb.MSBServiceClient; import io.dropwizard.Application; import io.dropwizard.setup.Environment; @@ -44,7 +44,7 @@ public class ExampleApp extends Application<Config> { environment.jersey().register(new AnimalResource()); - MSBServiceWrapperClient msbClient = new MSBServiceWrapperClient(MSB_IP, MSB_Port); + MSBServiceClient msbClient = new MSBServiceClient(MSB_IP, MSB_Port); MsbHelper helper = new MsbHelper(msbClient); helper.registerMsb(); diff --git a/example/src/main/java/org/onap/msb/sdk/example/server/MsbHelper.java b/example/src/main/java/org/onap/msb/sdk/example/server/MsbHelper.java index 7b0c79d..bd49a9b 100644 --- a/example/src/main/java/org/onap/msb/sdk/example/server/MsbHelper.java +++ b/example/src/main/java/org/onap/msb/sdk/example/server/MsbHelper.java @@ -20,20 +20,13 @@ import java.util.Set; import org.jvnet.hk2.annotations.Service; import org.onap.msb.sdk.discovery.entity.MicroServiceInfo; import org.onap.msb.sdk.discovery.entity.Node; -import org.onap.msb.sdk.httpclient.msb.MSBServiceWrapperClient; +import org.onap.msb.sdk.httpclient.msb.MSBServiceClient; -/** - * @author hu.rui - * - */ -@Service public class MsbHelper { - private MSBServiceWrapperClient msbClient; + private MSBServiceClient msbClient; - - - public MsbHelper(MSBServiceWrapperClient msbClient) { + public MsbHelper(MSBServiceClient msbClient) { super(); this.msbClient = msbClient; } |