()
| 90 | |
| 91 | |
| 92 | public void lucian() |
| 93 | throws Exception { |
| 94 | |
| 95 | Lucian.init(); |
| 96 | if (bucketname.isEmpty() || endpoint.isEmpty() || type.isEmpty()) { |
| 97 | System.exit(1); |
| 98 | } |
| 99 | |
| 100 | if ( |
| 101 | (endpoint.startsWith("https"))) { |
| 102 | OSSObjectURL = new URL(endpoint + bucketname + path + UID); |
| 103 | } else { |
| 104 | OSSObjectURL = new URL("http://" + bucketname + "." + endpoint.substring(7) + path + UID); |
| 105 | } |
| 106 | runLucian(); |
| 107 | } |
| 108 | |
| 109 | private static void runLucian() { |
| 110 | try { |