Java Doc for Messages.java in  » 6.0-JDK-Modules » jax-ws-runtime » com » sun » xml » ws » api » message » 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 » jax ws runtime » com.sun.xml.ws.api.message 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.xml.ws.api.message.Messages

Messages
abstract public class Messages (Code)
Factory methods for various Message implementations.

This class provides various methods to create different flavors of Message classes that store data in different formats.

This is a part of the JAX-WS RI internal API so that Tube implementations can reuse the implementations done inside the JAX-WS.

If you find some of the useful convenience methods missing from this class, please talk to us.
author:
   Kohsuke Kawaguchi





Method Summary
public static  Messagecreate(JAXBRIContext context, Object jaxbObject, SOAPVersion soapVersion)
     Creates a Message backed by a JAXB bean.
Parameters:
  context - The context to be used to produce infoset from the object.
public static  Messagecreate(Marshaller marshaller, Object jaxbObject, SOAPVersion soapVersion)
    
public static  Messagecreate(SOAPMessage saaj)
     Creates a Message backed by a SAAJ SOAPMessage object.

If the SOAPMessage contains headers and attachments, this method does the right thing.
Parameters:
  saaj - The SOAP message to be represented as a Message.Must not be null.

public static  Messagecreate(Element soapEnvelope)
     Creates a Message from an Element that represents the whole SOAP message.
public static  Messagecreate(Source envelope, SOAPVersion soapVersion)
     Creates a Message using Source as entire envelope.
Parameters:
  envelope - Source envelope is used to create MessageMust not be null.
public static  Messagecreate(XMLStreamReader reader)
     Creates a Message from XMLStreamReader that points to the start of the envelope.
public static  Messagecreate(XMLStreamBuffer xsb)
     Creates a Message from XMLStreamBuffer that retains the whole envelope infoset.
public static  Messagecreate(Throwable t, SOAPVersion soapVersion)
     Creates a Message that represents an exception as a fault.
public static  Messagecreate(SOAPFault fault)
     Creates a fault Message .

This method is not designed for efficiency, and we don't expect to be used for the performance critical codepath.
Parameters:
  fault - The populated SAAJ data structure that represents a faultin detail.Always non-null.

public static  Messagecreate(String unsupportedAction, AddressingVersion av, SOAPVersion sv)
     Creates a fault Message that captures the code/subcode/subsubcode defined by WS-Addressing if wsa:Action is not supported.
Parameters:
  unsupportedAction - The unsupported Action.
public static  Messagecreate(SOAPVersion soapVersion, ProtocolException pex, QName faultcode)
     To be called to convert a ProtocolException and faultcode for a given SOAPVersion in to a Message .
Parameters:
  soapVersion - SOAPVersion.SOAP_11 or SOAPVersion.SOAP_12
Parameters:
  pex - a ProtocolException
Parameters:
  faultcode - soap faultcode.
public static  MessagecreateEmpty(SOAPVersion soapVersion)
     Creates a Message that doesn't have any payload.
public static  MessagecreateUsingPayload(Source payload, SOAPVersion ver)
     Creates a Message using Source as payload.
Parameters:
  payload - Source payload is Message's payloadMust not be null.
public static  MessagecreateUsingPayload(XMLStreamReader payload, SOAPVersion ver)
     Creates a Message using XMLStreamReader as payload.
Parameters:
  payload - XMLStreamReader payload is Message's payloadMust not be null.
public static  MessagecreateUsingPayload(Element payload, SOAPVersion ver)
     Creates a Message from an Element that represents a payload.
Parameters:
  payload - The element that becomes the child element of the SOAP body.Must not be null.
Parameters:
  ver - The SOAP version of the message.



Method Detail
create
public static Message create(JAXBRIContext context, Object jaxbObject, SOAPVersion soapVersion)(Code)
Creates a Message backed by a JAXB bean.
Parameters:
  context - The context to be used to produce infoset from the object. Must not be null.
Parameters:
  jaxbObject - The JAXB object that represents the payload. must not be null. This objectmust be bound to an element (which means it either is a JAXBElement oran instanceof a class with XmlRootElement).
Parameters:
  soapVersion - The SOAP version of the message. Must not be null.



create
public static Message create(Marshaller marshaller, Object jaxbObject, SOAPVersion soapVersion)(Code)
Messages.create(JAXBRIContext,Object,SOAPVersion)



