Java Doc for MessageImpl.java in  » 6.0-JDK-Modules » saaj » com » sun » xml » messaging » saaj » soap » 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 » 6.0 JDK Modules » saaj » com.sun.xml.messaging.saaj.soap 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.xml.soap.SOAPMessage
      com.sun.xml.messaging.saaj.soap.MessageImpl

All known Subclasses:   com.sun.xml.messaging.saaj.soap.ver1_2.Message1_2Impl,  com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl,
MessageImpl
abstract public class MessageImpl extends SOAPMessage implements SOAPConstants(Code)
The message implementation for SOAP messages with attachments. Messages for specific profiles will likely extend this MessageImpl class and add more value for that particular profile.
author:
   Anil Vijendran (akv@eng.sun.com)
author:
   Rajiv Mordani (rajiv.mordani@sun.com)
author:
   Manveen Kaur (manveen.kaur@sun.com)


Field Summary
final public static  StringCONTENT_ID
    
final public static  StringCONTENT_LOCATION
    
final protected static  intFI_ENCODED_FLAG
    
final protected static  intMIME_MULTIPART_FLAG
    
final protected static  intMIME_MULTIPART_XOP_FLAG
    
final protected static  intPLAIN_XML_FLAG
    
final protected static  intSOAP1_1_FLAG
    
final protected static  intSOAP1_2_FLAG
    
final protected static  intXOP_FLAG
    
protected  booleanacceptFastInfoset
    
protected  FinalArrayListattachments
    
protected  booleanattachmentsInitialized
    
protected  MimeHeadersheaders
    
protected  booleanisFastInfoset
     True if this part is encoded using Fast Infoset.
protected static  Loggerlog
    
protected  intmessageByteCount
    
protected  byte[]messageBytes
    
protected  MimeMultipartmmp
    
protected  MimeMultipartmultiPart
    
protected  HashMapproperties
    
protected  booleansaved
    
protected  SOAPPartImplsoapPart
    

Constructor Summary
protected  MessageImpl()
     Construct a new message.
protected  MessageImpl(boolean isFastInfoset, boolean acceptFastInfoset)
     Construct a new message.
protected  MessageImpl(SOAPMessage msg)
     Shallow copy.
protected  MessageImpl(MimeHeaders headers, InputStream in)
     Construct a message from an input stream.
protected  MessageImpl(MimeHeaders headers, ContentType contentType, int stat, InputStream in)
     Construct a message from an input stream.

Method Summary
public  booleanacceptFastInfoset()
    
public  voidaddAttachmentPart(AttachmentPart attachment)
    
public  intcountAttachments()
    
public  AttachmentPartcreateAttachmentPart()
    
public  StringgetAction()
    
public  AttachmentPartgetAttachment(SOAPElement element)
    
public  IteratorgetAttachments()
    
public  IteratorgetAttachments(MimeHeaders headers)
    
public  StringgetBaseType()
    
public  StringgetCharset()
    
public  StringgetContentDescription()
    
final static  StringgetContentType(MimeHeaders headers)
    
public  StringgetContentType()
    
abstract protected  StringgetExpectedAcceptHeader()
    
abstract protected  StringgetExpectedContentType()
    
public  MimeHeadersgetMimeHeaders()
    
public  ObjectgetProperty(String property)
    
public  SOAPBodygetSOAPBody()
    
public  SOAPHeadergetSOAPHeader()
    
abstract public  SOAPPartgetSOAPPart()
    
static  intidentifyContentType(ContentType contentType)
     Sniffs the Content-Type header so that we can determine how to process.
abstract protected  booleanisCorrectSoapVersion(int contentTypeId)
    
public  booleanisFastInfoset()
    
protected static  booleanisSoap1_1Content(int stat)
    
protected static  booleanisSoap1_2Content(int stat)
    
public  voidremoveAllAttachments()
    
public  voidremoveAttachments(MimeHeaders headers)
    
public  voidsaveChanges()
    
public  booleansaveRequired()
    
public  voidsetAction(String action)
    
public  voidsetBaseType(String type)
    
public  voidsetCharset(String charset)
    
public  voidsetContentDescription(String description)
    
public  voidsetContentType(String type)
    
public  voidsetIsFastInfoset(boolean value)
    
public  voidsetLazyAttachments(boolean flag)
    
public  voidsetProperty(String property, Object value)
    
public  voidwriteTo(OutputStream out)
    

Field Detail
CONTENT_ID
final public static String CONTENT_ID(Code)



CONTENT_LOCATION
final public static String CONTENT_LOCATION(Code)



FI_ENCODED_FLAG
final protected static int FI_ENCODED_FLAG(Code)



MIME_MULTIPART_FLAG
final protected static int MIME_MULTIPART_FLAG(Code)



MIME_MULTIPART_XOP_FLAG
final protected static int MIME_MULTIPART_XOP_FLAG(Code)



PLAIN_XML_FLAG
final protected static int PLAIN_XML_FLAG(Code)



SOAP1_1_FLAG
final protected static int SOAP1_1_FLAG(Code)



SOAP1_2_FLAG
final protected static int SOAP1_2_FLAG(Code)



XOP_FLAG
final protected static int XOP_FLAG(Code)



acceptFastInfoset
protected boolean acceptFastInfoset(Code)
True if the Accept header of this message includes application/fastinfoset



attachments
protected FinalArrayList attachments(Code)



attachmentsInitialized
protected boolean attachmentsInitialized(Code)



headers
protected MimeHeaders headers(Code)



isFastInfoset
protected boolean isFastInfoset(Code)
True if this part is encoded using Fast Infoset. MIME -> application/fastinfoset



log
protected static Logger log(Code)



messageByteCount
protected int messageByteCount(Code)



messageBytes
protected byte[] messageBytes(Code)



mmp
protected MimeMultipart mmp(Code)



multiPart
protected MimeMultipart multiPart(Code)



properties
protected HashMap properties(Code)



saved
protected boolean saved(Code)



soapPart
protected SOAPPartImpl soapPart(Code)




Constructor Detail
MessageImpl
protected MessageImpl()(Code)
Construct a new message. This will be invoked before message sends.



MessageImpl
protected MessageImpl(boolean isFastInfoset, boolean acceptFastInfoset)(Code)
Construct a new message. This will be invoked before message sends.



MessageImpl
protected MessageImpl(SOAPMessage msg)(Code)
Shallow copy.



MessageImpl
protected MessageImpl(MimeHeaders headers, InputStream in) throws SOAPExceptionImpl(Code)
Construct a message from an input stream. When messages are received, there's two parts -- the transport headers and the message content in a transport specific stream.



MessageImpl
protected MessageImpl(MimeHeaders headers, ContentType contentType, int stat, InputStream in) throws SOAPExceptionImpl(Code)
Construct a message from an input stream. When messages are received, there's two parts -- the transport headers and the message content in a transport specific stream.
Parameters:
  contentType - The parsed content type header from the headers variable.This is redundant parameter, but it avoids reparsing this header again.
Parameters:
  stat - The result of MessageImpl.identifyContentType(ContentType) overthe contentType parameter. This redundant parameter, but it avoidsrecomputing this information again.




Method Detail
acceptFastInfoset
public boolean acceptFastInfoset()(Code)



addAttachmentPart
public void addAttachmentPart(AttachmentPart attachment)(Code)



countAttachments
public int countAttachments()(Code)



createAttachmentPart
public AttachmentPart createAttachmentPart()(Code)



getAction
public String getAction()(Code)



getAttachment
public AttachmentPart getAttachment(SOAPElement element) throws SOAPException(Code)



getAttachments
public Iterator getAttachments()(Code)



getAttachments
public Iterator getAttachments(MimeHeaders headers)(Code)



getBaseType
public String getBaseType()(Code)



getCharset
public String getCharset()(Code)



getContentDescription
public String getContentDescription()(Code)



getContentType
final static String getContentType(MimeHeaders headers)(Code)



getContentType
public String getContentType()(Code)



getExpectedAcceptHeader
abstract protected String getExpectedAcceptHeader()(Code)



getExpectedContentType
abstract protected String getExpectedContentType()(Code)



getMimeHeaders
public MimeHeaders getMimeHeaders()(Code)



getProperty
public Object getProperty(String property)(Code)



getSOAPBody
public SOAPBody getSOAPBody() throws SOAPException(Code)



getSOAPHeader
public SOAPHeader getSOAPHeader() throws SOAPException(Code)



getSOAPPart
abstract public SOAPPart getSOAPPart()(Code)



identifyContentType
static int identifyContentType(ContentType contentType) throws SOAPExceptionImpl(Code)
Sniffs the Content-Type header so that we can determine how to process.

In the absence of type attribute we assume it to be text/xml. That would mean we're easy on accepting the message and generate the correct thing (as the SWA spec also specifies that the type parameter should always be text/xml) combination of flags, such as PLAIN_XML_CODE and MIME_MULTIPART_CODE.




isCorrectSoapVersion
abstract protected boolean isCorrectSoapVersion(int contentTypeId)(Code)



isFastInfoset
public boolean isFastInfoset()(Code)



isSoap1_1Content
protected static boolean isSoap1_1Content(int stat)(Code)

Parameters:
  stat - the mask value obtained from MessageImpl.identifyContentType(ContentType)



isSoap1_2Content
protected static boolean isSoap1_2Content(int stat)(Code)

Parameters:
  stat - the mask value obtained from MessageImpl.identifyContentType(ContentType)



removeAllAttachments
public void removeAllAttachments()(Code)



removeAttachments
public void removeAttachments(MimeHeaders headers)(Code)



saveChanges
public void saveChanges() throws SOAPException(Code)



saveRequired
public boolean saveRequired()(Code)



setAction
public void setAction(String action)(Code)



setBaseType
public void setBaseType(String type)(Code)



setCharset
public void setCharset(String charset)(Code)



setContentDescription
public void setContentDescription(String description)(Code)



setContentType
public void setContentType(String type)(Code)



setIsFastInfoset
public void setIsFastInfoset(boolean value)(Code)



setLazyAttachments
public void setLazyAttachments(boolean flag)(Code)



setProperty
public void setProperty(String property, Object value)(Code)



writeTo
public void writeTo(OutputStream out) throws SOAPException, IOException(Code)



Fields inherited from javax.xml.soap.SOAPMessage
final public static String CHARACTER_SET_ENCODING(Code)(Java Doc)
final public static String WRITE_XML_DECLARATION(Code)(Java Doc)

Methods inherited from javax.xml.soap.SOAPMessage
abstract public void addAttachmentPart(AttachmentPart AttachmentPart)(Code)(Java Doc)
abstract public int countAttachments()(Code)(Java Doc)
abstract public AttachmentPart createAttachmentPart()(Code)(Java Doc)
public AttachmentPart createAttachmentPart(DataHandler dataHandler)(Code)(Java Doc)
public AttachmentPart createAttachmentPart(Object content, String contentType)(Code)(Java Doc)
abstract public AttachmentPart getAttachment(SOAPElement element) throws SOAPException(Code)(Java Doc)
abstract public Iterator getAttachments()(Code)(Java Doc)
abstract public Iterator getAttachments(MimeHeaders headers)(Code)(Java Doc)
abstract public String getContentDescription()(Code)(Java Doc)
abstract public MimeHeaders getMimeHeaders()(Code)(Java Doc)
public Object getProperty(String property) throws SOAPException(Code)(Java Doc)
public SOAPBody getSOAPBody() throws SOAPException(Code)(Java Doc)
public SOAPHeader getSOAPHeader() throws SOAPException(Code)(Java Doc)
abstract public SOAPPart getSOAPPart()(Code)(Java Doc)
abstract public void removeAllAttachments()(Code)(Java Doc)
abstract public void removeAttachments(MimeHeaders headers)(Code)(Java Doc)
abstract public void saveChanges() throws SOAPException(Code)(Java Doc)
abstract public boolean saveRequired()(Code)(Java Doc)
abstract public void setContentDescription(String description)(Code)(Java Doc)
public void setProperty(String property, Object value) throws SOAPException(Code)(Java Doc)
abstract public void writeTo(OutputStream out) throws SOAPException, IOException(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.