diff --git a/gxHTTP/src/main/java/org/gcube/common/gxhttp/reference/GXConnection.java b/gxHTTP/src/main/java/org/gcube/common/gxhttp/reference/GXConnection.java index 44383db..060cb49 100644 --- a/gxHTTP/src/main/java/org/gcube/common/gxhttp/reference/GXConnection.java +++ b/gxHTTP/src/main/java/org/gcube/common/gxhttp/reference/GXConnection.java @@ -51,8 +51,7 @@ public class GXConnection { private String body; private InputStream bodyAsStream; private Map properties = new HashMap<>(); - private boolean extCall = false; - + public GXConnection(String address) { this.address = address; } @@ -239,19 +238,5 @@ public class GXConnection { public void setProperty(String name, String value) { this.properties.put(name, value); } - - /** - * @param extCall the extCall to set - */ - public void setExtCall(boolean extCall) { - this.extCall = extCall; - } - - /** - * @return the extCall - */ - public boolean isExtCall() { - return extCall; - } } diff --git a/gxHTTP/src/main/java/org/gcube/common/gxhttp/reference/GXHTTPRequestBuilder.java b/gxHTTP/src/main/java/org/gcube/common/gxhttp/reference/GXHTTPRequestBuilder.java index dce3961..10f5649 100644 --- a/gxHTTP/src/main/java/org/gcube/common/gxhttp/reference/GXHTTPRequestBuilder.java +++ b/gxHTTP/src/main/java/org/gcube/common/gxhttp/reference/GXHTTPRequestBuilder.java @@ -4,9 +4,8 @@ import java.io.UnsupportedEncodingException; import java.net.HttpURLConnection; import java.net.URLEncoder; import java.util.Map; -import java.util.Objects; -import java.util.regex.Pattern; import java.util.Map.Entry; +import java.util.Objects; import org.gcube.common.gxhttp.reference.GXConnection.HTTPMETHOD; import org.slf4j.Logger; @@ -188,12 +187,4 @@ public class GXHTTPRequestBuilder { return this.connection.send(HTTPMETHOD.CONNECT); } - /* - * (non-Javadoc) - * - * @see org.gcube.common.gxrest.request.GXHTTP#isExternalCall(boolean) - */ - public void isExternalCall(boolean ext) { - this.connection.setExtCall(ext); - } } diff --git a/gxHTTP/src/main/java/org/gcube/common/gxhttp/request/GXHTTPCommonRequest.java b/gxHTTP/src/main/java/org/gcube/common/gxhttp/request/GXHTTPCommonRequest.java index 37a8294..c015cce 100644 --- a/gxHTTP/src/main/java/org/gcube/common/gxhttp/request/GXHTTPCommonRequest.java +++ b/gxHTTP/src/main/java/org/gcube/common/gxhttp/request/GXHTTPCommonRequest.java @@ -83,14 +83,6 @@ class GXHTTPCommonRequest { public HttpURLConnection connect() throws Exception { return builder.connect(); } - - - /* (non-Javadoc) - * @see org.gcube.common.gxhttp.reference.GXHTTP#isExternalCall(boolean) - */ - public void isExternalCall(boolean ext) { - builder.isExternalCall(ext); - } /** * Clear up the request.