org.alltimeflashdreamer.mailwebform
Class GlobalPropertiesFileWriter

java.lang.Object
  extended byorg.alltimeflashdreamer.mailwebform.GlobalPropertiesFileWriter
All Implemented Interfaces:
MailWebFormConstants

class GlobalPropertiesFileWriter
extends Object
implements MailWebFormConstants

Title: GlobalPropertiesFileWriter
Description: This class is designed to write the global properties file, from scratch, to make sure that each additional text is kept (java.util.Properties has its own, ugly format...). While the constructor is inactive, the job is done within the writeFile method.

Version:
0.9
Author:
Copyright (c) 2001-2004 Florian Steinsiepe, Adrian Zaugg

Field Summary
 
Fields inherited from interface org.alltimeflashdreamer.mailwebform.MailWebFormConstants
ADMIN, ADMINSERVLET, APPNAME, COOKIENAME, CURRENTUSER, ERROR_URL, FILESEPARATOR, JSPBEAN, MAILFORMPROVIDER, MAILFORMPROVIDERLIST, MAILWEBFORM, MAILWEBFORMSERVLET, NEWLINE, PARAM_ADD, PARAM_APPLYGLOBAL, PARAM_APPLYINDIVIDUAL, PARAM_CANCEL, PARAM_CHANGE_CREDENTIALS, PARAM_CONFIGFILE, PARAM_CREDENTIALS_ADMIN, PARAM_EDIT, PARAM_ERRORURL, PARAM_FROMEMAIL, PARAM_FROMNAME, PARAM_LOGIN, PARAM_LOGOUT, PARAM_OVERWRITE, PARAM_PASSWORD, PARAM_PASSWORD_PROVIDER, PARAM_PROVIDER, PARAM_PROVIDERDIRECTORY, PARAM_REMOVE, PARAM_SMTPHOST, PARAM_SMTPPORT, PARAM_SPAMURL, PARAM_STORE, PARAM_SUBJECT, PARAM_SUCCESSURL, PARAM_TEMPLATE, PARAM_TEXT, PARAM_TOADDRESS, PARAM_TONAME, PARAM_USERNAME, PASSWORD, PASSWORDFILE, PLACEHOLDER_END, PLACEHOLDER_START, PROPERTY_CONFIGDIR, PROPERTY_SUFFIX, PROVIDERDIRECTORY, RESOURCENAME, SITE_CHANGE_CREDENTIALS, SITE_DEFAULTFORM, SITE_EDIT, SITE_ERROR, SITE_FOOTER, SITE_HEADER, SITE_LOGIN, SITE_MAIN, SITE_PROVIDER, SMTP_ALLOWOVERWRITE, SMTP_HOST, SMTP_PORT, SPAMERROR_URL, SUCCESS_URL, SYSTEMPROVIDER, TEMPLATE, TEMPLATE_SUFFIX, TOADDRESS, TONAME, USERNAME
 
Constructor Summary
(package private) GlobalPropertiesFileWriter()
           
 
Method Summary
(package private)  void writeFile(GlobalProperties globalProperties, MailFormProviderList mailFormProviders, File propertyFile)
          (Re-)Writes the global properties file, using the given values (the default system settings are stored within the provider "system").
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlobalPropertiesFileWriter

GlobalPropertiesFileWriter()
Method Detail

writeFile

void writeFile(GlobalProperties globalProperties,
               MailFormProviderList mailFormProviders,
               File propertyFile)
         throws IOException
(Re-)Writes the global properties file, using the given values (the default system settings are stored within the provider "system").

Parameters:
globalProperties - the list of properties containing the global values
mailFormProviders - the list of registered providers, including the system/default
propertyFile - the file to be written
Throws:
IOException - Description of the Exception