Removed isExtCall because the authorization is not set automatically

anymore
This commit is contained in:
Luca Frosini 2022-07-08 15:12:58 +02:00
parent 66ce9b8a23
commit 8573d2c6e3
3 changed files with 2 additions and 34 deletions

View File

@ -51,8 +51,7 @@ public class GXConnection {
private String body;
private InputStream bodyAsStream;
private Map<String, String> 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;
}
}

View File

@ -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);
}
}

View File

@ -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.