Java Doc for FileStorage.java in  » Web-Mail » jwebmail-0.7 » net » wastl » webmail » storage » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Mail » jwebmail 0.7 » net.wastl.webmail.storage 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.wastl.webmail.server.Storage
      net.wastl.webmail.storage.FileStorage

All known Subclasses:   net.wastl.webmail.storage.simple.SimpleStorage,
FileStorage
abstract public class FileStorage extends Storage implements ConfigurationListener(Code)
This is the FileStorage class is common to all other storage classes in WebMail It provides means of getting and storing data in ZIPFiles and ResourceBundles, for example HTML-templates, binary files and MIME-types
See Also:   Storage
author:
   Sebastian Schaffert


Field Summary
protected  Authenticatorauth
    
protected  Hashtablebinary_cache
    
protected static  DateFormatdf
    
protected  intfile_cache_size
    
protected  Hashtablefile_resources
    
protected  Loggerlogger
    
protected static  Hashtablemime_types
    
protected  Hashtableresources
    
protected  Hashtablestylesheet_cache
    

Constructor Summary
public  FileStorage(WebMailServer parent)
     Initialize SimpleStorage.

Method Summary
protected  StringformatDate(long date)
    
public  AuthenticatorgetAuthenticator()
    
public synchronized  byte[]getBinaryFile(String name, Locale locale, String theme)
     Get a binary file for the specified locale.
public  StringgetMimeType(String name)
    
public  StringgetStringResource(String key, Locale locale)
     Get the String for key and the specified locale.
public  TemplatesgetStylesheet(String name, Locale locale, String theme)
    
protected  voidinitAuth()
    
protected  voidinitCache()
    
abstract protected  voidinitConfig()
    
protected  voidinitLanguages()
    
protected  voidinitLog()
    
protected  voidinitMIME()
    
public synchronized  voidlog(int level, String message)
     Send a message to the logging facility.
public synchronized  voidlog(int level, Exception ex)
     Send a message to the logging facility.
public  voidnotifyConfigurationChange(String key)
    
public  voidshutdown()
    
public  StringtoString()
    

Field Detail
auth
protected Authenticator auth(Code)
Stores Locale/ExpireableCache pairs



binary_cache
protected Hashtable binary_cache(Code)



df
protected static DateFormat df(Code)



file_cache_size
protected int file_cache_size(Code)



file_resources
protected Hashtable file_resources(Code)



logger
protected Logger logger(Code)



mime_types
protected static Hashtable mime_types(Code)



resources
protected Hashtable resources(Code)



stylesheet_cache
protected Hashtable stylesheet_cache(Code)




Constructor Detail
FileStorage
public FileStorage(WebMailServer parent)(Code)
Initialize SimpleStorage. Fetch Configuration Information etc.




Method Detail
formatDate
protected String formatDate(long date)(Code)



getAuthenticator
public Authenticator getAuthenticator()(Code)



getBinaryFile
public synchronized byte[] getBinaryFile(String name, Locale locale, String theme) throws BinaryNotFoundException(Code)
Get a binary file for the specified locale.
Parameters:
  key - Identifier for the String
Parameters:
  locale - locale of the String to fetch



getMimeType
public String getMimeType(String name)(Code)



getStringResource
public String getStringResource(String key, Locale locale)(Code)
Get the String for key and the specified locale.
Parameters:
  key - Identifier for the String
Parameters:
  locale - locale of the String to fetch



getStylesheet
public Templates getStylesheet(String name, Locale locale, String theme) throws WebMailException(Code)
Return the requested Stylesheet, precompiled and fitting to the locale and theme



initAuth
protected void initAuth()(Code)



initCache
protected void initCache()(Code)



initConfig
abstract protected void initConfig()(Code)
initialize XMLSystemData sysdata



initLanguages
protected void initLanguages()(Code)



initLog
protected void initLog()(Code)



initMIME
protected void initMIME()(Code)



log
public synchronized void log(int level, String message)(Code)
Send a message to the logging facility.
Parameters:
  level - severity level of the message
Parameters:
  message - the message



log
public synchronized void log(int level, Exception ex)(Code)
Send a message to the logging facility.
Parameters:
  level - severity level of the message
Parameters:
  message - the message



notifyConfigurationChange
public void notifyConfigurationChange(String key)(Code)



shutdown
public void shutdown()(Code)



toString
public String toString()(Code)



Fields inherited from net.wastl.webmail.server.Storage
final public static int LOG_CRIT(Code)(Java Doc)
final public static int LOG_DEBUG(Code)(Java Doc)
final public static int LOG_ERR(Code)(Java Doc)
final public static int LOG_INFO(Code)(Java Doc)
final public static int LOG_WARN(Code)(Java Doc)
protected ConfigScheme cs(Code)(Java Doc)
protected static boolean debug(Code)(Java Doc)
protected XMLGenericModel generic_model(Code)(Java Doc)
protected WebMailServer parent(Code)(Java Doc)
protected XMLSystemData sysdata(Code)(Java Doc)

Methods inherited from net.wastl.webmail.server.Storage
abstract public XMLUserData createUserData(String user, String domain, String password) throws CreateUserDataException(Code)(Java Doc)
public WebMailVirtualDomain createVirtualDomain(String name) throws Exception(Code)(Java Doc)
public XMLAdminModel createXMLAdminModel() throws WebMailException(Code)(Java Doc)
public XMLGenericModel createXMLGenericModel() throws WebMailException(Code)(Java Doc)
public XMLUserModel createXMLUserModel(XMLUserData data) throws WebMailException(Code)(Java Doc)
abstract public void deleteUserData(String user, String domain)(Code)(Java Doc)
public void deleteUserData(String user)(Code)(Java Doc)
public void deleteVirtualDomain(String name)(Code)(Java Doc)
abstract public Authenticator getAuthenticator()(Code)(Java Doc)
public String getBasePath(Locale locale, String theme)(Code)(Java Doc)
abstract public byte[] getBinaryFile(String name, Locale locale, String theme) throws BinaryNotFoundException(Code)(Java Doc)
public String getConfig(String key)(Code)(Java Doc)
public Enumeration getConfigKeys()(Code)(Java Doc)
public boolean getDebug()(Code)(Java Doc)
public String getMimeType(String name)(Code)(Java Doc)
abstract public String getStringResource(String key, Locale locale)(Code)(Java Doc)
abstract public Templates getStylesheet(String name, Locale locale, String theme) throws WebMailException(Code)(Java Doc)
public XMLSystemData getSystemData()(Code)(Java Doc)
public XMLUserData getUserData(String user, String domain, String passwd) throws UserDataException, InvalidPasswordException(Code)(Java Doc)
abstract public XMLUserData getUserData(String user, String domain, String password, boolean authenticate) throws UserDataException, InvalidPasswordException(Code)(Java Doc)
abstract public Enumeration getUsers(String domain)(Code)(Java Doc)
public Enumeration getUsers()(Code)(Java Doc)
public WebMailVirtualDomain getVirtualDomain(String name)(Code)(Java Doc)
public Enumeration getVirtualDomains()(Code)(Java Doc)
public void initConfigKeys()(Code)(Java Doc)
abstract protected void loadXMLSysData()(Code)(Java Doc)
abstract public void log(int level, String message)(Code)(Java Doc)
abstract public void log(int level, Exception ex)(Code)(Java Doc)
public void save()(Code)(Java Doc)
abstract public void saveUserData(String user, String domain)(Code)(Java Doc)
abstract protected void saveXMLSysData()(Code)(Java Doc)
public void setConfig(String key, String value) throws IllegalArgumentException(Code)(Java Doc)
public void setDebug(boolean b)(Code)(Java Doc)
public void setUserData(String user, UserData userdata)(Code)(Java Doc)
public void setVirtualDomain(String name, WebMailVirtualDomain v)(Code)(Java Doc)
abstract public void shutdown()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.