Java Doc for MailTransportSender.java in  » Web-Services-AXIS2 » kernal » org » apache » axis2 » transport » 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 » Web Services AXIS2 » kernal » org.apache.axis2.transport.mail 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.axis2.handlers.AbstractHandler
      org.apache.axis2.transport.mail.MailTransportSender

MailTransportSender
public class MailTransportSender extends AbstractHandler implements TransportSender(Code)
0. For this profile we only care about SOAP 1.2 1. There should be no mime text body in this case 2. The SOAP envelope should be base64 encoded and marked with the following headers SOAP 1.2 Content-Type: application/soap+xml; charset=UTF-8 ; action="soap-action-goes-here" Content-Transfer-Encoding: base64 Content-Description: "/serviceName" 3. The content-description is the logical name of the service. It should be quoted. 4. The subject can be anything. Perhaps something like "SOAP Message" might be useful to people looking at the mail in a normal mail browser. 5. If there are attachments the there will be a mime multipart. There should only be one part with content-type: application/soap+xml. 6. The service URL will be created as mailto:paul@wso2.com?X-Service-Path=/axis2/services/MyService or paul@wso2.com?/axis2/services/MyService

Example without attachments ======================== From: rm_client@lenio.dk To: lenioserver@oiositest.dk Message-ID: <8868170.01165394158287.JavaMail.hgk@hans-guldager-knudsens-computer.local> Subject: ANYTHING MIME-Version: 1.0 Content-Type: application/soap+xml; charset=UTF-8 ; action="http://rep.oio.dk/oiosi/IMessageHandler/RequestRespondRequest" Content-Transfer-Encoding: base64 Content-Description: /my/service/urlpath

PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0ndXRmLTgnPz48c29hcGVudjpFbnZlbG9wZSB4 Y3VtZW50YXRpb24uPC9EZXNjcmlwdGlvbj48L05vdGlmaWNhdGlvbj48L3NvYXBlbnY6Qm9keT48 L3NvYXBlbnY6RW52ZWxvcGU+

========================

Example with attachments

======================== From: rm_client@lenio.dk To: lenioserver@oiositest.dk Message-ID: <8868170.01165394158287.JavaMail.hgk@hans-guldager-knudsens-computer.local> Subject: ANYTHING MIME-Version: 1.0 content-type: multipart/mixed; boundary=--boundary_0_9fdec710-2336-4dc9-8bcd-45f2c06cf605

----boundary_0_9fdec710-2336-4dc9-8bcd-45f2c06cf605 Content-Type: application/soap+xml; charset=UTF-8 ; action="http://rep.oio.dk/oiosi/IMessageHandler/RequestRespondRequest" Content-Transfer-Encoding: base64 Content-Description: /my/service/urlpath

PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0ndXRmLTgnPz48c29hcGVudjpFbnZlbG9wZSB4 Y3VtZW50YXRpb24uPC9EZXNjcmlwdGlvbj48L05vdGlmaWNhdGlvbj48L3NvYXBlbnY6Qm9keT48 L3NvYXBlbnY6RW52ZWxvcGU+

----boundary_0_9fdec710-2336-4dc9-8bcd-45f2c06cf605 ----boundary_0_9fdec710-2336-4dc9-8bcd-45f2c06cf605 content-type: application/octet-stream content-transfer-encoding: base64

PHM6RW52ZWxvcGUgeG1sbnM6cz0iaHR0cDovL3d3dy53My5vcmcvMjAwMy8wNS9zb2FwLWVu dmVsb3BlIiB4bWxuczphPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1LzA4L2FkZHJlc3Npbmci IHhtbG5zOnU9Imh0dHA6Ly9kb2NzLm9hc2lzLW9wZW4ub3JnL3dzcy8yMDA0LzAxL29hc2lz LTIwMDQwMS13c3Mtd3NzZWN1cml0eS11dGlsaXR5LTEuMC54c2QiPjxzOkhlYWRlcj48YTpB Y3Rpb24gczptdXN0VW5kZXJzdGFuZD0iMSI+aHR0cDovL3JlcC5vaW8uZGsvb2lvc2kvSU1l c3NhZ2VIYW5kbGVyL1JlcXVlc3RSZXNwb25kUmVxdWVzdDwvYTpBY3Rpb24+PGE6TWVzc2Fn




Constructor Summary
public  MailTransportSender()
    

Method Summary
public  voidcleanup(MessageContext msgContext)
    
public  voidinit(ConfigurationContext configurationContext, TransportOutDescription transportOut)
    
public  InvocationResponseinvoke(MessageContext msgContext)
    
public  voidsendMimeMessage(MessageContext msgContext)
    
public  voidstop()
    
public  voidwriteMimeMessage(MessageContext msgContext, OutputStream out)
    


Constructor Detail
MailTransportSender
public MailTransportSender()(Code)




Method Detail
cleanup
public void cleanup(MessageContext msgContext) throws AxisFault(Code)



init
public void init(ConfigurationContext configurationContext, TransportOutDescription transportOut) throws AxisFault(Code)



invoke
public InvocationResponse invoke(MessageContext msgContext) throws AxisFault(Code)

Parameters:
  msgContext -
throws:
  AxisFault -



sendMimeMessage
public void sendMimeMessage(MessageContext msgContext) throws AxisFault(Code)



stop
public void stop()(Code)



writeMimeMessage
public void writeMimeMessage(MessageContext msgContext, OutputStream out) throws AxisFault(Code)



Fields inherited from org.apache.axis2.handlers.AbstractHandler
protected HandlerDescription handlerDesc(Code)(Java Doc)

Methods inherited from org.apache.axis2.handlers.AbstractHandler
public void cleanup()(Code)(Java Doc)
public void flowComplete(MessageContext msgContext)(Code)(Java Doc)
public HandlerDescription getHandlerDesc()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public Parameter getParameter(String name)(Code)(Java Doc)
public void init(HandlerDescription handlerdesc)(Code)(Java Doc)
public String toString()(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.