@@ -14,27 +14,27 @@ public enum SteveConfiguration {
1414 CONFIG ;
1515
1616 // Root mapping for Spring
17- private String springMapping = "/" ;
17+ private final String springMapping = "/" ;
1818 // Web frontend
19- private String springManagerMapping = "/manager/*" ;
19+ private final String springManagerMapping = "/manager/*" ;
2020 // Mapping for CXF SOAP services
21- private String cxfMapping = "/services/*" ;
21+ private final String cxfMapping = "/services/*" ;
2222 // Dummy service path
23- private String routerEndpointPath = "/CentralSystemService" ;
23+ private final String routerEndpointPath = "/CentralSystemService" ;
2424 // Time zone for the application and database connections
25- private String timeZoneId = "UTC" ; // or ZoneId.systemDefault().getId();
25+ private final String timeZoneId = "UTC" ; // or ZoneId.systemDefault().getId();
2626
2727 // -------------------------------------------------------------------------
2828 // main.properties
2929 // -------------------------------------------------------------------------
3030
31- private String contextPath ;
32- private String steveVersion ;
33- private ApplicationProfile profile ;
34- private Ocpp ocpp ;
35- private Auth auth ;
36- private DB db ;
37- private Jetty jetty ;
31+ private final String contextPath ;
32+ private final String steveVersion ;
33+ private final ApplicationProfile profile ;
34+ private final Ocpp ocpp ;
35+ private final Auth auth ;
36+ private final DB db ;
37+ private final Jetty jetty ;
3838
3939 SteveConfiguration () {
4040 PropertiesFileLoader p = new PropertiesFileLoader ("main.properties" );
@@ -103,43 +103,43 @@ private void validate() {
103103 // Jetty configuration
104104 @ Builder @ Getter
105105 public static class Jetty {
106- private String serverHost ;
107- private boolean gzipEnabled ;
106+ private final String serverHost ;
107+ private final boolean gzipEnabled ;
108108
109109 // HTTP
110- private boolean httpEnabled ;
111- private int httpPort ;
110+ private final boolean httpEnabled ;
111+ private final int httpPort ;
112112
113113 // HTTPS
114- private boolean httpsEnabled ;
115- private int httpsPort ;
116- private String keyStorePath ;
117- private String keyStorePassword ;
114+ private final boolean httpsEnabled ;
115+ private final int httpsPort ;
116+ private final String keyStorePath ;
117+ private final String keyStorePassword ;
118118 }
119119
120120 // Database configuration
121121 @ Builder @ Getter
122122 public static class DB {
123- private String ip ;
124- private int port ;
125- private String schema ;
126- private String userName ;
127- private String password ;
128- private boolean sqlLogging ;
123+ private final String ip ;
124+ private final int port ;
125+ private final String schema ;
126+ private final String userName ;
127+ private final String password ;
128+ private final boolean sqlLogging ;
129129 }
130130
131131 // Credentials for Web interface access
132132 @ Builder @ Getter
133133 public static class Auth {
134- private String userName ;
135- private String password ;
134+ private final String userName ;
135+ private final String password ;
136136 }
137137
138138 // OCPP-related configuration
139139 @ Builder @ Getter
140140 public static class Ocpp {
141- private boolean autoRegisterUnknownStations ;
142- private WsSessionSelectStrategyEnum wsSessionSelectStrategy ;
141+ private final boolean autoRegisterUnknownStations ;
142+ private final WsSessionSelectStrategyEnum wsSessionSelectStrategy ;
143143 }
144144
145145}
0 commit comments