KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > settings > SettingsBean


1 // $Id: SettingsBean.java 16665 2007-03-08 12:09:47Z bpapez $
2
//
3
// ____.
4
// __/\ ______| |__/\. _______
5
// __ .____| | \ | +----+ \
6
// _______| /--| | | - \ _ | : - \_________
7
// \\______: :---| : : | : | \________>
8
// |__\---\_____________:______: :____|____:_____\
9
// /_____|
10
//
11
// . . . i n j a h i a w e t r u s t . . .
12
//
13
//
14
// JahiaPrivateSettings
15
//
16
// 18.11.2000 EV added in jahia.
17
// 22.01.2001 FH created readJahiaPropertiesFile() method and changed.
18
// 06.02.2001 AK set readJahiaPropertiesFile as static method.
19
// 27.03.2001 AK use the properties manager from org.jahia.utils.properties.
20
// 27.07.2001 SB added jahiaLdapDiskPath
21
// 15.01.2002 NK added mime types. mime types are loaded from web.xml files.
22
// 24.08.2003 FH - removed redundant casts
23
// - removed private attribute privateSettings, as it was never used.
24
// - javadoc fixes
25
//
26
// @author Eric Vassalli
27
// @author Fulco Houkes
28
// @author Alexandre Kraft
29

30 package org.jahia.settings;
31
32 import java.io.File JavaDoc;
33 import java.util.Enumeration JavaDoc;
34 import java.util.Hashtable JavaDoc;
35 import java.util.Properties JavaDoc;
36
37 import org.jahia.data.constants.JahiaConstants;
38 import org.jahia.exceptions.JahiaException;
39 import org.jahia.tools.files.DtdEntityResolver;
40 import org.jahia.tools.files.MimeTypesFromWebAppXmlFile;
41 import org.jahia.utils.JahiaTools;
42 import org.jahia.utils.properties.PropertiesManager;
43 import org.xml.sax.EntityResolver JavaDoc;
44 import java.util.NoSuchElementException JavaDoc;
45 import org.jahia.utils.PathResolver;
46
47
48 public class SettingsBean {
49
50     private static org.apache.log4j.Logger logger =
51             org.apache.log4j.Logger.getLogger (SettingsBean.class);
52
53     /** The hashtable holding all the settings. */
54     final private static Hashtable JavaDoc settings = new Hashtable JavaDoc ();
55
56     private PathResolver pathResolver = null;
57
58     private static String JavaDoc mLicenseFilename;
59     private static String JavaDoc propertiesFileName;
60
61     private Properties JavaDoc properties;
62
63     // this is the famous build number...
64
public int buildNumber;
65
66     // this is the list of jahia.properties server disk path and context path values...
67
private String JavaDoc server;
68     private String JavaDoc serverHomeDiskPath;
69     private String JavaDoc jahiaHomeDiskPath;
70     private String JavaDoc jahiaTemplatesDiskPath;
71     private String JavaDoc jahiaHtmlEditorsDiskPath;
72     private String JavaDoc jahiaWebAppsDiskPath;
73     private String JavaDoc jahiaEnginesDiskPath;
74     private String JavaDoc jahiaJspDiskPath;
75     private String JavaDoc jahiaFilesDiskPath;
76     private String JavaDoc jahiaEtcDiskPath;
77     private String JavaDoc jahiaVarDiskPath;
78     private String JavaDoc jahiaFilesBigTextDiskPath;
79     private String JavaDoc jahiaFilesTemplatesDiskPath;
80     private String JavaDoc jahiaLdapDiskPath;
81     private String JavaDoc jahiaCasDiskPath;
82     private String JavaDoc jahiaHostHttpPath;
83     private String JavaDoc jahiaCoreHttpPath;
84     private String JavaDoc jahiaTemplatesHttpPath;
85     private String JavaDoc jahiaEnginesHttpPath;
86     private String JavaDoc jahiaWebAppsDeployerBaseURL;
87     private String JavaDoc jahiaJavaScriptDiskPath;
88     private String JavaDoc jahiaNewTemplatesDiskPath;
89     private String JavaDoc jahiaNewWebAppsDiskPath;
90     private String JavaDoc jahiaSharedComponentsDiskPath;
91     private String JavaDoc jahiaSharedTemplatesDiskPath;
92     private String JavaDoc jspContext;
93     private String JavaDoc templatesContext;
94     private String JavaDoc htmlEditorsContext;
95     private String JavaDoc enginesContext;
96     private String JavaDoc javascriptContext;
97     private String JavaDoc jahiaJavaScriptHttpPath;
98     private String JavaDoc classDiskPath;
99     private String JavaDoc componentsDiskPath;
100
101     // directory to output cache configuration file
102
private String JavaDoc jahiaOutputCacheConfigDiskPath;
103
104     // hashtable containing all max_cached_*...
105
private Hashtable JavaDoc jahiaMaxCachedValues;
106
107     // this is the list of jahia.properties autodeployer values...
108
private int jahiaWebAppsAutoDeploy;
109     private int jahiaTemplatesAutoDeploy;
110
111     // this is the list of jahia.properties files values...
112
private String JavaDoc jahiaFileRepositoryDiskPath;
113     private int jahiaFileUploadMaxSize;
114
115     // this is the list of jahia.properties database values...
116
private String JavaDoc db_driver;
117     private String JavaDoc db_url;
118     private String JavaDoc db_username;
119     private String JavaDoc db_password;
120     private boolean db_transactions;
121     private int db_min_connections;
122     private int db_max_connections;
123     private boolean db_waitIfBusy;
124     private boolean db_verbose;
125     private boolean db_veryVerbose;
126     private boolean db_support_embedded_select_statement;
127     private int db_maxOpenPreparedStatements;
128     private boolean db_poolPreparedStatements;
129
130     // Characters encoding
131
private boolean utf8Encoding;
132
133     // Lock activation
134
private boolean locksActivated;
135
136     // Webdav file locks on publication
137
private boolean fileLockOnPublication;
138
139     // Output cache activation / deactivation
140
final public static String JavaDoc OUTPUT_CACHE_ACTIVATED = "outputCacheActivated";
141     
142     // Maximum parallel heavy processing threads
143
final public static String JavaDoc PRELOAD_HOMEPAGE_FIELDS_ACTIVATED = "preloadHomepageFieldsActivated";
144
145     // Output cache expiration delay in milliseconds
146
private long outputCacheDefaultExpirationDelay;
147
148     // Activation / deactivation of site ID in URLs
149
private boolean siteIDInURL;
150
151     // Flag that indicates whether applications can inherit from Jahia session
152
// attributes.
153
private boolean appInheritJahiaSessionAttributes;
154
155     // Default language code for multi-language system
156
private String JavaDoc defaultLanguageCode;
157
158     // Default site
159
private String JavaDoc defaultSite;
160
161     // this value is used to preload ACLs upon Jahia startup in order to avoid
162
// the real time cost of loading them upon first access. This value *must*
163
// be smaller than the maximum size of the cache.
164
private int aclPreloadCount = 0;
165
166     // should the webdav filenames be converted into full-ascii
167
private boolean transformFilenames;
168
169     private boolean transformDirnames;
170
171     // The following settings concern the JMS cache implementation, these
172
// settings configure whether this subsystem uses or not the JMS cache,
173
// and if so where it is located.
174
final public static String JavaDoc JMS_CACHE_ACTIVATION = "org.jahia.cache.jmsCacheActivated";
175     final public static String JavaDoc JMS_INITIAL_CONTEXT = "org.jahia.cache.jmsCacheInitialContextFactory";
176     final public static String JavaDoc JMS_CONTEXT_PROVIDER_URL = "org.jahia.cache.jmsCacheContextProviderURL";
177     final public static String JavaDoc JMS_TOPIC_CONNECTION_FACTORY_NAME = "org.jahia.cache.jmsCacheTopicConnectionFactoryName";
178     final public static String JavaDoc JMS_TOPIC_NAME = "org.jahia.cache.jmsCacheTopicName";
179     final public static String JavaDoc JMS_MAX_MESSAGES_IN_PACKAGE = "org.jahia.cache.jmsCacheMaxMessagesInPackage";
180     final public static String JavaDoc JMS_SERVER_LOOKUP_SLEEP_TIME = "org.jahia.cache.jmsServerLookupSleepTime";
181     final public static long JMS_SERVER_LOOKUP_SLEEP_TIME_DEFAULT = 5000; // 5 seconds
182

183     // this is the list of jahia.properties mail settings values...
184
public String JavaDoc mail_server;
185     public String JavaDoc mail_administrator;
186     public String JavaDoc mail_from;
187     public int mail_paranoia;
188
189     private DtdEntityResolver mResolver;
190     protected Properties JavaDoc mimeTypes;
191
192     private boolean jmxHTTPAdaptorActivated = false;
193     private boolean jmxXSLProcessorActivated = false;
194     private boolean jmxRMIAdaptorActivated = false;
195
196     private String JavaDoc jmxHTTPHostname = null;
197     private int jmxHTTPPort = 8082;
198     private String JavaDoc jmxHTTPAutorizationMode = null;
199     private String JavaDoc jmxHTTPAuthorizationUser = null;
200     private String JavaDoc jmxHTTPAuthorizationPassword = null;
201     private String JavaDoc jmxHTTPProcessorNameString = null;
202     private String JavaDoc jmxHTTPSocketFactoryNameString = null;
203     private boolean jmxRMISSLServerSocketFactoryActivated = false;
204     private String JavaDoc jmxRMISSLServerSocketFactoryKeyStoreName = null;
205     private String JavaDoc jmxRMISSLServerSocketFactoryKeyStorePassword = null;
206     private String JavaDoc jmxRMISSLServerSocketFactoryKeyManagerPassword = null;
207     private String JavaDoc defaultResponseBodyEncoding;
208     private String JavaDoc defaultURIEncoding;
209     private int preloadCountForPageProperties;
210     private boolean jmxActivated;
211     private int cookieAuthIDLength;
212     private String JavaDoc cookieAuthUserPropertyName;
213     private String JavaDoc cookieAuthCookieName;
214     private int cookieAuthMaxAgeInSeconds;
215     private boolean cookieAuthRenewalActivated;
216     private String JavaDoc authPipelineFileName;
217     private String JavaDoc authPipelineClassName;
218     private boolean cookieAuthActivated;
219     private String JavaDoc slideContentDiskPath;
220   private String JavaDoc tmpContentDiskPath;
221     private long templatesObserverInterval;
222     private long webAppsObserverInterval;
223     private String JavaDoc schedulerConfigFile;
224     private String JavaDoc siteServerNameTestURLExpr;
225     private int siteServerNameTestConnectTimeout;
226
227     private boolean pageCounterIncrementActivated = true;
228     private boolean preloadHomepageFieldsActivated = true;
229
230     // Core engine page generation queue configuration parameters
231
private int maxParallelProcessings = 10;
232     private long pageGenerationWaitTime = 1800000; // in milliseconds
233

234     /**
235      * Default constructor.
236
237      *
238      * @param aPathResolver The configuration used to get the servlet context.
239      * @param propertiesFilename The jahia.properties file complete path.
240      * @param aBuildNumber The Jahia build number.
241      */

242     public SettingsBean (PathResolver aPathResolver,
243                          String JavaDoc propertiesFilename,
244                          String JavaDoc licenseFilename,
245                          int aBuildNumber) {
246         //this.config = config;
247
//this.context = config.getServletContext ();
248
this.pathResolver = aPathResolver;
249         SettingsBean.propertiesFileName = propertiesFilename;
250         this.buildNumber = aBuildNumber;
251         mLicenseFilename = licenseFilename;
252
253     } // end constructor
254

255
256     /**
257      * Read the jahia.properties file.
258      *
259      * @return On success return the Jahia properties, or null on any failure.
260      */

261     public static Properties JavaDoc readJahiaPropertiesFile () {
262         PropertiesManager propertiesManager = new PropertiesManager (propertiesFileName);
263         return propertiesManager.getPropertiesObject ();
264     } // end readJahiaPropertiesFile
265

266
267     /**
268      * This method load and convert properties from the jahia.properties file,
269      * and set some variables used by the SettingsBean class.
270      */

271     public void load () {
272         PropertiesManager propertiesManager = new PropertiesManager (propertiesFileName);
273         properties = propertiesManager.getPropertiesObject ();
274
275         // try to get values from the properties object...
276
try {
277             // disk path, url's and context...
278
server = getString("server");
279             serverHomeDiskPath = getString("serverHomeDiskPath");
280             jahiaTemplatesDiskPath = pathResolver.resolvePath (getString("jahiaTemplatesDiskPath"));
281             jahiaHtmlEditorsDiskPath = pathResolver.resolvePath (getString("jahiaHtmlEditorsDiskPath"));
282             jahiaJspDiskPath = pathResolver.resolvePath (getString("jahiaJspDiskPath"));
283             jahiaEnginesDiskPath = pathResolver.resolvePath (getString("jahiaEnginesDiskPath"));
284             jahiaJavaScriptDiskPath = pathResolver.resolvePath (getString("jahiaJavaScriptDiskPath"));
285             classDiskPath = pathResolver.resolvePath (getString("classDiskPath"));
286             componentsDiskPath = pathResolver.resolvePath (getString("componentsDiskPath"));
287             jahiaFilesDiskPath = JahiaTools.convertContexted (getString("jahiaFilesDiskPath"), pathResolver);
288             jahiaEtcDiskPath = JahiaTools.convertContexted (getString("jahiaEtcDiskPath"), pathResolver);
289             jahiaVarDiskPath = JahiaTools.convertContexted (getString("jahiaVarDiskPath"), pathResolver);
290             jahiaFilesBigTextDiskPath = JahiaTools.convertContexted (getString("jahiaFilesBigTextDiskPath"), pathResolver);
291             slideContentDiskPath = JahiaTools.convertContexted (getString("slideContentDiskPath"), pathResolver);
292             tmpContentDiskPath = JahiaTools.convertContexted (getString("tmpContentDiskPath"), pathResolver);
293             jahiaFilesTemplatesDiskPath = JahiaTools.convertContexted (getString("jahiaFilesTemplatesDiskPath"), pathResolver);
294             jahiaLdapDiskPath = JahiaTools.convertContexted (getString("jahiaLdapDiskPath"), pathResolver);
295             jahiaCasDiskPath = JahiaTools.convertContexted (getString("jahiaCasDiskPath"), pathResolver);
296             jahiaNewTemplatesDiskPath = JahiaTools.convertContexted (getString("jahiaNewTemplatesDiskPath"), pathResolver);
297             jahiaNewWebAppsDiskPath = JahiaTools.convertContexted (getString("jahiaNewWebAppsDiskPath"), pathResolver);
298             jahiaSharedComponentsDiskPath = JahiaTools.convertContexted (getString("jahiaSharedComponentsDiskPath"), pathResolver);
299             jahiaSharedTemplatesDiskPath = JahiaTools.convertContexted (getString("jahiaSharedTemplatesDiskPath"), pathResolver);
300             jahiaOutputCacheConfigDiskPath = JahiaTools.convertContexted (getString("jahiaOutputCacheConfigDiskPath"), pathResolver);
301
302             jahiaHostHttpPath = getString("jahiaHostHttpPath");
303             jahiaCoreHttpPath = getString("jahiaCoreHttpPath");
304             jahiaTemplatesHttpPath = getString("jahiaTemplatesHttpPath");
305             jahiaEnginesHttpPath = getString("jahiaEnginesHttpPath");
306             jahiaJavaScriptHttpPath = getString("jahiaJavaScriptHttpPath");
307             jspContext = getString("jahiaJspDiskPath");
308             templatesContext = getString("jahiaTemplatesDiskPath");
309             htmlEditorsContext = getString("jahiaHtmlEditorsDiskPath");
310             enginesContext = getString("jahiaEnginesDiskPath");
311             javascriptContext = getString("jahiaJavaScriptDiskPath");
312
313             // jahia real path...
314
File JavaDoc jahiaContextFolder = new File JavaDoc (pathResolver.resolvePath("." + File.separator));
315             File JavaDoc parent = jahiaContextFolder.getAbsoluteFile().getParentFile ();
316
317             if (server.indexOf (JahiaConstants.SERVER_TOMCAT4_BETA1) != -1) { // the server is tomcatb1...
318
jahiaHomeDiskPath = jahiaContextFolder.getAbsolutePath ();
319                 jahiaWebAppsDiskPath = parent.getAbsolutePath () + File.separator;
320             } else if (server.indexOf (JahiaConstants.SERVER_TOMCAT) != -1) { // the server is tomcat
321
jahiaHomeDiskPath = parent.getAbsolutePath ();
322                 jahiaWebAppsDiskPath = parent.getParentFile ().getAbsolutePath () + File.separator;
323                 /*
324                 } else if ( (server.indexOf(JahiaConstants.SERVER_TOMCAT4_BETA2) != -1)
325                         || (server.indexOf(JahiaConstants.SERVER_TOMCAT4_BETA3) != -1)
326                         || (server.indexOf(JahiaConstants.SERVER_TOMCAT4_BETA6) != -1) ) { // the server is tomcat...
327                     jahiaHomeDiskPath = parent.getAbsolutePath();
328                     jahiaWebAppsDiskPath = parent.getParentFile().getAbsolutePath() + File.separator;
329                 */

330             } else if (server.equals (JahiaConstants.SERVER_ORION)) { // the server is orion server...
331
jahiaHomeDiskPath = jahiaContextFolder.getAbsolutePath ();
332                 jahiaWebAppsDiskPath = serverHomeDiskPath + "applications" + File.separator;
333             } else {
334                 jahiaHomeDiskPath = jahiaContextFolder.getAbsolutePath ();
335                 jahiaWebAppsDiskPath = jahiaContextFolder.getAbsolutePath ();
336             }
337
338             // autodeployer...
339
String JavaDoc webappAutoDeploy = getString("jahiaWebAppsAutoDeploy");
340             String JavaDoc templateAutoDeploy = getString("jahiaTemplatesAutoDeploy");
341             if (webappAutoDeploy != null) {
342                 jahiaWebAppsAutoDeploy = Integer.parseInt (webappAutoDeploy);
343             }
344             if (templateAutoDeploy != null) {
345                 jahiaTemplatesAutoDeploy = Integer.parseInt (templateAutoDeploy);
346             }
347             templatesObserverInterval = getLong("templates.observer.interval", 5000);
348             webAppsObserverInterval = getLong("webapps.observer.interval", 5000);
349
350             // files...
351
jahiaFileRepositoryDiskPath = JahiaTools.convertContexted (getString("jahiaFileRepositoryDiskPath"), pathResolver);
352             jahiaFileUploadMaxSize = Integer.parseInt (getString("jahiaFileUploadMaxSize"));
353
354             // database...
355
db_driver = getString ("db_driver");
356             db_url = getString ("db_url");
357             db_username = getString ("db_username");
358             db_password = getString ("db_password");
359             db_transactions = getBoolean("db_transactions", false);
360             db_poolPreparedStatements = getBoolean("db_poolPreparedStatements", true);
361             db_maxOpenPreparedStatements = getInt("db_maxOpenPreparedStatements", 0);
362             db_min_connections = getInt("db_min_connections");
363             db_max_connections = getInt("db_max_connections");
364             db_waitIfBusy = getBoolean ("db_waitIfBusy");
365             db_verbose = getBoolean ("db_verbose");
366             db_veryVerbose = getBoolean("db_veryVerbose", false);
367             db_support_embedded_select_statement = getBoolean("db_support_embedded_select_statement", false);
368
369             // chars encoding
370
utf8Encoding = getBoolean("utf8Encoding");
371             defaultResponseBodyEncoding = getString("defaultResponseBodyEncoding", "ISO-8859-1");
372             defaultURIEncoding = getString("defaultURIEncoding", "UTF-8");
373
374             // Lock activation
375
locksActivated = getBoolean ("locksActivated", true);
376
377             // Webdav locks
378
fileLockOnPublication = getBoolean("fileLockOnPublication", true);
379
380             // output cache activation / deactivation
381
settings.put(OUTPUT_CACHE_ACTIVATED,
382                     new Boolean JavaDoc (getBoolean(OUTPUT_CACHE_ACTIVATED, true)));
383
384             // Maximum parallel heavy processing threads
385
maxParallelProcessings = getInt("maxParallelProcessings", maxParallelProcessings);
386             pageGenerationWaitTime = getLong("pageGenerationWaitTime", pageGenerationWaitTime);
387             
388             preloadHomepageFieldsActivated = getBoolean(PRELOAD_HOMEPAGE_FIELDS_ACTIVATED, true);
389             
390             // output cache default expiration delay
391
outputCacheDefaultExpirationDelay = getLong ("outputCacheDefaultExpirationDelay", -1);
392
393             // activation / deactivation of site ID in URL
394
siteIDInURL = getBoolean ("siteIDInURL", false);
395
396             // Flag that indicates whether applications can inherit from Jahia session
397
// attributes.
398
appInheritJahiaSessionAttributes =getBoolean ("webapps.dispatcher.inheritJahiaSessionAttributes", false);
399
400             // base URL (schema, host, port) to call the web apps deployer service.
401
jahiaWebAppsDeployerBaseURL = getString ("jahiaWebAppsDeployerBaseURL", "http://127.0.0.1:8080");
402
403             // multi language default language code property.
404
defaultLanguageCode = getString ("org.jahia.multilang.default_language_code", "en");
405
406             // multi language default language code property.
407
aclPreloadCount = getInt("org.jahia.acl.preload_count", 0 /* preload count is deactivated by default */);
408
409             preloadCountForPageProperties = getInt("org.jahia.pages.properties.preload_count", 2000);
410
411             settings.put (JMS_CACHE_ACTIVATION,
412                     new Boolean JavaDoc (getBoolean (JMS_CACHE_ACTIVATION, false)));
413             settings.put (JMS_INITIAL_CONTEXT, getString (JMS_INITIAL_CONTEXT, null));
414             settings.put (JMS_CONTEXT_PROVIDER_URL, getString (JMS_CONTEXT_PROVIDER_URL, null));
415             settings.put (JMS_TOPIC_CONNECTION_FACTORY_NAME,
416                     getString (JMS_TOPIC_CONNECTION_FACTORY_NAME, null));
417             settings.put (JMS_TOPIC_NAME, getString (JMS_TOPIC_NAME, null));
418             settings.put (JMS_MAX_MESSAGES_IN_PACKAGE, new Integer JavaDoc(getInt(JMS_MAX_MESSAGES_IN_PACKAGE, 2000)));
419             settings.put (JMS_SERVER_LOOKUP_SLEEP_TIME,
420                     new Long JavaDoc (
421                             getLong (JMS_SERVER_LOOKUP_SLEEP_TIME,
422                                     JMS_SERVER_LOOKUP_SLEEP_TIME_DEFAULT)));
423
424             // mail settings...
425
mail_server = getString("mail_server");
426             mail_administrator = getString("mail_administrator");
427             mail_from = getString("mail_from");
428             mail_paranoia = 0;
429
430             // paranoia settings...
431
String JavaDoc getMailParanoia = getString("mail_paranoia");
432             if (getMailParanoia.equals ("Standard")) {
433                 mail_paranoia = JahiaException.CRITICAL_SEVERITY;
434             } else if (getMailParanoia.equals ("Wary")) {
435                 mail_paranoia = JahiaException.ERROR_SEVERITY;
436             } else if (getMailParanoia.equals ("Paranoid")) {
437                 mail_paranoia = JahiaException.WARNING_SEVERITY;
438             }
439
440             jmxActivated = getBoolean("org.jahia.jmx.activated", false);
441             jmxHTTPAdaptorActivated = getBoolean("org.jahia.jmx.httpAdaptorActivated", false);
442             jmxXSLProcessorActivated = getBoolean("org.jahia.jmx.xslProcessorActivated", false);
443             jmxRMIAdaptorActivated = getBoolean("org.jahia.jmx.rmiAdaptorActivated", false);
444             jmxHTTPHostname = getString("org.jahia.jmx.httpHostName", "localhost");
445             jmxHTTPPort = getInt("org.jahia.jmx.httpPort", 8082);
446             jmxHTTPAutorizationMode = getString("org.jahia.jmx.httpAuthorizationMode", null);
447             jmxHTTPAuthorizationUser = getString("org.jahia.jmx.httpAuthorizationUser", null);
448             jmxHTTPAuthorizationPassword = getString("org.jahia.jmx.httpAuthorizationPassword", null);
449             jmxHTTPProcessorNameString = getString("org.jahia.jmx.httpProcessorNameString", null);
450             jmxHTTPSocketFactoryNameString = getString("org.jahia.jmx.httpSocketFactoryNameString", null);
451             jmxRMISSLServerSocketFactoryActivated = getBoolean("org.jahia.jmx.rmiSSLServerSocketFactoryActivated", false);
452             jmxRMISSLServerSocketFactoryKeyStoreName = getString("org.jahia.jmx.rmiSSLServerSocketFactoryKeyStoreName", null);
453             jmxRMISSLServerSocketFactoryKeyStorePassword = getString("org.jahia.jmx.rmiSSLServerSocketFactoryKeyStorePassword", null);
454             jmxRMISSLServerSocketFactoryKeyManagerPassword = getString("org.jahia.jmx.rmiSSLServerSocketFactoryKeyManagerPassword", null);
455
456             // load mime types
457
initDtdEntityResolver ();
458             loadMimeTypes ();
459
460             defaultSite = getString("defautSite");
461
462             // load MaxCached values (max_cached_*)
463
jahiaMaxCachedValues = new Hashtable JavaDoc ();
464             for (Enumeration JavaDoc e = properties.propertyNames (); e.hasMoreElements ();) {
465                 String JavaDoc key = (String JavaDoc)e.nextElement ();
466                 String JavaDoc lowerKey = key.toLowerCase ().trim ();
467                 // yes this is a max_cached value
468
if (lowerKey.indexOf ("max_cached_") == 0) {
469                     String JavaDoc cacheKey = key.trim().substring (11);
470                     String JavaDoc value = properties.getProperty (key);
471                     if ((cacheKey != null) && (value != null)) {
472                         jahiaMaxCachedValues.put (cacheKey, value);
473                     } else {
474                         logger.debug ("Ignoring cache key : " + key + " because value or key is invalid (value=" + value + ")");
475                     }
476                 }
477             }
478
479             // webdav settings
480
transformFilenames = getBoolean("transformFilenames", false);
481             transformDirnames = getBoolean("transformDirnames", true);
482
483             cookieAuthActivated = getBoolean("cookieAuthActivated", true);
484             cookieAuthIDLength = getInt("cookieAuthIDLength", 30);
485             cookieAuthUserPropertyName = getString("cookieAuthUserPropertyName", "org.jahia.user.cookieauth.id");
486             cookieAuthCookieName = getString("cookieAuthCookieName", "jid");
487             cookieAuthMaxAgeInSeconds = getInt("cookieAuthMaxAgeInSeconds", 60*60*24*30 /* 30 days expiration */);
488             cookieAuthRenewalActivated = getBoolean("cookieAuthRenewalActivated", true);
489
490             authPipelineFileName = getString("authPipelineFileName", "/WEB-INF/etc/config/auth-pipeline.xml");
491             authPipelineClassName = getString("authPipelineClassName", "org.jahia.pipelines.impl.GenericPipeline");
492
493             schedulerConfigFile = JahiaTools.convertContexted (getString("schedulerConfigFile", "$context/WEB-INF/etc/config/quartz.properties"), pathResolver);
494
495             siteServerNameTestURLExpr = getString("siteServerNameTestURLExpr", "${request.scheme}://${siteServerName}:${request.serverPort}${request.contextPath}/jsp/isjahia.jsp");
496             siteServerNameTestConnectTimeout = getInt("siteServerNameTestConnectTimeout", 500);
497
498             pageCounterIncrementActivated = getBoolean("pageCounterIncrementActivated", true);
499
500         } catch (NullPointerException JavaDoc npe) {
501             logger.debug ("Properties file is not valid...!", npe);
502         } catch (NumberFormatException JavaDoc nfe) {
503             logger.debug ("Properties file is not valid...!", nfe);
504         }
505     } // end load
506

507
508     private boolean getBoolean (String JavaDoc propertyName)
509         throws NoSuchElementException JavaDoc {
510         boolean result = false;
511         String JavaDoc curProperty = properties.getProperty(propertyName);
512         if (curProperty != null) {
513             curProperty = curProperty.trim();
514             if (!"".equals(curProperty)) {
515                 result = new Boolean JavaDoc(curProperty).booleanValue();
516                 return result;
517             } else {
518                 throw new NoSuchElementException JavaDoc("Boolean property : " +
519                                                  propertyName + " is empty!");
520             }
521         } else {
522             throw new NoSuchElementException JavaDoc("No boolean found for property : " +
523                                              propertyName);
524         }
525     }
526
527     private boolean getBoolean (String JavaDoc propertyName, boolean defaultValue) {
528         try {
529             return getBoolean(propertyName);
530         } catch (NoSuchElementException JavaDoc nsee) {
531             return defaultValue;
532         }
533     }
534
535     private String JavaDoc getString (String JavaDoc propertyName)
536         throws NoSuchElementException JavaDoc {
537         String JavaDoc result = null;
538         String JavaDoc curProperty = properties.getProperty(propertyName);
539         if (curProperty != null) {
540             result = curProperty.trim();
541             return result;
542         } else {
543             throw new NoSuchElementException JavaDoc("No String found for property : " +
544                                              propertyName);
545         }
546     }
547
548     private String JavaDoc getString (String JavaDoc propertyName, String JavaDoc defaultValue) {
549         try {
550             return getString(propertyName);
551         } catch (NoSuchElementException JavaDoc nsee) {
552             return defaultValue;
553         }
554     }
555
556     private int getInt (String JavaDoc propertyName)
557         throws NoSuchElementException JavaDoc {
558         int result = -1;
559         String JavaDoc curProperty = properties.getProperty(propertyName);
560         if (curProperty != null) {
561             curProperty = curProperty.trim();
562             result = Integer.parseInt(curProperty);
563             return result;
564         } else {
565             throw new NoSuchElementException JavaDoc("No int found for property : " +
566                                              propertyName);
567         }
568     }
569
570     private int getInt (String JavaDoc propertyName, int defaultValue) {
571         try {
572             return getInt(propertyName);
573         } catch (NoSuchElementException JavaDoc nsee) {
574             return defaultValue;
575         }
576     }
577
578     private long getLong (String JavaDoc propertyName)
579         throws NoSuchElementException JavaDoc {
580         long result = -1;
581         String JavaDoc curProperty = properties.getProperty(propertyName);
582         if (curProperty != null) {
583             curProperty = curProperty.trim();
584             result = Long.parseLong(curProperty);
585             return result;
586         } else {
587             throw new NoSuchElementException JavaDoc("No long found for property : " +
588                                              propertyName);
589         }
590     }
591
592     private long getLong (String JavaDoc propertyName, long defaultValue) {
593         try {
594             return getLong(propertyName);
595         } catch (NoSuchElementException JavaDoc nsee) {
596             return defaultValue;
597         }
598     }
599
600     /** Looks up the specified <code>key</code> parameter as a <code>String</code> result.
601      *
602      * @param key the parameter key to lookup
603      * @return the requested parameter value. Returns <code>null</code> when the
604      * parameter could not be found.
605      */

606     public String JavaDoc lookupString (String JavaDoc key) {
607         Object JavaDoc param = settings.get (key);
608         if (param instanceof String JavaDoc)
609             return (String JavaDoc) param;
610         return null;
611     }
612
613
614     /** Looks up the specified <code>key</code> parameter as a <code>boolean</code> result.
615      *
616      * @param key the parameter key to lookup
617      * @return the requested parameter value. Return <code>false</code> when the
618      * parameter could not be found.
619      */

620     public boolean lookupBoolean (String JavaDoc key) {
621         Object JavaDoc param = settings.get (key);
622         if (param instanceof Boolean JavaDoc)
623             return ((Boolean JavaDoc) param).booleanValue ();
624         return false;
625     }
626
627
628     /** Looks up the specified <code>key</code> parameter as a <code>long</code> result.
629      *
630      * @param key the parameter key to lookup
631      * @return the requested parameter value. Return <code>Long.MIN_VALUE</code> when the
632      * parameter could not be found.
633      */

634     public long lookupLong (String JavaDoc key) {
635         Object JavaDoc param = settings.get (key);
636         if (param instanceof Long JavaDoc)
637             return ((Long JavaDoc) param).longValue ();
638         return Long.MIN_VALUE;
639     }
640
641
642     /** Looks up the specified <code>key</code> parameter as a <code>long</code> result.
643      *
644      * @param key the parameter key to lookup
645      * @return the requested parameter value. Return <code>Long.MIN_VALUE</code> when the
646      * parameter could not be found.
647      */

648     public int lookupInt (String JavaDoc key) {
649         Object JavaDoc param = settings.get (key);
650         if (param instanceof Integer JavaDoc)
651             return ((Integer JavaDoc) param).intValue ();
652         return Integer.MIN_VALUE;
653     }
654
655     /**
656      * Get the principal properties object.
657      *
658      * @return Properties object containing all properties from jahia.properties file.
659      */

660     public Properties JavaDoc getPropertiesFile () {
661         return this.properties;
662     } // end getPropertiesFile
663

664
665     //-------------------------------------------------------------------------
666
public String JavaDoc getLicenseFileName () {
667         return mLicenseFilename;
668     }
669
670     //-------------------------------------------------------------------------
671
/**
672      * A valid URL like http\://127.0.0.1:8080/Jahia
673      *
674      */

675     public void setJahiaCoreHttpPath (String JavaDoc value) {
676         jahiaCoreHttpPath = value;
677     }
678
679     public void setSiteServerNameTestURLExpr (String JavaDoc aSiteServerNameTestURLExpr) {
680
681         this.siteServerNameTestURLExpr = aSiteServerNameTestURLExpr;
682     }
683
684     public void setSiteServerNameTestConnectTimeout (int
685         aSiteServerNameTestConnectTimeout) {
686         this.siteServerNameTestConnectTimeout =
687             aSiteServerNameTestConnectTimeout;
688     }
689
690     //--------------------------------------------------------------------------
691
/**
692      * Load mime types from web.xml files
693      *
694      * <mime-mapping>
695      * <extension>abs</extension>
696      * <mime-type>audio/x-mpeg</mime-type>
697      * </mime-mapping>
698      * <mime-mapping>
699      * <extension>ai</extension>
700      * <mime-type>application/postscript</mime-type>
701      * </mime-mapping>
702      */

703     private void loadMimeTypes () {
704
705         String JavaDoc filepath = pathResolver.resolvePath ("/WEB-INF/web.xml");
706         File JavaDoc f = new File JavaDoc (filepath);
707         if (f.exists () && f.canRead ()) {
708             try {
709                 MimeTypesFromWebAppXmlFile mtHandler
710                         = new MimeTypesFromWebAppXmlFile (f.getAbsolutePath (), mResolver);
711
712                 mimeTypes = mtHandler.getMimeTypes ();
713             } catch (Exception JavaDoc t) {
714                 t.printStackTrace ();
715             }
716         }
717         if (mimeTypes == null)
718             mimeTypes = new Properties JavaDoc ();
719
720     }
721
722     //--------------------------------------------------------------------------
723
/**
724      * initiate the Dtd entity resolver we use with local dtd
725      */

726     private void initDtdEntityResolver () {
727
728         mResolver = new DtdEntityResolver ();
729         String JavaDoc diskPath = this.jahiaEtcDiskPath + File.separator;
730
731         // register local DTD
732
//System.out.println(diskPath + JahiaConstants.WEB_DTD_RESOURCE_PATH_22);
733
File JavaDoc resourceFile = new File JavaDoc (diskPath + JahiaConstants.WEB_DTD_RESOURCE_PATH_22);
734         logger.debug ("Registering resource file : " + resourceFile.toString ());
735         mResolver.registerDTD (JahiaConstants.WEB_DTD_PUBLICID_22, resourceFile.toString ());
736
737         //System.out.println(diskPath + JahiaConstants.WEB_DTD_RESOURCE_PATH_23);
738
resourceFile = new File JavaDoc (diskPath + JahiaConstants.WEB_DTD_RESOURCE_PATH_23);
739         mResolver.registerDTD (JahiaConstants.WEB_DTD_PUBLICID_23, resourceFile.toString ());
740
741         //System.out.println(diskPath + JahiaConstants.J2EE_APP_DTD_RESOURCE_PATH_12);
742
resourceFile = new File JavaDoc (diskPath + JahiaConstants.J2EE_APP_DTD_RESOURCE_PATH_12);
743         mResolver.registerDTD (JahiaConstants.J2EE_APP_DTD_PUBLICID_12, resourceFile.toString ());
744
745         //System.out.println(diskPath + JahiaConstants.ORION_APP_SERVER_DTD_RESOURCE_PATH);
746
resourceFile = new File JavaDoc (diskPath + JahiaConstants.ORION_APP_SERVER_DTD_RESOURCE_PATH);
747         mResolver.registerDTD (JahiaConstants.ORION_APP_SERVER_DTD_PUBLICID, resourceFile.toString ());
748
749         //System.out.println(diskPath + JahiaConstants.ORION_WEB_SITE_DTD_RESOURCE_PATH);
750
resourceFile = new File JavaDoc (diskPath + JahiaConstants.ORION_WEB_SITE_DTD_RESOURCE_PATH);
751         mResolver.registerDTD (JahiaConstants.ORION_WEB_SITE_DTD_PUBLICID, resourceFile.toString ());
752
753     }
754
755     //--------------------------------------------------------------------------
756
/**
757      * Return the mime types
758      *
759      * @return Properties mimeTypes
760      */

761     public Properties JavaDoc getMimeTypes () {
762         return mimeTypes;
763     }
764
765     //--------------------------------------------------------------------------
766
/**
767      * Return the Dtd entity resolver
768      *
769      * @return EntityResolver
770      */

771     public EntityResolver getDtdEntityResolver () {
772         return mResolver;
773     }
774
775     /**
776      * Does Jahia use the Unicode Transformation Format to encode output Strings
777      *
778      * @return True if UTF-8 encoding, false otherwise
779      */

780     public boolean isUtf8Encoding () {
781         return utf8Encoding;
782     }
783
784     /**
785      * Are the locks verification activated ?
786      *
787      * @return The locksActived parameter.
788      */

789     public boolean areLocksActivated () {
790         return locksActivated;
791     }
792
793     /**
794      * Should the files be locked when pages are published
795      *
796      * @return true if the files should be locked when pages are published, false otherwise
797      */

798     public boolean isFileLockOnPublication() {
799         return fileLockOnPublication;
800     }
801
802     /**
803      * @return the default output cache time expiration delay, in milliseconds,
804      * or -1 if the cache entries should never expire.
805      */

806     public long getOutputCacheDefaultExpirationDelay () {
807         return outputCacheDefaultExpirationDelay;
808     }
809
810     /**
811      * Return status of site ID in URL generation
812      * @return true if the site ID should be generated in all URLs
813      */

814     public boolean isSiteIDInURL () {
815         return siteIDInURL;
816     }
817
818     public boolean isAppInheritingJahiaSessionAttributes () {
819         return appInheritJahiaSessionAttributes;
820     }
821
822
823     public String JavaDoc getJahiaWebAppsDeployerBaseURL () {
824         return jahiaWebAppsDeployerBaseURL;
825     }
826
827     public String JavaDoc getDefaultLanguageCode () {
828         return defaultLanguageCode;
829     }
830
831     public int getAclPreloadCount () {
832         return aclPreloadCount;
833     }
834
835     /**
836      * Used to get the build number.
837      *
838      * @return The build number.
839      */

840     public int getBuildNumber() {
841         return buildNumber;
842     } // end getBuildNumber
843

844     /**
845      * Used to get the server name (tomcat, orion, etc).
846      *
847      * @return The server name.
848      */

849     public String JavaDoc getServer() {
850         return server;
851     } // end getServer
852

853     /**
854      * Used to get the server home filesystem disk path.
855      *
856      * @return The server home filesystem disk path.
857      */

858     public String JavaDoc getServerHomeDiskPath() {
859         return serverHomeDiskPath;
860     } // end getServerHomeDiskPath
861

862     /**
863      * Used to get the web apps disk path.
864      *
865      * @return The web apps disk path.
866      */

867     public String JavaDoc getJahiaWebAppsDiskPath() {
868         return jahiaWebAppsDiskPath;
869     } // end getJahiaWebAppsDiskPath
870

871     /**
872      * Used to get the templates disk path.
873      *
874      * @return The templates disk path.
875      */

876     public String JavaDoc getJahiaTemplatesDiskPath() {
877         return jahiaTemplatesDiskPath;
878     } // end getJahiaTemplatesDiskPath
879

880     /**
881      * Returns the HtmlEditors Root Disk Path
882      * @return Returns the HtmlEditors Root Disk Path
883      */

884     public String JavaDoc getJahiaHtmlEditorsDiskPath() {
885         return this.jahiaHtmlEditorsDiskPath;
886     }
887
888     /**
889      * Used to get the engines disk path.
890      *
891      * @return The engines disk path.
892      */

893     public String JavaDoc getJahiaEnginesDiskPath() {
894         return jahiaEnginesDiskPath;
895     } // end getJahiaEnginesDiskPath
896

897     /**
898      * Used to get the jahiafiles disk path.
899      * @author Eric Vassalli
900      *
901      * @return The jahiafiles disk path.
902      */

903     /** @todo removed by Serge Huber because of disk reorganisation */
904     /*
905     public String getJahiaFilesDiskPath() {
906         return jahiaFilesDiskPath;
907     } // end getJahiaFilesDiskPath
908     */

909
910     /**
911      * Used to get the jahiafiles /etc disk path.
912      *
913      * @return The jahiafiles /etc disk path.
914      */

915     public String JavaDoc getJahiaEtcDiskPath() {
916         return jahiaEtcDiskPath;
917     }
918
919     /**
920      * Used to get the jahiafiles /var disk path.
921      *
922      * @return The jahiafiles /var disk path.
923      */

924     public String JavaDoc getJahiaVarDiskPath() {
925         return jahiaVarDiskPath;
926     }
927
928
929     /**
930      * Used to get the data jahiafiles disk path.
931      *
932      * @return The data jahiafiles disk path.
933      */

934     public String JavaDoc getJahiaFilesDataDiskPath() {
935         return jahiaFilesBigTextDiskPath;
936     } // end getJahiaFilesDataDiskPath
937

938     /**
939      * Used to get the templates jahiafiles disk path.
940      *
941      * @return The templates jahiafiles disk path.
942      */

943     public String JavaDoc getJahiaFilesTemplatesDiskPath() {
944         return jahiaFilesTemplatesDiskPath;
945     } // end getJahiaFilesTemplatesDiskPath
946

947     /**
948      * Used to get the Ldap configuration directory disk path.
949      *
950      * @return The Ldap configuration disk path.
951      */

952     public String JavaDoc getJahiaLdapDiskPath() {
953         return jahiaLdapDiskPath;
954     } // end getJahiaLdapDiskPath
955

956     /**
957      * Used to get the CAS configuration directory disk path.
958      *
959      * @return The Cas configuration disk path.
960      */

961     public String JavaDoc getJahiaCasDiskPath() {
962         return jahiaCasDiskPath;
963     } // end getJahiaCasDiskPath
964

965     /**
966      * Returns the disk path to the output cache configuration directory
967      * @return a String containing the disk path to the output cache configuration
968      * directory
969      */

970
971     public String JavaDoc getJahiaOutputCacheConfigDiskPath() {
972         return jahiaOutputCacheConfigDiskPath;
973     }
974
975     /**
976      * Used to get the new templates disk path.
977      *
978      * @return The new templates disk path.
979      */

980     public String JavaDoc getJahiaNewTemplatesDiskPath() {
981         return jahiaNewTemplatesDiskPath;
982     } // end getJahiaNewTemplatesDiskPath
983

984
985     /**
986      * Used to get the shared components disk path.
987      *
988      * @return The shared components disk path.
989      */

990     public String JavaDoc getJahiaSharedComponentsDiskPath() {
991         return jahiaSharedComponentsDiskPath;
992     }
993
994
995     /**
996      * Used to get the shared templates disk path.
997      *
998      * @return The shared templates disk path.
999      */

1000    public String JavaDoc getJahiaSharedTemplatesDiskPath() {
1001        return jahiaSharedTemplatesDiskPath;
1002    }
1003
1004
1005    /**
1006     * Used to get the components disk path.
1007     *
1008     * @return The components disk path.
1009     */

1010    public String JavaDoc getComponentsDiskPath() {
1011        return componentsDiskPath;
1012    } // end getComponentsDiskPath
1013

1014    /**
1015     * Used to get the core http path.
1016     *
1017     * @return The core http path.
1018     */

1019    public String JavaDoc getJahiaCoreHttpPath() {
1020        return jahiaCoreHttpPath;
1021    } // end getJahiaCoreHttpPath
1022

1023    /**
1024     * Used to get the templates http path.
1025     *
1026     * @return The templates http path.
1027     */

1028    public String JavaDoc getJahiaTemplatesHttpPath() {
1029        return jahiaTemplatesHttpPath;
1030    } // end getJahiaTemplatesHttpPath
1031

1032    /**
1033     * Used to get the engines http path.
1034     *
1035     * @return The engines http path.
1036     */

1037    public String JavaDoc getJahiaEnginesHttpPath() {
1038        return jahiaEnginesHttpPath;
1039    } // end getJahiaEnginesHttpPath
1040

1041    /**
1042     * Used to get the javascript http path.
1043     *
1044     * @return The javascript http path.
1045     */

1046    public String JavaDoc getJsHttpPath() {
1047        return jahiaJavaScriptHttpPath;
1048    } // end getJsHttpPath
1049

1050    /**
1051     * Used to get the jsp context.
1052     *
1053     * @return The jsp context.
1054     */

1055    public String JavaDoc getJspContext() {
1056        return jspContext;
1057    } // end getJspContext
1058

1059    /**
1060     * Used to get the html editor context.
1061     *
1062     * @return The html editor context.
1063     */

1064    public String JavaDoc getHtmlEditorsContext() {
1065        return this.htmlEditorsContext;
1066    }
1067
1068    /**
1069     * Used to get the templates context.
1070     *
1071     * @return The templates context.
1072     */

1073    public String JavaDoc getTemplatesContext() {
1074        return templatesContext;
1075    } // end getTemplatesContext
1076

1077    /**
1078     * Used to get the engines context.
1079     *
1080     * @return The engines context.
1081     */

1082    public String JavaDoc getEnginesContext() {
1083        return enginesContext;
1084    } // end getEnginesContext(
1085

1086    /**
1087     * Used to get the javascript context.
1088     *
1089     * @return The javascript context.
1090     */

1091    public String JavaDoc getJavascriptContext() {
1092        return javascriptContext;
1093    } // end getJavascriptContext(
1094

1095    /**
1096     * Used to get the webapps autodeployer flag.
1097     *
1098     * @return The webapps autodeployer flag.
1099     */

1100    public int getJahiaWebAppsAutoDeploy() {
1101        return jahiaWebAppsAutoDeploy;
1102    } // end getJahiaWebAppsAutoDeploy
1103

1104    /**
1105     * Used to get the templates autodeployer flag.
1106     *
1107     * @return The templates autodeployer flag.
1108     */

1109    public int getJahiaTemplatesAutoDeploy() {
1110        return jahiaTemplatesAutoDeploy;
1111    }
1112
1113    /*
1114    public ServletConfig getConfig() {
1115        return config;
1116    }
1117    public ServletContext getContext() {
1118        return context;
1119    }
1120    */

1121    public String JavaDoc getDb_driver() {
1122        return db_driver;
1123    }
1124    public int getDb_max_connections() {
1125        return db_max_connections;
1126    }
1127    public int getDb_min_connections() {
1128        return db_min_connections;
1129    }
1130    public int getDb_maxOpenPreparedStatements() {
1131        return db_maxOpenPreparedStatements;
1132    }
1133    public String JavaDoc getDb_password() {
1134        return db_password;
1135    }
1136    public boolean isDb_transactions() {
1137        return db_transactions;
1138    }
1139    public boolean isDb_poolPreparedStatements() {
1140        return db_poolPreparedStatements;
1141    }
1142    public String JavaDoc getDb_url() {
1143        return db_url;
1144    }
1145    public String JavaDoc getDb_username() {
1146        return db_username;
1147    }
1148    public boolean isDb_verbose() {
1149        return db_verbose;
1150    }
1151    public boolean isDb_veryVerbose() {
1152        return db_veryVerbose;
1153    }
1154    public boolean isDb_waitIfBusy() {
1155        return db_waitIfBusy;
1156    }
1157
1158    public boolean isDb_support_embedded_select_statement() {
1159        return db_support_embedded_select_statement;
1160    }
1161
1162    public String JavaDoc getClassDiskPath() {
1163        return classDiskPath;
1164    }
1165    public String JavaDoc getJahiaFileRepositoryDiskPath() {
1166        return jahiaFileRepositoryDiskPath;
1167    }
1168    public String JavaDoc getJahiaFilesBigTextDiskPath() {
1169        return jahiaFilesBigTextDiskPath;
1170    }
1171    public String JavaDoc getJahiaFilesDiskPath() {
1172        return jahiaFilesDiskPath;
1173    }
1174    public int getJahiaFileUploadMaxSize() {
1175        return jahiaFileUploadMaxSize;
1176    }
1177    public String JavaDoc getJahiaHomeDiskPath() {
1178        return jahiaHomeDiskPath;
1179    }
1180    public String JavaDoc getJahiaHostHttpPath() {
1181        return jahiaHostHttpPath;
1182    }
1183    public String JavaDoc getJahiaJavaScriptDiskPath() {
1184        return jahiaJavaScriptDiskPath;
1185    }
1186    public String JavaDoc getJahiaJavaScriptHttpPath() {
1187        return jahiaJavaScriptHttpPath;
1188    }
1189    public String JavaDoc getJahiaJspDiskPath() {
1190        return jahiaJspDiskPath;
1191    }
1192    public Hashtable JavaDoc getJahiaMaxCachedValues() {
1193        return jahiaMaxCachedValues;
1194    }
1195    public String JavaDoc getJahiaNewWebAppsDiskPath() {
1196        return jahiaNewWebAppsDiskPath;
1197    }
1198    public boolean isLocksActivated() {
1199        return locksActivated;
1200    }
1201    public String JavaDoc getMail_administrator() {
1202        return mail_administrator;
1203    }
1204    public String JavaDoc getMail_from() {
1205        return mail_from;
1206    }
1207    public int getMail_paranoia() {
1208        return mail_paranoia;
1209    }
1210    public String JavaDoc getMail_server() {
1211        return mail_server;
1212    }
1213    public String JavaDoc getMLicenseFilename() {
1214        return mLicenseFilename;
1215    }
1216    public boolean isJmxActivated() {
1217        return jmxActivated;
1218    }
1219    public boolean isJmxHTTPAdaptorActivated() {
1220        return jmxHTTPAdaptorActivated;
1221    }
1222    public String JavaDoc getJmxHTTPAuthorizationPassword() {
1223        return jmxHTTPAuthorizationPassword;
1224    }
1225    public String JavaDoc getJmxHTTPAuthorizationUser() {
1226        return jmxHTTPAuthorizationUser;
1227    }
1228    public String JavaDoc getJmxHTTPAutorizationMode() {
1229        return jmxHTTPAutorizationMode;
1230    }
1231    public String JavaDoc getJmxHTTPHostname() {
1232        return jmxHTTPHostname;
1233    }
1234    public int getJmxHTTPPort() {
1235        return jmxHTTPPort;
1236    }
1237    public String JavaDoc getJmxHTTPProcessorNameString() {
1238        return jmxHTTPProcessorNameString;
1239    }
1240    public String JavaDoc getJmxHTTPSocketFactoryNameString() {
1241        return jmxHTTPSocketFactoryNameString;
1242    }
1243    public boolean isJmxRMIAdaptorActivated() {
1244        return jmxRMIAdaptorActivated;
1245    }
1246    public boolean isJmxXSLProcessorActivated() {
1247        return jmxXSLProcessorActivated;
1248    }
1249    public boolean isJmxRMISSLServerSocketFactoryActivated() {
1250        return jmxRMISSLServerSocketFactoryActivated;
1251    }
1252    public String JavaDoc getJmxRMISSLServerSocketFactoryKeyStoreName() {
1253        return jmxRMISSLServerSocketFactoryKeyStoreName;
1254    }
1255    public String JavaDoc getJmxRMISSLServerSocketFactoryKeyStorePassword() {
1256        return jmxRMISSLServerSocketFactoryKeyStorePassword;
1257    }
1258    public String JavaDoc getJmxRMISSLServerSocketFactoryKeyManagerPassword() {
1259        return jmxRMISSLServerSocketFactoryKeyManagerPassword;
1260    }
1261
1262    public String JavaDoc getDefaultResponseBodyEncoding() {
1263        return defaultResponseBodyEncoding;
1264    }
1265    public String JavaDoc getDefaultURIEncoding() {
1266        return defaultURIEncoding;
1267    }
1268    public String JavaDoc getDefaultSite() {
1269        return defaultSite;
1270    }
1271    public int getPreloadCountForPageProperties() {
1272        return preloadCountForPageProperties;
1273    }
1274
1275    public boolean isTransformFilenames() {
1276        return transformFilenames;
1277    }
1278
1279    public boolean isTransformDirnames() {
1280        return transformDirnames;
1281    }
1282    public int getCookieAuthIDLength() {
1283        return cookieAuthIDLength;
1284    }
1285    public String JavaDoc getCookieAuthUserPropertyName() {
1286        return cookieAuthUserPropertyName;
1287    }
1288    public String JavaDoc getCookieAuthCookieName() {
1289        return cookieAuthCookieName;
1290    }
1291    public int getCookieAuthMaxAgeInSeconds() {
1292        return cookieAuthMaxAgeInSeconds;
1293    }
1294    public boolean isCookieAuthRenewalActivated() {
1295        return cookieAuthRenewalActivated;
1296    }
1297    public String JavaDoc getAuthPipelineFileName() {
1298        return authPipelineFileName;
1299    }
1300    public String JavaDoc getAuthPipelineClassName() {
1301        return authPipelineClassName;
1302    }
1303    public PathResolver getPathResolver() {
1304        return pathResolver;
1305    }
1306    public boolean isCookieAuthActivated() {
1307        return cookieAuthActivated;
1308    }
1309    public String JavaDoc getSlideContentDiskPath() {
1310        return slideContentDiskPath;
1311    }
1312  public String JavaDoc getTmpContentDiskPath() {
1313    return tmpContentDiskPath;
1314  }
1315    public long getTemplatesObserverInterval() {
1316        return templatesObserverInterval;
1317    }
1318    public long getWebAppsObserverInterval() {
1319        return webAppsObserverInterval;
1320    }
1321    public String JavaDoc getSchedulerConfigFile() {
1322        return schedulerConfigFile;
1323    }
1324
1325    public String JavaDoc getSiteServerNameTestURLExpr () {
1326
1327        return siteServerNameTestURLExpr;
1328    }
1329
1330    public int getSiteServerNameTestConnectTimeout () {
1331        return siteServerNameTestConnectTimeout;
1332    }
1333
1334    public boolean isPageCounterIncrementActivated() {
1335        return pageCounterIncrementActivated;
1336    }
1337
1338
1339    public boolean isPreloadHomepageFieldsActivated() {
1340        return preloadHomepageFieldsActivated;
1341    }
1342
1343    public long getPageGenerationWaitTime() {
1344        return pageGenerationWaitTime;
1345    }
1346
1347    public int getMaxParallelProcessings() {
1348        return maxParallelProcessings;
1349    }
1350    
1351}
1352
Popular Tags