src/csip/sdm/SDMClient.java
@@ -17,7 +17,6 @@ |
import java.net.URL; |
import java.sql.SQLException; |
import java.util.Arrays; |
-import java.util.Properties; |
import java.util.logging.Level; |
import java.util.logging.Logger; |
import javax.net.ssl.HttpsURLConnection; |
@@ -158,18 +157,15 @@ |
* @throws java.sql.SQLException |
*/ |
JSONObject doPOST(JSONObject req) throws SQLException { |
- String uri = this.url; |
- |
EntityBuilder builder = EntityBuilder.create(); |
builder.setText(req.toString()); |
builder.setContentType(ContentType.APPLICATION_JSON); |
|
- HttpEntity reqEntity = builder.build(); |
- HttpPost post = new HttpPost(uri); |
- post.setEntity(reqEntity); |
+ HttpPost post = new HttpPost(url); |
+ post.setEntity(builder.build()); |
|
if (log != null && log.isLoggable(Level.INFO)) { |
- log.info("POST: " + uri); |
+ log.info("POST: " + url); |
log.info("REQUEST JSON: " + req); |
} |
|
src/csip/sdm/SDMConnection.java
@@ -65,11 +65,6 @@ |
} |
|
|
- public String getURL() { |
- return url; |
- } |
- |
- |
@Override |
public void abort(Executor executor) throws SQLException { |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. |
@@ -277,7 +272,7 @@ |
|
@Override |
public boolean isValid(int timeout) throws SQLException { |
- return (SDMClient.ping(url, 15000) != -1); |
+ return SDMClient.ping(url, 15000) != -1; |
} |
|
|