Java Doc for NNTPTransportGBean.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.NNTPTransportGBean

NNTPTransportGBean
public class NNTPTransportGBean extends ProtocolGBean implements NNTPGBeanConstants(Code)
A GBean that provides for the configuration of a JavaMail NNTP transport protocol.

NNTP transport properties that are common to all NNTP transports 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  GBeanInfoGBEAN_INFO
    

Constructor Summary
public  NNTPTransportGBean(String objectName, Properties properties, String host, String user, Integer port, Integer connectionTimeout, Integer timeout, String from, Boolean auth, String saslRealm, Boolean quitWait, String socketFactoryClass, Boolean socketFactoryFallback, Integer socketFactoryPort)
     Construct an instance of NNTPTransportGBean

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  BooleangetAuth()
     Returns whether an attempt will be made to authenticate the user

Defaults to false.

public  IntegergetConnectionTimeout()
     Returns the socket connection timeout value in milliseconds.
public  StringgetFrom()
     Returns the email address to use for NNTP POST command.
public static  GBeanInfogetGBeanInfo()
    
public  IntegergetPort()
     Returns the NNTP server port to connect to, if the connect() method doesn't explicitly specify one.
public  BooleangetQuitWait()
     Returns whether the transport will wait for the response to the QUIT command.

If set to true, causes the transport to wait for the response to the QUIT command.

public  StringgetSaslRealm()
     Returns the realm to use with DIGEST-MD5 authentication.
public  StringgetSocketFactoryClass()
     Returns the class that will be used to create NNTP sockets.

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

public  BooleangetSocketFactoryFallback()
     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  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  voidsetAuth(Boolean auth)
     Sets whether an attempt will be made to authenticate the user.
public  voidsetConnectionTimeout(Integer connectionTimeout)
     Sets the socket connection timeout value in milliseconds.
public  voidsetFrom(String from)
     Sets the email address to use for NNTP POST command

Email address to use for NNTP POST command.

public  voidsetPort(Integer port)
     Sets the NNTP server port to connect to, if the connect() method doesn't explicitly specify one.
public  voidsetQuitWait(Boolean quitWait)
     Sets whether the transport will wait for the response to the QUIT command

If set to true, causes the transport to wait for the response to the QUIT command.

public  voidsetSaslRealm(String saslRealm)
     Sets the realm to use with DIGEST-MD5 authentication.
public  voidsetSocketFactoryClass(String socketFactoryClass)
     Sets the class that will be used to create NNTP 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_INFO
final public static GBeanInfo GBEAN_INFO(Code)




Constructor Detail
NNTPTransportGBean
public NNTPTransportGBean(String objectName, Properties properties, String host, String user, Integer port, Integer connectionTimeout, Integer timeout, String from, Boolean auth, String saslRealm, Boolean quitWait, String socketFactoryClass, Boolean socketFactoryFallback, Integer socketFactoryPort)(Code)
Construct an instance of NNTPTransportGBean

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 NNTP server port
Parameters:
  connectionTimeout - the socket connection timeout value in milliseconds
Parameters:
  timeout - the socket I/O timeout value in milliseconds
Parameters:
  from - the email address to use for NNTP POST command
Parameters:
  auth - whether an attempt will be made to authenticate the user
Parameters:
  saslRealm - the realm to use with DIGEST-MD5 authentication
Parameters:
  quitWait - whether the transport will wait for the response to the QUIT command
Parameters:
  socketFactoryClass - the class that will be used to create NNTP 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)



getAuth
public Boolean getAuth()(Code)
Returns whether an attempt will be made to authenticate the user

Defaults to false.




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



getFrom
public String getFrom()(Code)
Returns the email address to use for NNTP POST command.



getGBeanInfo
public static GBeanInfo getGBeanInfo()(Code)



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



getQuitWait
public Boolean getQuitWait()(Code)
Returns whether the transport will wait for the response to the QUIT command.

If set to true, causes the transport to wait for the response to the QUIT command. If set to false (the default), the QUIT command is sent and the connection is immediately closed.




getSaslRealm
public String getSaslRealm()(Code)
Returns the realm to use with DIGEST-MD5 authentication.



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

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




getSocketFactoryFallback
public Boolean getSocketFactoryFallback()(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.




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.



setAuth
public void setAuth(Boolean auth)(Code)
Sets whether an attempt will be made to authenticate the user.

Defaults to false.

Values that are set here will override any of the corresponding value that has been set in the properties.
Parameters:
  auth - whether an attempt will be made to authenticate the user.




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.




setFrom
public void setFrom(String from)(Code)
Sets the email address to use for NNTP POST command

Email address to use for NNTP POST command. This sets the envelope return address. Defaults to msg.getFrom() or InternetAddress.getLocalAddress().

Values that are set here will override any of the corresponding value that has been set in the properties.
Parameters:
  from - the email address to use for NNTP POST command




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

Defaults to 25.

Values that are set here will override any of the corresponding value that has been set in the properties.
Parameters:
  port - the NNTP server port to connect to




setQuitWait
public void setQuitWait(Boolean quitWait)(Code)
Sets whether the transport will wait for the response to the QUIT command

If set to true, causes the transport to wait for the response to the QUIT command. If set to false (the default), the QUIT command is sent and the connection is immediately closed.

Values that are set here will override any of the corresponding value that has been set in the properties.
Parameters:
  quitWait - whether the transport will wait for the response to the QUIT command




setSaslRealm
public void setSaslRealm(String saslRealm)(Code)
Sets the realm to use with DIGEST-MD5 authentication.

Values that are set here will override any of the corresponding value that has been set in the properties.
Parameters:
  saslRealm - the realm to use with DIGEST-MD5 authentication




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

If set, specifies the name of a class that implements the javax.net.SocketFactory interface. This class will be used to create NNTP 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 NNTP 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.