Commit 41dfaa78 authored by zhang's avatar zhang

update

parent 83035537
......@@ -11,10 +11,9 @@ import java.util.List;
public class NewSample {
public static void main(String[] args) {
RemoteSaAuthHandler rsh = new RemoteSaAuthHandler("guantiantian","q1w2e3r4","121.199.160.117",9000);
rsh.setAppInstance("150.158.75.213",8080,"TXPIMDB");
rsh.loginGetSaToken();
rsh.serverIP ="150.158.75.213";
rsh.serverPort=8080;
rsh.dbName="TXPIMDB";
//初始化远程查询对象
RemoteTdPimHelper rqh = new RemoteTdPimHelper(rsh);
......
......@@ -21,6 +21,12 @@ public class RemoteSaAuthHandler {
this.saServerPort = saServerPort;
}
public void setAppInstance(String serverID, int serverPort, String dbName) {
this.serverIP = serverID;
this.serverPort=serverPort;
this.dbName=dbName;
}
public String loginGetSaToken(){
String url="http://"+this.saServerIP +":"+this.saServerPort +"/sso/doLogin";
this.saToken = PimHttpUtil.loginGetSaToken(url,this.user,this.password);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment