Java Doc for POP3StoreGBean.java in  » EJB-Server-geronimo » plugins » org » apache » geronimo » mail » 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 » EJB Server geronimo » plugins » org.apache.geronimo.mail 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.geronimo.mail.ProtocolGBean
      org.apache.geronimo.mail.POP3StoreGBean

POP3StoreGBean
public class POP3StoreGBean extends ProtocolGBean (Code)
A GBean that provides for the configuration of a JavaMail POP3 message store protocol.

POP3 store properties that are common to all POP3 stores are provided via member variables of this class. Values that are set in the individual member variables will override any of the corresponding values that have been set in the properties set.
version:
   $Rev: 486195 $ $Date: 2006-12-12 07:42:02 -0800 (Tue, 12 Dec 2006) $
See Also:   MailGBean



Field Summary
final public static  StringGBEAN_APOP
    
final public static  GBeanInfoGBEAN_INFO
    
final public static  StringGBEAN_MESSAGE_CLASS
    
final public static  StringGBEAN_RESET
    
final public static  StringPOP3_APOP
    
final public static  StringPOP3_CONNECTION_TIMEOUT
    
final public static  StringPOP3_FACTORY_CLASS
    
final public static  StringPOP3_FACTORY_FALLBACK
    
final public static  StringPOP3_FACTORY_PORT
    
final public static  StringPOP3_LOCALADDRESS
    
final public static  StringPOP3_LOCALHOST
    
final public static  StringPOP3_LOCALPORT
    
final public static  StringPOP3_MESSAGE_CLASS
    
final public static  StringPOP3_PORT
    
final public static  StringPOP3_RESET
    
final public static  StringPOP3_TIMEOUT
    

Constructor Summary
public  POP3StoreGBean(String objectName, Properties properties, String host, String user, Integer port, Integer connectionTimeout, Integer timeout, Boolean rsetBeforeQuit, String messageClass, String localaddress, Integer localport, Boolean apopEnable, String socketFactoryClass, Boolean socketFactoryFallback, Integer socketFactoryPort)
     Construct an instance of POP3StoreGBean

Values that are set in the individual member variables will override any of the corresponding values that have been set in the properties set.


Method Summary
public  voidaddOverrides(Properties props)
     Add the overrides from the member variables to the properties file.
public  voiddoFail()
    
public  voiddoStart()
    
public  voiddoStop()
    
public  IntegergetConnectionTimeout()
     Returns the socket connection timeout value in milliseconds.
public static  GBeanInfogetGBeanInfo()
    
public  StringgetLocaladdress()
     Returns the local address (host name) to bind to when creating the POP3 socket.
public  IntegergetLocalport()
     Returns the local port number to bind to when creating the POP3 socket.
public  StringgetMessageClass()
     Returns the class name of a subclass of com.sun.mail.pop3.POP3Message.

Class name of a subclass of com.sun.mail.pop3.POP3Message.

public  IntegergetPort()
     Returns the POP3 server port to connect to, if the connect() method doesn't explicitly specify one.
public  BooleangetRsetBeforeQuit()
     Returns whether an attempt will be made send a POP3 RSET command when closing the folder, before sending the QUIT command.

Send a POP3 RSET command when closing the folder, before sending the QUIT command.

public  StringgetSocketFactoryClass()
     Returns the class that will be used to create POP3 sockets.

If set, specifies the name of a class that implements the javax.net.SocketFactory interface.

public  IntegergetSocketFactoryPort()
     Returns the port to connect to when using the specified socket factory.

Specifies the port to connect to when using the specified socket factory.

public  IntegergetTimeout()
     Returns the socket I/O timeout value in milliseconds.
public  BooleanisApopEnable()
     Returns whether to use APOP instead of USER/PASS to login to the POP3 server, if the POP3 server supports APOP.

If set to true, use APOP instead of USER/PASS to login to the POP3 server, if the POP3 server supports APOP.

public  BooleanisSocketFactoryFallback()
     Returns whether java.net.Socket class will be created if the specified socket factory class cannot be created.

If set to true, failure to create a socket using the specified socket factory class will cause the socket to be created using the java.net.Socket class.

public  voidsetApopEnable(Boolean apopEnable)
     Sets whether to use APOP instead of USER/PASS to login to the POP3 server, if the POP3 server supports APOP.

If set to true, use APOP instead of USER/PASS to login to the POP3 server, if the POP3 server supports APOP.

public  voidsetConnectionTimeout(Integer connectionTimeout)
     Sets the socket connection timeout value in milliseconds.
public  voidsetLocaladdress(String localaddress)
     Sets the local address (host name) to bind to when creating the POP3 socket.

Local address (host name) to bind to when creating the POP3 socket. Defaults to the address picked by the Socket class.

public  voidsetLocalport(Integer localport)
     Sets the local port number to bind to when creating the POP3 socket.

Local port number to bind to when creating the POP3 socket.

public  voidsetMessageClass(String messageClass)
     Sets the class name of a subclass of com.sun.mail.pop3.POP3Message.

Class name of a subclass of com.sun.mail.pop3.POP3Message.

public  voidsetPort(Integer port)
     Sets the POP3 server port to connect to, if the connect() method doesn't explicitly specify one.
public  voidsetRsetBeforeQuit(Boolean rsetBeforeQuit)
     Sets whether an attempt will be made send a POP3 RSET command when closing the folder, before sending the QUIT command.

Send a POP3 RSET command when closing the folder, before sending the QUIT command.

public  voidsetSocketFactoryClass(String socketFactoryClass)
     Sets the class that will be used to create POP3 sockets.

If set, specifies the name of a class that implements the javax.net.SocketFactory interface.

public  voidsetSocketFactoryFallback(Boolean socketFactoryFallback)
     Sets whether java.net.Socket class will be created if the specified socket factory class cannot be created.

If set to true, failure to create a socket using the specified socket factory class will cause the socket to be created using the java.net.Socket class.

public  voidsetSocketFactoryPort(Integer socketFactoryPort)
     Sets the port to connect to when using the specified socket factory.

Specifies the port to connect to when using the specified socket factory.

public  voidsetTimeout(Integer timeout)
     Sets the socket I/O timeout value in milliseconds.

Field Detail
GBEAN_APOP
final public static String GBEAN_APOP(Code)



GBEAN_INFO
final public static GBeanInfo GBEAN_INFO(Code)



GBEAN_MESSAGE_CLASS
final public static String GBEAN_MESSAGE_CLASS(Code)



GBEAN_RESET
final public static String GBEAN_RESET(Code)



POP3_APOP
final public static String POP3_APOP(Code)



POP3_CONNECTION_TIMEOUT
final public static String POP3_CONNECTION_TIMEOUT(Code)



POP3_FACTORY_CLASS
final public static String POP3_FACTORY_CLASS(Code)



POP3_FACTORY_FALLBACK
final public static String POP3_FACTORY_FALLBACK(Code)



POP3_FACTORY_PORT
final public static String POP3_FACTORY_PORT(Code)



POP3_LOCALADDRESS
final public static String POP3_LOCALADDRESS(Code)



POP3_LOCALHOST
final public static String POP3_LOCALHOST(Code)



POP3_LOCALPORT
final public static String POP3_LOCALPORT(Code)



POP3_MESSAGE_CLASS
final public static String POP3_MESSAGE_CLASS(Code)



POP3_PORT
final public static String POP3_PORT(Code)



POP3_RESET
final public static String POP3_RESET(Code)



POP3_TIMEOUT
final public static String POP3_TIMEOUT(Code)




Constructor Detail
POP3StoreGBean
public POP3StoreGBean(String objectName, Properties properties, String host, String user, Integer port, Integer connectionTimeout, Integer timeout, Boolean rsetBeforeQuit, String messageClass, String localaddress, Integer localport, Boolean apopEnable, String socketFactoryClass, Boolean socketFactoryFallback, Integer socketFactoryPort)(Code)
Construct an instance of POP3StoreGBean

Values that are set in the individual member variables will override any of the corresponding values that have been set in the properties set.
Parameters:
  objectName - the object name of the protocol
Parameters:
  properties - the set of default properties for the protocol
Parameters:
  host - the host the protocol connects to
Parameters:
  user - the default name for the protocol
Parameters:
  port - the POP3 server port
Parameters:
  connectionTimeout - the socket connection timeout value in milliseconds
Parameters:
  timeout - the socket I/O timeout value in milliseconds
Parameters:
  rsetBeforeQuit - whether an attempt will be made send a POP3 RSET command when closingthe folder, before sending the QUIT command
Parameters:
  messageClass - the class name of a subclass of com.sun.mail.pop3.POP3Message
Parameters:
  localaddress - the local address (host name) to bind to when creating the POP3 socket
Parameters:
  localport - the local port number to bind to when creating the POP3 socket
Parameters:
  apopEnable - whether to use APOP instead of USER/PASS to login to the POP3 server,if the POP3 server supports APOP
Parameters:
  socketFactoryClass - the class that will be used to create POP3 sockets
Parameters:
  socketFactoryFallback - whether java.net.Socket class will be created if the specifiedsocket factory class cannot be created
Parameters:
  socketFactoryPort - whether java.net.Socket class will be created if the specifiedsocket factory class cannot be created





Method Detail
addOverrides
public void addOverrides(Properties props)(Code)
Add the overrides from the member variables to the properties file.



doFail
public void doFail()(Code)



doStart
public void doStart() throws Exception(Code)



doStop
public void doStop() throws Exception(Code)



getConnectionTimeout
public Integer getConnectionTimeout()(Code)
Returns the socket connection timeout value in milliseconds.



getGBeanInfo
public static GBeanInfo getGBeanInfo()(Code)



getLocaladdress
public String getLocaladdress()(Code)
Returns the local address (host name) to bind to when creating the POP3 socket.



getLocalport
public Integer getLocalport()(Code)
Returns the local port number to bind to when creating the POP3 socket.



getMessageClass
public String getMessageClass()(Code)
Returns the class name of a subclass of com.sun.mail.pop3.POP3Message.

Class name of a subclass of com.sun.mail.pop3.POP3Message. The subclass can be used to handle (for example) non-standard Content-Type headers. The subclass must have a public constructor of the form MyPOP3Message(Folder f, int msgno) throws MessagingException.




getPort
public Integer getPort()(Code)
Returns the POP3 server port to connect to, if the connect() method doesn't explicitly specify one.

Defaults to 110.




getRsetBeforeQuit
public Boolean getRsetBeforeQuit()(Code)
Returns whether an attempt will be made send a POP3 RSET command when closing the folder, before sending the QUIT command.

Send a POP3 RSET command when closing the folder, before sending the QUIT command. Useful with POP3 servers that implicitly mark all messages that are read as "deleted"; this will prevent such messages from being deleted and expunged unless the client requests so. Default is false.




getSocketFactoryClass
public String getSocketFactoryClass()(Code)
Returns the class that will be used to create POP3 sockets.

If set, specifies the name of a class that implements the javax.net.SocketFactory interface. This class will be used to create POP3 sockets.




getSocketFactoryPort
public Integer getSocketFactoryPort()(Code)
Returns the port to connect to when using the specified socket factory.

Specifies the port to connect to when using the specified socket factory. If not set, the default port will be used.




getTimeout
public Integer getTimeout()(Code)
Returns the socket I/O timeout value in milliseconds.



isApopEnable
public Boolean isApopEnable()(Code)
Returns whether to use APOP instead of USER/PASS to login to the POP3 server, if the POP3 server supports APOP.

If set to true, use APOP instead of USER/PASS to login to the POP3 server, if the POP3 server supports APOP. APOP sends a digest of the password rather than the clear text password. Defaults to false.




isSocketFactoryFallback
public Boolean isSocketFactoryFallback()(Code)
Returns whether java.net.Socket class will be created if the specified socket factory class cannot be created.

If set to true, failure to create a socket using the specified socket factory class will cause the socket to be created using the java.net.Socket class. Defaults to true.




setApopEnable
public void setApopEnable(Boolean apopEnable)(Code)
Sets whether to use APOP instead of USER/PASS to login to the POP3 server, if the POP3 server supports APOP.

If set to true, use APOP instead of USER/PASS to login to the POP3 server, if the POP3 server supports APOP. APOP sends a digest of the password rather than the clear text password. Defaults to false.
Parameters:
  apopEnable - whether to use APOP instead of USER/PASS to login to the POP3server, if the POP3 server supports APOP




setConnectionTimeout
public void setConnectionTimeout(Integer connectionTimeout)(Code)
Sets the socket connection timeout value in milliseconds.

Default is infinite timeout.

Values that are set here will override any of the corresponding value that has been set in the properties.
Parameters:
  connectionTimeout - the socket connection timeout value in milliseconds.




setLocaladdress
public void setLocaladdress(String localaddress)(Code)
Sets the local address (host name) to bind to when creating the POP3 socket.

Local address (host name) to bind to when creating the POP3 socket. Defaults to the address picked by the Socket class. Should not normally need to be set, but useful with multi-homed hosts where it's important to pick a particular local address to bind to.

Values that are set here will override any of the corresponding value that has been set in the properties.
Parameters:
  localaddress - the local address (host name) to bind to when creating the POP3 socket




setLocalport
public void setLocalport(Integer localport)(Code)
Sets the local port number to bind to when creating the POP3 socket.

Local port number to bind to when creating the POP3 socket. Defaults to the port number picked by the Socket class.

Values that are set here will override any of the corresponding value that has been set in the properties.
Parameters:
  localport - the local port number to bind to when creating the POP3 socket




setMessageClass
public void setMessageClass(String messageClass)(Code)
Sets the class name of a subclass of com.sun.mail.pop3.POP3Message.

Class name of a subclass of com.sun.mail.pop3.POP3Message. The subclass can be used to handle (for example) non-standard Content-Type headers. The subclass must have a public constructor of the form MyPOP3Message(Folder f, int msgno) throws MessagingException.

Values that are set here will override any of the corresponding value that has been set in the properties.
Parameters:
  messageClass - the class name of a subclass of com.sun.mail.pop3.POP3Message.




setPort
public void setPort(Integer port)(Code)
Sets the POP3 server port to connect to, if the connect() method doesn't explicitly specify one.

Defaults to 110.

Values that are set here will override any of the corresponding value that has been set in the properties.
Parameters:
  port - the POP3 server port to connect to, if the connect() methoddoesn't explicitly specify one




setRsetBeforeQuit
public void setRsetBeforeQuit(Boolean rsetBeforeQuit)(Code)
Sets whether an attempt will be made send a POP3 RSET command when closing the folder, before sending the QUIT command.

Send a POP3 RSET command when closing the folder, before sending the QUIT command. Useful with POP3 servers that implicitly mark all messages that are read as "deleted"; this will prevent such messages from being deleted and expunged unless the client requests so. Default is false.

Values that are set here will override any of the corresponding value that has been set in the properties.
Parameters:
  rsetBeforeQuit - whether an attempt will be made send a POP3 RSET command whenclosing the folder, before sending the QUIT command




setSocketFactoryClass
public void setSocketFactoryClass(String socketFactoryClass)(Code)
Sets the class that will be used to create POP3 sockets.

If set, specifies the name of a class that implements the javax.net.SocketFactory interface. This class will be used to create POP3 sockets.

Values that are set here will override any of the corresponding value that has been set in the properties.
Parameters:
  socketFactoryClass - the class that will be used to create POP3 sockets




setSocketFactoryFallback
public void setSocketFactoryFallback(Boolean socketFactoryFallback)(Code)
Sets whether java.net.Socket class will be created if the specified socket factory class cannot be created.

If set to true, failure to create a socket using the specified socket factory class will cause the socket to be created using the java.net.Socket class. Defaults to true.

Values that are set here will override any of the corresponding value that has been set in the properties.
Parameters:
  socketFactoryFallback - whether java.net.Socket class will be created if the specifiedsocket factory class cannot be created




setSocketFactoryPort
public void setSocketFactoryPort(Integer socketFactoryPort)(Code)
Sets the port to connect to when using the specified socket factory.

Specifies the port to connect to when using the specified socket factory. If not set, the default port will be used.

Values that are set here will override any of the corresponding value that has been set in the properties.
Parameters:
  socketFactoryPort - the port to connect to when using the specified socket factory




setTimeout
public void setTimeout(Integer timeout)(Code)
Sets the socket I/O timeout value in milliseconds.

Default is infinite timeout.

Values that are set here will override any of the corresponding value that has been set in the properties.
Parameters:
  timeout - the socket I/O timeout value in milliseconds




Fields inherited from org.apache.geronimo.mail.ProtocolGBean
final public static String GBEAN_ADD_OVERRIDES(Code)(Java Doc)
final public static String GBEAN_AUTH(Code)(Java Doc)
final public static String GBEAN_CONNECTION_TIMEOUT(Code)(Java Doc)
final public static String GBEAN_FACTORY_CLASS(Code)(Java Doc)
final public static String GBEAN_FACTORY_FALLBACK(Code)(Java Doc)
final public static String GBEAN_FACTORY_PORT(Code)(Java Doc)
final public static String GBEAN_FROM(Code)(Java Doc)
final public static String GBEAN_HOST(Code)(Java Doc)
final public static GBeanInfo GBEAN_INFO(Code)(Java Doc)
final public static String GBEAN_LOCALADDRESS(Code)(Java Doc)
final public static String GBEAN_LOCALHOST(Code)(Java Doc)
final public static String GBEAN_LOCALPORT(Code)(Java Doc)
final public static String GBEAN_OBJECTNAME(Code)(Java Doc)
final public static String GBEAN_PORT(Code)(Java Doc)
final public static String GBEAN_PROPERTIES(Code)(Java Doc)
final public static String GBEAN_PROTOCOL(Code)(Java Doc)
final public static String GBEAN_QUITWAIT(Code)(Java Doc)
final public static String GBEAN_REALM(Code)(Java Doc)
final public static String GBEAN_TIMEOUT(Code)(Java Doc)
final public static String GBEAN_USER(Code)(Java Doc)

Methods inherited from org.apache.geronimo.mail.ProtocolGBean
public void addOverrides(Properties props)(Code)(Java Doc)
public void doFail()(Code)(Java Doc)
public void doStart() throws Exception(Code)(Java Doc)
public void doStop() throws Exception(Code)(Java Doc)
public static GBeanInfo getGBeanInfo()(Code)(Java Doc)
public String getHost()(Code)(Java Doc)
public String getObjectName()(Code)(Java Doc)
public Properties getProperties()(Code)(Java Doc)
public String getProtocol()(Code)(Java Doc)
public String getUser()(Code)(Java Doc)
public void setHost(String host)(Code)(Java Doc)
public void setProperties(Properties properties)(Code)(Java Doc)
public void setUser(String user)(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.