forked from gCubeSystem/gx-rest
Removed isExtCall because the authorization is not set automatically
anymore
This commit is contained in:
parent
66ce9b8a23
commit
8573d2c6e3
|
@ -51,7 +51,6 @@ public class GXConnection {
|
||||||
private String body;
|
private String body;
|
||||||
private InputStream bodyAsStream;
|
private InputStream bodyAsStream;
|
||||||
private Map<String, String> properties = new HashMap<>();
|
private Map<String, String> properties = new HashMap<>();
|
||||||
private boolean extCall = false;
|
|
||||||
|
|
||||||
public GXConnection(String address) {
|
public GXConnection(String address) {
|
||||||
this.address = address;
|
this.address = address;
|
||||||
|
@ -240,18 +239,4 @@ public class GXConnection {
|
||||||
this.properties.put(name, 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;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,9 +4,8 @@ import java.io.UnsupportedEncodingException;
|
||||||
import java.net.HttpURLConnection;
|
import java.net.HttpURLConnection;
|
||||||
import java.net.URLEncoder;
|
import java.net.URLEncoder;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.regex.Pattern;
|
|
||||||
import java.util.Map.Entry;
|
import java.util.Map.Entry;
|
||||||
|
import java.util.Objects;
|
||||||
|
|
||||||
import org.gcube.common.gxhttp.reference.GXConnection.HTTPMETHOD;
|
import org.gcube.common.gxhttp.reference.GXConnection.HTTPMETHOD;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
|
@ -188,12 +187,4 @@ public class GXHTTPRequestBuilder {
|
||||||
return this.connection.send(HTTPMETHOD.CONNECT);
|
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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -84,14 +84,6 @@ class GXHTTPCommonRequest {
|
||||||
return builder.connect();
|
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.
|
* Clear up the request.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue