<artifactId>spring-web</artifactId>\r
<version>5.3.13</version>\r
</dependency>\r
+ <dependency>\r
+ <groupId>jakarta.ws.rs</groupId>\r
+ <artifactId>jakarta.ws.rs-api</artifactId>\r
+ </dependency>\r
</dependencies>\r
<build>\r
<resources>\r
/**
- * Copyright 2018-2020 ZTE Corporation.
+ * Copyright 2018-2022 ZTE Corporation.
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import javax.ws.rs.client.Entity;
+import jakarta.ws.rs.client.Entity;
import java.util.HashMap;
import java.util.Map;
import java.util.regex.Matcher;
/**
- * Copyright 2020 - 2021 Fujitsu Limited.
+ * Copyright 2020 - 2022 Fujitsu Limited, ZTE Corporation
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
-import javax.ws.rs.client.Entity;
-import javax.ws.rs.core.MultivaluedHashMap;
-import javax.ws.rs.core.MultivaluedMap;
+import jakarta.ws.rs.client.Entity;
+import jakarta.ws.rs.core.MultivaluedHashMap;
+import jakarta.ws.rs.core.MultivaluedMap;
import java.util.HashMap;
import java.util.Map;
import org.onap.holmes.common.utils.JerseyClient;\r
import org.springframework.stereotype.Service;\r
\r
-import javax.ws.rs.client.Entity;\r
+import jakarta.ws.rs.client.Entity;\r
import java.util.concurrent.TimeUnit;\r
\r
@Getter\r
/**\r
- * Copyright 2017 ZTE Corporation.\r
+ * Copyright 2017 - 2022 ZTE Corporation.\r
*\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
*/\r
package org.onap.holmes.common.utils;\r
\r
-import javax.ws.rs.WebApplicationException;\r
-import javax.ws.rs.core.MediaType;\r
-import javax.ws.rs.core.Response;\r
+import jakarta.ws.rs.WebApplicationException;\r
+import jakarta.ws.rs.core.MediaType;\r
+import jakarta.ws.rs.core.Response;\r
\r
public class ExceptionUtil {\r
\r
/**
- * Copyright 2020 ZTE Corporation.
+ * Copyright 2020 - 2022 ZTE Corporation.
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
package org.onap.holmes.common.utils;
+import jakarta.ws.rs.client.*;
+import jakarta.ws.rs.core.Response;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.net.ssl.SSLContext;
import javax.net.ssl.TrustManager;
import javax.net.ssl.X509TrustManager;
-import javax.ws.rs.client.*;
-import javax.ws.rs.core.Response;
import java.security.KeyManagementException;
import java.security.NoSuchAlgorithmException;
import java.security.cert.X509Certificate;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
-import javax.ws.rs.client.Entity;
-import javax.ws.rs.core.MediaType;
+import jakarta.ws.rs.client.Entity;
+import jakarta.ws.rs.core.MediaType;
import java.util.concurrent.TimeUnit;
import static org.onap.holmes.common.utils.JerseyClient.PROTOCOL_HTTP;
/**
- * Copyright 2021 ZTE Corporation.
+ * Copyright 2021 - 2022 ZTE Corporation.
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
import org.springframework.web.bind.annotation.ResponseStatus;
import org.springframework.web.bind.annotation.RestControllerAdvice;
-import javax.ws.rs.WebApplicationException;
+import jakarta.ws.rs.WebApplicationException;
@RestControllerAdvice
public class RestExceptionHandler {
* ============LICENSE_START=======================================================
* org.onap.holmes.common.aai
* ================================================================================
- * Copyright (C) 2018-2021 Huawei, ZTE. All rights reserved.
+ * Copyright (C) 2018-2022 Huawei, ZTE. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
+import jakarta.ws.rs.core.Response;
import org.easymock.EasyMock;
import org.junit.After;
import org.junit.Before;
import org.powermock.modules.junit4.PowerMockRunner;
import org.powermock.reflect.Whitebox;
-import javax.ws.rs.core.Response;
import java.io.*;
import java.util.HashMap;
import java.util.Map;
/**
- * Copyright 2020 - 2021 Fujitsu, ZTE Limited.
+ * Copyright 2020 - 2022 Fujitsu Limited, ZTE Corporation.
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
+import jakarta.ws.rs.client.Entity;
+import jakarta.ws.rs.core.MultivaluedHashMap;
+import jakarta.ws.rs.core.MultivaluedMap;
import org.easymock.EasyMock;
import org.junit.*;
import org.junit.rules.ExpectedException;
import org.powermock.modules.junit4.PowerMockRunner;
import org.powermock.reflect.Whitebox;
-import javax.ws.rs.client.Entity;
-import javax.ws.rs.core.MultivaluedHashMap;
-import javax.ws.rs.core.MultivaluedMap;
import java.io.*;
import java.util.HashMap;
import java.util.Map;
import org.powermock.modules.junit4.PowerMockRunner;
import org.powermock.reflect.internal.WhiteboxImpl;
-import javax.ws.rs.client.Entity;
+import jakarta.ws.rs.client.Entity;
import static org.easymock.EasyMock.anyObject;
/**
- * Copyright 2020 - 2021 ZTE Corporation.
+ * Copyright 2020 - 2022 ZTE Corporation.
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
package org.onap.holmes.common.utils;
+import jakarta.ws.rs.client.Client;
+import jakarta.ws.rs.client.Entity;
+import jakarta.ws.rs.client.Invocation;
+import jakarta.ws.rs.client.WebTarget;
+import jakarta.ws.rs.core.MediaType;
+import jakarta.ws.rs.core.Response;
import org.easymock.EasyMock;
-import org.junit.Rule;
import org.junit.Test;
-import org.junit.rules.ExpectedException;
import org.junit.runner.RunWith;
-import org.onap.holmes.common.exception.HttpException;
import org.powermock.api.easymock.PowerMock;
import org.powermock.core.classloader.annotations.PowerMockIgnore;
import org.powermock.modules.junit4.PowerMockRunner;
import org.powermock.reflect.internal.WhiteboxImpl;
-import javax.ws.rs.client.Client;
-import javax.ws.rs.client.Entity;
-import javax.ws.rs.client.Invocation;
-import javax.ws.rs.client.WebTarget;
-import javax.ws.rs.core.MediaType;
-import javax.ws.rs.core.Response;
import java.util.HashMap;
import java.util.Map;
import org.powermock.core.classloader.annotations.PrepareForTest;
import org.powermock.modules.junit4.PowerMockRunner;
-import javax.ws.rs.client.Entity;
-import javax.ws.rs.core.MediaType;
+import jakarta.ws.rs.client.Entity;
+import jakarta.ws.rs.core.MediaType;
import static org.easymock.EasyMock.anyObject;
import static org.easymock.EasyMock.expect;
<dropwizard.version>2.0.9</dropwizard.version>\r
<swagger.version>1.6.4</swagger.version>\r
<lombok.version>1.18.4</lombok.version>\r
- <jersey.version>2.31</jersey.version>\r
+ <jersey.version>3.0.5</jersey.version>\r
+ <jakarta.ws.rs.version>3.1.0</jakarta.ws.rs.version>\r
<slf4j.version>1.7.25</slf4j.version>\r
<jacoco.version>0.8.5</jacoco.version>\r
<jackson.version>2.13.3</jackson.version>\r
<artifactId>gson</artifactId>\r
<version>2.8.9</version>\r
</dependency>\r
+ <dependency>\r
+ <groupId>jakarta.ws.rs</groupId>\r
+ <artifactId>jakarta.ws.rs-api</artifactId>\r
+ <version>${jakarta.ws.rs.version}</version>\r
+ </dependency>\r
</dependencies>\r
</dependencyManagement>\r
\r