Skip to content

Commit

Permalink
ini configuration fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mrglaster committed Jul 1, 2023
1 parent b84003f commit 093b4cc
Showing 1 changed file with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ public class CfgReader {
private static final String cfgFilePath = "cfg/configuration.ini";

private static int port;
private static String protocol;


private static String serverUrl;
Expand Down Expand Up @@ -45,14 +44,6 @@ private void readDatabaseParameters(INIConfiguration iniConfiguration){
} catch (Exception e){
port = 8080;
}
protocol = iniConfiguration.getSection("server").getProperty("protocol").toString();
if (!protocol.equalsIgnoreCase("http") && !protocol.equalsIgnoreCase("https")){
try {
throw new Exception("[LOADER] Unknown protocol: " + protocol);
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}

/**Reads the FTP-server parameters from the ini file*/
Expand Down Expand Up @@ -138,12 +129,4 @@ public static int getPort() {
public static void setPort(int port) {
CfgReader.port = port;
}

public static String getProtocol() {
return protocol;
}

public static void setProtocol(String protocol) {
CfgReader.protocol = protocol;
}
}

0 comments on commit 093b4cc

Please sign in to comment.