Opened 10 years ago
Last modified 10 years ago
#823 assigned
Properties file for connection properties
Reported by: | olle | Owned by: | olle |
---|---|---|---|
Milestone: | Proteios SE 2.20.0 | Keywords: | |
Cc: |
Description
Support should be added for reading connection properties from a properties file.
Change History (6)
comment:1 Changed 10 years ago by
Status: | new → assigned |
---|
comment:2 Changed 10 years ago by
Design description:
- New connection properties template file
conf/connection.properties.in
inclient/servlet/
added. It contains settings for accessing files using SSL (Secure Sockets Layer) connection, and redirects for local cache when accessing files via URL. - Outermost Ant build file
build.xml
updated to include filesconnection.properties*
when copying files fromclient/servlet/conf/
towww/WEB-INF/classes/
in distribution directory. - New class/file
ConnectionPropertiesFile.java
inapi/core/
added. It loadsconnection.properties
file and gives access to the settings in the latter. - Class/file
core/Application.java
inapi/core/
updated:
a. Private static methodvoid createSSLFactory()
updated to call new private static methodString fetchProperty(Properties pf, String property, boolean replaceEmptyStringWithNull)
to obtain property values.
b, New private static methodString fetchProperty(Properties pf, String property, boolean replaceEmptyStringWithNull)
added. It fetches a property value from the properties file, if existing, otherwise from system properties. Optional replacement of empty string withnull
, when property value is returned.
c. New private static methodString fetchProperty(Properties pf, String property)
added. It calls new private static methodString fetchProperty(Properties pf, String property, boolean replaceEmptyStringWithNull)
with argumentreplaceEmptyStringWithNull
set tofalse
, to obtain the vallue to return.
comment:3 Changed 10 years ago by
(In [4542]) Refs #823. First version of support for reading connection properties from a properties file:
- New connection properties template file
conf/connection.properties.in
inclient/servlet/
added. It contains settings for accessing files using SSL (Secure Sockets Layer) connection, and redirects for local cache when accessing files via URL. - Outermost Ant build file
build.xml
updated to include filesconnection.properties*
when copying files fromclient/servlet/conf/
towww/WEB-INF/classes/
in distribution directory. - New class/file
ConnectionPropertiesFile.java
inapi/core/
added. It loadsconnection.properties
file and gives access to the settings in the latter. - Class/file
core/Application.java
inapi/core/
updated:
a. Private static methodvoid createSSLFactory()
updated to call new private static methodString fetchProperty(Properties pf, String property, boolean replaceEmptyStringWithNull)
to obtain property values.
b, New private static methodString fetchProperty(Properties pf, String property, boolean replaceEmptyStringWithNull)
added. It fetches a property value from the properties file, if existing, otherwise from system properties. Optional replacement of empty string withnull
, when property value is returned.
c. New private static methodString fetchProperty(Properties pf, String property)
added. It calls new private static methodString fetchProperty(Properties pf, String property, boolean replaceEmptyStringWithNull)
with argumentreplaceEmptyStringWithNull
set tofalse
, to obtain the vallue to return.
comment:4 Changed 10 years ago by
(In [4543]) Refs #823. Loading of connection property values in class/file core/Application.java
in api/core/
updated:
- Private static method
String fetchProperty(Properties pf, String property, boolean replaceEmptyStringWithNull)
updated to uselog.info()
calls for logging output, instead oflog.debug()
.
comment:5 Changed 10 years ago by
comment:6 Changed 10 years ago by
Note: See
TracTickets for help on using
tickets.
Ticket accepted.