Commit d457bfe77d8bb47f9d04908cc0e9af9504bfd7ce

Authored by Nathanael Jourdane
1 parent 2ee69d23
Exists in master and in 1 other branch b6.0.X

Add VOTable getter.

src/main/java/eu/omp/irap/vespa/votable/controller/VOTableController.java
... ... @@ -78,7 +78,7 @@ public class VOTableController implements VOTableViewListener {
78 78 // TODO: can't fill table exception
79 79 public void readTable() throws CantGetVOTableException {
80 80 if (voTablePath == null) {
81   - voTablePath = VOTableController.getVOTable(targetURL, query);
  81 + voTablePath = VOTableController.downloadVOTable(targetURL, query);
82 82 }
83 83 voTable = VOTableParser.parseVOTable(voTablePath);
84 84 checkVOTable();
... ... @@ -116,7 +116,7 @@ public class VOTableController implements VOTableViewListener {
116 116  
117 117 }
118 118  
119   - public static String getVOTable(String targetURL, String query) throws CantGetVOTableException {
  119 + public static String downloadVOTable(String targetURL, String query) throws CantGetVOTableException {
120 120 String url = targetURL + "/sync";
121 121  
122 122 SortedMap<String, String> parameters = new TreeMap<>();
... ... @@ -142,6 +142,10 @@ public class VOTableController implements VOTableViewListener {
142 142 return voTableData;
143 143 }
144 144  
  145 + public VOTABLE getVOTable() {
  146 + return voTable;
  147 + }
  148 +
145 149 public String getVOTablePath() {
146 150 return voTablePath;
147 151 }
... ...