Browse Source

REPORT-26672 review 改进

feature/big-screen
Hugh.C 5 years ago
parent
commit
806392a3cd
  1. 9
      designer-base/src/main/java/com/fr/design/env/RemoteDesignerWorkspaceInfo.java

9
designer-base/src/main/java/com/fr/design/env/RemoteDesignerWorkspaceInfo.java vendored

@ -6,8 +6,8 @@ import com.fr.stable.StableUtils;
import com.fr.stable.StringUtils;
import com.fr.stable.xml.XMLPrintWriter;
import com.fr.stable.xml.XMLableReader;
import com.fr.workspace.WorkContext;
import com.fr.workspace.connect.WorkspaceConnectionInfo;
import com.fr.workspace.engine.channel.http.FunctionalHttpRequest;
public class RemoteDesignerWorkspaceInfo implements DesignerWorkspaceInfo {
@ -92,12 +92,13 @@ public class RemoteDesignerWorkspaceInfo implements DesignerWorkspaceInfo {
@Override
public boolean checkValid() {
boolean result = false;
try {
new FunctionalHttpRequest(this.connection).validateVT();
result = WorkContext.getConnector().testConnection(connection);
} catch (Exception e) {
FineLoggerFactory.getLogger().error(e.getMessage(), e);
return false;
return result;
}
return true;
return result;
}
}

Loading…
Cancel
Save