create
public static Message create(SOAPMessage saaj)(Code)
Creates a Message backed by a SAAJ SOAPMessage object.

If the SOAPMessage contains headers and attachments, this method does the right thing.
Parameters:
  saaj - The SOAP message to be represented as a Message.Must not be null. Once this method is invoked, the createdMessage will own the SOAPMessage, so it shallnever be touched directly.




create
public static Message create(Element soapEnvelope)(Code)
Creates a Message from an Element that represents the whole SOAP message.
Parameters:
  soapEnvelope - The SOAP envelope element.



create
public static Message create(Source envelope, SOAPVersion soapVersion)(Code)
Creates a Message using Source as entire envelope.
Parameters:
  envelope - Source envelope is used to create MessageMust not be null. Once this method is invoked, the createdMessage will own the Source, so it shallnever be touched directly.



create
public static Message create(XMLStreamReader reader)(Code)
Creates a Message from XMLStreamReader that points to the start of the envelope.
Parameters:
  reader - can point to the start document or the start element (of <s:Envelope>)



create
public static Message create(XMLStreamBuffer xsb)(Code)
Creates a Message from XMLStreamBuffer that retains the whole envelope infoset.
Parameters:
  xsb - This buffer must contain the infoset of the whole envelope.



create
public static Message create(Throwable t, SOAPVersion soapVersion)(Code)
Creates a Message that represents an exception as a fault. The created message reflects if t or t.getCause() is SOAPFaultException. creates a fault message with default faultCode env:Server if t or t.getCause() is not SOAPFaultException. Otherwise, it use SOAPFaultException's faultCode Always non-null. A message that wraps this Throwable.



create
public static Message create(SOAPFault fault)(Code)
Creates a fault Message .

This method is not designed for efficiency, and we don't expect to be used for the performance critical codepath.
Parameters:
  fault - The populated SAAJ data structure that represents a faultin detail.Always non-null. A message that wraps this SOAPFault.




create
public static Message create(String unsupportedAction, AddressingVersion av, SOAPVersion sv)(Code)
Creates a fault Message that captures the code/subcode/subsubcode defined by WS-Addressing if wsa:Action is not supported.
Parameters:
  unsupportedAction - The unsupported Action. Must not be null.
Parameters:
  av - The WS-Addressing version of the message. Must not be null.
Parameters:
  sv - The SOAP Version of the message. Must not be null.A message representing SOAPFault that contains the WS-Addressing code/subcode/subsubcode.



create
public static Message create(SOAPVersion soapVersion, ProtocolException pex, QName faultcode)(Code)
To be called to convert a ProtocolException and faultcode for a given SOAPVersion in to a Message .
Parameters:
  soapVersion - SOAPVersion.SOAP_11 or SOAPVersion.SOAP_12
Parameters:
  pex - a ProtocolException
Parameters:
  faultcode - soap faultcode. Its ignored if the ProtocolException instance is javax.xml.ws.soap.SOAPFaultException and it has afaultcode present in the underlying SOAPFault. Message representing SOAP fault



createEmpty
public static Message createEmpty(SOAPVersion soapVersion)(Code)
Creates a Message that doesn't have any payload.



createUsingPayload
public static Message createUsingPayload(Source payload, SOAPVersion ver)(Code)
Creates a Message using Source as payload.
Parameters:
  payload - Source payload is Message's payloadMust not be null. Once this method is invoked, the createdMessage will own the Source, so it shallnever be touched directly.
Parameters:
  ver - The SOAP version of the message. Must not be null.



createUsingPayload
public static Message createUsingPayload(XMLStreamReader payload, SOAPVersion ver)(Code)
Creates a Message using XMLStreamReader as payload.
Parameters:
  payload - XMLStreamReader payload is Message's payloadMust not be null. Once this method is invoked, the createdMessage will own the XMLStreamReader, so it shallnever be touched directly.
Parameters:
  ver - The SOAP version of the message. Must not be null.



createUsingPayload
public static Message createUsingPayload(Element payload, SOAPVersion ver)(Code)
Creates a Message from an Element that represents a payload.
Parameters:
  payload - The element that becomes the child element of the SOAP body.Must not be null.
Parameters:
  ver - The SOAP version of the message. Must not be null.



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.