org.alltimeflashdreamer.mailwebform
Class IndividualPropertiesFileWriter
java.lang.Object
org.alltimeflashdreamer.mailwebform.IndividualPropertiesFileWriter
- All Implemented Interfaces:
- MailWebFormConstants
- class IndividualPropertiesFileWriter
- extends Object
- implements MailWebFormConstants
Title: IndividualPropertiesFileWriter
Description: This class is designed to write the individual properties file
of a certain provider, 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
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 |
Method Summary |
(package private) void |
writeFile(MailFormProvider provider)
Writes the individual property file of the given provider. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IndividualPropertiesFileWriter
IndividualPropertiesFileWriter()
writeFile
void writeFile(MailFormProvider provider)
throws MailWebFormException,
IOException
- Writes the individual property file of the given provider. If this
provider has a set provider directory property, the value of this
property is uses as the file name, else a generic one is used and
stored within the app's config directory.
- Parameters:
provider
- the provider to store the individual property file for
- Throws:
MailWebFormException
- if the config dir property isn't set
IOException
- if the file can't be created and/or written somehow