Java Doc for Message.java in  » 6.0-JDK-Modules-com.sun » wsit » com » sun » xml » ws » rm » 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 com.sun » wsit » com.sun.xml.ws.rm 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.xml.ws.rm.Message

Message
public class Message (Code)
Message is an abstraction of messages that can be added to WS-RM Sequences. Each instance wraps a JAX-WS message.


Field Summary
protected  AbstractAckRequestedackRequestedElement
     SequenceElement stored when the corresponding com.sun.xml.ws.api.message.Header is added to the message.
protected  booleanisBusy
    
protected  booleanisComplete
     Flag indicating whether message is delivered/acked. The meaning differs according to the type of sequence to which the message belongs.
public  booleanisOneWayResponse
     Set in empty message used to piggyback response headers on a one-way response.
public  booleanisTwoWayRequest
     When true, indicates that the message is a request message for a two-way operation.
protected  com.sun.xml.ws.api.message.Messagemessage
     The JAX-WS Message wrapped by this instance.
protected  intmessageNumber
     The messageNumber of the Message in its Sequence.
protected  com.sun.xml.ws.rm.MessagerelatedMessage
     For messages belonging to 2-way MEPS, the corresponding message.
protected  Sequencesequence
     The Sequence to which the message belongs.
protected  AbstractSequenceAcknowledgementsequenceAcknowledgementElement
     SequenceAcknowledgmentElement stored when the corresponding com.sun.xml.ws.api.message.Header is added to the message.
protected  AbstractSequencesequenceElement
     Sequence stored when the corresponding com.sun.xml.ws.api.message.Header is added to the message.
protected  RMVersionversion
     Version of RM spec being used.

Constructor Summary
public  Message(com.sun.xml.ws.api.message.Message message, RMVersion version)
     Public ctor takes wrapped JAX-WS message as its argument.

Method Summary
public  voidaddHeader(com.sun.xml.ws.api.message.Header header)
     Add the specified RM Header element to the underlying JAX-WS message's HeaderList.
public  voidcomplete()
     Sets the isComplete field to true, indicating that the message has been acked.
public  voidcopyContents()
     Returns a com.sun.ws.rm.Message whose inner com.sun.xml.ws.api.message.Message is replaced by a copy of the original one.
public  AbstractAckRequestedgetAckRequestedElement()
    
public  com.sun.xml.ws.api.message.MessagegetCopy()
     Returns a copy of the wrapped com.sun.xml.ws.api.message.Message.
public  com.sun.xml.ws.api.message.HeadergetHeader(String name)
    
public  booleangetIsBusy()
     Accessors for isBusy field used with Tubeline implementation.
public  intgetMessageNumber()
    
public  com.sun.xml.ws.rm.MessagegetRelatedMessage()
     Accessor for the relatedMessage field.
public  SequencegetSequence()
     Gets the Sequence to which the Message belongs.
public  AbstractSequenceAcknowledgementgetSequenceAcknowledgementElement()
    
public  AbstractSequencegetSequenceElement()
    
public synchronized  booleanisBusy()
    
public  booleanisComplete()
    
public synchronized  voidresume()
     Resume processing of the message on this Message's monitor.
public  voidsetAckRequestedElement(AbstractAckRequested el)
    
public  voidsetIsBusy(boolean value)
    
public  voidsetMessageNumber(int messageNumber)
     Sets the value of the messageNumber field.
public  voidsetMessageSender(MessageSender messageSender)
     For client message, sets the messageSender used to resend messages.
public  voidsetRelatedMessage(com.sun.xml.ws.rm.Message mess)
     Mutator for the relatedMessage field.
public  voidsetSequence(Sequence sequence)
     Sets the value of the sequence field.
public  voidsetSequenceAcknowledgementElement(AbstractSequenceAcknowledgement el)
    
public  voidsetSequenceElement(AbstractSequence el)
    
public  StringtoString()
    

Field Detail
ackRequestedElement
protected AbstractAckRequested ackRequestedElement(Code)
SequenceElement stored when the corresponding com.sun.xml.ws.api.message.Header is added to the message.



isBusy
protected boolean isBusy(Code)
Flag which is true if and only if the message is being processed



isComplete
protected boolean isComplete(Code)
Flag indicating whether message is delivered/acked. The meaning differs according to the type of sequence to which the message belongs. The value must only be changed using the complete() method, which should only be invoked by the Sequence containing the message.



isOneWayResponse
public boolean isOneWayResponse(Code)
Set in empty message used to piggyback response headers on a one-way response.



