mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-14 17:26:22 +01:00
mark old http-client api as deprecated
This commit is contained in:
@@ -48,7 +48,10 @@ import java.util.Map;
|
|||||||
* @apiviz.landmark
|
* @apiviz.landmark
|
||||||
* @apiviz.uses sonia.scm.net.HttpRequest
|
* @apiviz.uses sonia.scm.net.HttpRequest
|
||||||
* @apiviz.uses sonia.scm.net.HttpResponse
|
* @apiviz.uses sonia.scm.net.HttpResponse
|
||||||
|
*
|
||||||
|
* @deprecated use {@link sonia.scm.net.ahc.AdvancedHttpClient} instead.
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public interface HttpClient
|
public interface HttpClient
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
@@ -51,7 +51,11 @@ import java.util.Map;
|
|||||||
*
|
*
|
||||||
* @author Sebastian Sdorra
|
* @author Sebastian Sdorra
|
||||||
* @since 1.9
|
* @since 1.9
|
||||||
|
*
|
||||||
|
* @deprecated use {@link sonia.scm.net.ahc.AdvancedHttpRequest} or
|
||||||
|
* {@link sonia.scm.net.ahc.AdvancedHttpRequestWithBody} instead.
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public class HttpRequest
|
public class HttpRequest
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
@@ -41,12 +41,16 @@ import java.io.InputStream;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import sonia.scm.net.ahc.AdvancedHttpResponse;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Response of a {@link HttpRequest} execute by the {@link HttpClient}.
|
* Response of a {@link HttpRequest} execute by the {@link HttpClient}.
|
||||||
*
|
*
|
||||||
* @author Sebastian Sdorra
|
* @author Sebastian Sdorra
|
||||||
|
*
|
||||||
|
* @deprecated use {@link AdvancedHttpResponse} instead
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public interface HttpResponse extends Closeable
|
public interface HttpResponse extends Closeable
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
@@ -38,7 +38,6 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
|||||||
import javax.xml.bind.annotation.XmlRootElement;
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import static org.junit.Assert.*;
|
import static org.junit.Assert.*;
|
||||||
import static org.hamcrest.Matchers.*;
|
|
||||||
import static org.mockito.Mockito.*;
|
import static org.mockito.Mockito.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user