Java Doc for SMTPSession.java in  » Web-Mail » james-2.3.1 » org » apache » james » smtpserver » 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 » james 2.3.1 » org.apache.james.smtpserver 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.james.smtpserver.SMTPSession

All known Subclasses:   org.apache.james.smtpserver.SMTPHandler,
SMTPSession
public interface SMTPSession (Code)
All the handlers access this interface to communicate with SMTPHandler object


Field Summary
final public static  StringCURRENT_HELO_MODE
    
final public static  StringMESG_FAILED
    
final public static  StringRCPT_LIST
    
final public static  StringSENDER
    


Method Summary
 voidabortMessage()
    
 StringclearResponseBuffer()
     Clears the response buffer, returning the String of characters in the buffer.
 voidendSession()
    
 StringgetCommandArgument()
    
 StringgetCommandName()
    
 SMTPHandlerConfigurationDatagetConfigurationData()
    
 InputStreamgetInputStream()
    
 MailgetMail()
    
 StringgetRemoteHost()
    
 StringgetRemoteIPAddress()
    
 StringBuffergetResponseBuffer()
    
 StringgetSessionID()
    
 HashMapgetState()
    
 StringgetUser()
     Returns the user name associated with this SMTP interaction.
 WatchdoggetWatchdog()
    
 booleanisAuthRequired()
    
 booleanisBlockListed()
    
 booleanisRelayingAllowed()
    
 booleanisSessionEnded()
    
 StringreadCommandLine()
     Reads a line of characters off the command line.
 voidresetState()
     Resets message-specific, but not authenticated user, state.
 voidsetBlockListed(boolean blocklisted)
    
 voidsetMail(Mail mail)
    
 voidsetUser(String user)
     Sets the user name associated with this SMTP interaction.
 booleanuseHeloEhloEnforcement()
    
 voidwriteResponse(String respString)
    

Field Detail
CURRENT_HELO_MODE
final public static String CURRENT_HELO_MODE(Code)



MESG_FAILED
final public static String MESG_FAILED(Code)



RCPT_LIST
final public static String RCPT_LIST(Code)



SENDER
final public static String SENDER(Code)





Method Detail
abortMessage
void abortMessage()(Code)
this makes the message to be dropped inprotocol



clearResponseBuffer
String clearResponseBuffer()(Code)
Clears the response buffer, returning the String of characters in the buffer. the data in the response buffer



endSession
void endSession()(Code)
this makes the session to close



getCommandArgument
String getCommandArgument()(Code)
Returns currently process command argument current command argument



getCommandName
String getCommandName()(Code)
Returns currently process command name current command name



getConfigurationData
SMTPHandlerConfigurationData getConfigurationData()(Code)
Returns SMTPHandler service wide configuration SMTPHandlerConfigurationData



getInputStream
InputStream getInputStream()(Code)
Returns Inputstream for handling messages and commands InputStream object



getMail
Mail getMail()(Code)
Returns Mail object for message handlers to process Mail object



getRemoteHost
String getRemoteHost()(Code)
Returns host name of the client hostname of the client



getRemoteIPAddress
String getRemoteIPAddress()(Code)
Returns host ip address of the client host ip address of the client



getResponseBuffer
StringBuffer getResponseBuffer()(Code)
Returns ResponseBuffer, this optimizes the unecessary creation of resources by each handler object responseBuffer



getSessionID
String getSessionID()(Code)
Returns the SMTP session id SMTP session id



getState
HashMap getState()(Code)
Returns Map that consists of the state of the SMTPSession map of the current SMTPSession state



getUser
String getUser()(Code)
Returns the user name associated with this SMTP interaction. the user name



getWatchdog
Watchdog getWatchdog()(Code)
Returns Watchdog object used for handling timeout Watchdog object



isAuthRequired
boolean isAuthRequired()(Code)
Returns whether Authentication is required or not authentication required or not



isBlockListed
boolean isBlockListed()(Code)
Returns the blocklisted status blocklisted



isRelayingAllowed
boolean isRelayingAllowed()(Code)
Returns whether Relaying is allowed or not the relaying status



isSessionEnded
boolean isSessionEnded()(Code)
Returns the session status if the session is open or closed



readCommandLine
String readCommandLine() throws IOException(Code)
Reads a line of characters off the command line. the trimmed input line
throws:
  IOException - if an exception is generated reading in the input characters



resetState
void resetState()(Code)
Resets message-specific, but not authenticated user, state.



setBlockListed
void setBlockListed(boolean blocklisted)(Code)
Sets the blocklisted value
Parameters:
  blocklisted -



setMail
void setMail(Mail mail)(Code)
Sets the MailImpl object for further processing
Parameters:
  mail - MailImpl object



setUser
void setUser(String user)(Code)
Sets the user name associated with this SMTP interaction.
Parameters:
  userID - the user name



useHeloEhloEnforcement
boolean useHeloEhloEnforcement()(Code)
Returns whether remote server needs to send HELO/EHLO HELO/EHLO required or not



writeResponse
void writeResponse(String respString)(Code)
Writes response string to the client
Parameters:
  respString - String that needs to send to the client



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