isTwoWayRequest
public boolean isTwoWayRequest(Code)
When true, indicates that the message is a request message for a two-way operation. ClientOutboundSequence with anonymous AcksTo has to handle Acknowledgements differently in this case.



message
protected com.sun.xml.ws.api.message.Message message(Code)
The JAX-WS Message wrapped by this instance.



messageNumber
protected int messageNumber(Code)
The messageNumber of the Message in its Sequence.



relatedMessage
protected com.sun.xml.ws.rm.Message relatedMessage(Code)
For messages belonging to 2-way MEPS, the corresponding message.



sequence
protected Sequence sequence(Code)
The Sequence to which the message belongs.



sequenceAcknowledgementElement
protected AbstractSequenceAcknowledgement sequenceAcknowledgementElement(Code)
SequenceAcknowledgmentElement stored when the corresponding com.sun.xml.ws.api.message.Header is added to the message.



sequenceElement
protected AbstractSequence sequenceElement(Code)
Sequence stored when the corresponding com.sun.xml.ws.api.message.Header is added to the message.



version
protected RMVersion version(Code)
Version of RM spec being used.




Constructor Detail
Message
public Message(com.sun.xml.ws.api.message.Message message, RMVersion version)(Code)
Public ctor takes wrapped JAX-WS message as its argument.




Method Detail
addHeader
public void addHeader(com.sun.xml.ws.api.message.Header header)(Code)
Add the specified RM Header element to the underlying JAX-WS message's HeaderList.
Parameters:
  header - The Header to add to the HeaderList.



complete
public void complete()(Code)
Sets the isComplete field to true, indicating that the message has been acked. Also discards the stored com.sun.xml.api.message.Message.



copyContents
public void copyContents()(Code)
Returns a com.sun.ws.rm.Message whose inner com.sun.xml.ws.api.message.Message is replaced by a copy of the original one. This message is stored in the relatedMessage field of ClientInboundSequence messages. A copy needs to be retained rather than the original since the original will already have been consumed at such time the relatedMessage needs to be resent.



getAckRequestedElement
public AbstractAckRequested getAckRequestedElement()(Code)



getCopy
public com.sun.xml.ws.api.message.Message getCopy()(Code)
Returns a copy of the wrapped com.sun.xml.ws.api.message.Message.



getHeader
public com.sun.xml.ws.api.message.Header getHeader(String name)(Code)
Get the RM Header Element with the specified name from the underlying JAX-WS message's HeaderList
Parameters:
  name - The name of the Header to find.



getIsBusy
public boolean getIsBusy()(Code)
Accessors for isBusy field used with Tubeline implementation.



getMessageNumber
public int getMessageNumber()(Code)
Returns the value of the messageNumber field The message number.



getRelatedMessage
public com.sun.xml.ws.rm.Message getRelatedMessage()(Code)
Accessor for the relatedMessage field. The response corresponding to a request and vice-versa.



getSequence
public Sequence getSequence()(Code)
Gets the Sequence to which the Message belongs. The sequence.



getSequenceAcknowledgementElement
public AbstractSequenceAcknowledgement getSequenceAcknowledgementElement()(Code)



getSequenceElement
public AbstractSequence getSequenceElement()(Code)



isBusy
public synchronized boolean isBusy()(Code)



isComplete
public boolean isComplete()(Code)
Determines whether this message is delivered/acked The value of the isComplete flag



resume
public synchronized void resume()(Code)
Resume processing of the message on this Message's monitor.



setAckRequestedElement
public void setAckRequestedElement(AbstractAckRequested el)(Code)



setIsBusy
public void setIsBusy(boolean value)(Code)



setMessageNumber
public void setMessageNumber(int messageNumber)(Code)
Sets the value of the messageNumber field. Used by Sequence methods when adding message to the sequence.
Parameters:
  messageNumber - The message number.



setMessageSender
public void setMessageSender(MessageSender messageSender)(Code)
For client message, sets the messageSender used to resend messages.



setRelatedMessage
public void setRelatedMessage(com.sun.xml.ws.rm.Message mess)(Code)
Mutator for the relatedMessage field.
Parameters:
  mess -



setSequence
public void setSequence(Sequence sequence)(Code)
Sets the value of the sequence field. Used by Sequence methods when adding message to the sequence.
Parameters:
  sequence - The sequence.



setSequenceAcknowledgementElement
public void setSequenceAcknowledgementElement(AbstractSequenceAcknowledgement el)(Code)



setSequenceElement
public void setSequenceElement(AbstractSequence el)(Code)



toString
public String toString()(Code)



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.