Java Doc for ContextUtils.java in  » Web-Services-apache-cxf-2.0.1 » ws-addressing » org » apache » cxf » ws » addressing » 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 apache cxf 2.0.1 » ws addressing » org.apache.cxf.ws.addressing 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.cxf.ws.addressing.ContextUtils

ContextUtils
final public class ContextUtils (Code)
Holder for utility methods relating to contexts.


Field Summary
final public static  ObjectFactoryWSA_OBJECT_FACTORY
    


Method Summary
public static  voidapplyReferenceParam(EndpointReferenceType toEpr, JAXBElement<String> el)
    
public static  StringgenerateUUID()
    
public static  AttributedURITypegetAction(Message message)
     Construct the Action URI.
public static  AttributedURITypegetAttributedURI(String uri)
     Helper method to get an attributed URI.
public static  ConduitgetConduit(Conduit conduit, Message message)
    
public static  JAXBContextgetJAXBContext()
     Retrieve a JAXBContext for marshalling and unmarshalling JAXB generated types.
public static  StringgetMAPProperty(boolean isRequestor, boolean isProviderContext, boolean isOutbound)
     Get appropriate property name for message addressing properties.
public static  EndpointReferenceTypegetNoneEndpointReference()
    
public static  RelatesToTypegetRelatesTo(String uri)
     Helper method to get a RealtesTo instance.
public static  booleanhasEmptyAction(AddressingProperties maps)
     Helper method to determine if an MAPs Action is empty (a null action is considered empty, whereas a zero length action suppresses the propogation of the Action property).
public static  booleanisFault(Message message)
     Determine if message is fault.
public static  booleanisGenericAddress(EndpointReferenceType ref)
     Helper method to determine if an EPR address is generic (either null, none or anonymous).
public static  booleanisOutbound(Message message)
     Determine if message is outbound.
public static  booleanisRequestor(Message message)
     Determine if current messaging role is that of requestor.
public static  voidpropogateReceivedMAPs(AddressingProperties inMAPs, Exchange exchange)
     Propogate inbound MAPs onto full reponse & fault messages.
public static  voidrebaseResponse(EndpointReferenceType reference, AddressingProperties inMAPs, Message inMessage)
    
public static  booleanretrieveAsyncPostResponseDispatch(Message message)
     Retrieve indication that an async post-response service invocation is required.
public static  StringretrieveMAPFaultName(Message message)
     Retrieve MAP fault name from the message.
public static  StringretrieveMAPFaultReason(Message message)
     Retrieve MAP fault reason from the message.
public static  AddressingPropertiesImplretrieveMAPs(Message message, boolean isProviderContext, boolean isOutbound)
    
public static  AddressingPropertiesImplretrieveMAPs(Message message, boolean isProviderContext, boolean isOutbound, boolean warnIfMissing)
    
public static  booleanretrievePartialResponseSent(Message message)
     Retrieve indication that a partial response has been sent.
public static  voidsetJAXBContext(JAXBContext ctx)
     Set the encapsulated JAXBContext (used by unit tests).
public static  voidstoreMAPFaultName(String faultName, Message message)
     Store bad MAP fault name in the message.
public static  voidstoreMAPFaultReason(String reason, Message message)
     Store MAP fault reason in the message.
public static  voidstoreMAPs(AddressingProperties maps, Message message, boolean isOutbound)
     Store MAPs in the message.
public static  voidstoreMAPs(AddressingProperties maps, Message message, boolean isOutbound, boolean isRequestor)
     Store MAPs in the message.
public static  voidstoreMAPs(AddressingProperties maps, Message message, boolean isOutbound, boolean isRequestor, boolean isProviderContext)
     Store MAPs in the message.
public static  voidstorePartialResponseSent(Message message)
     Store an indication that a partial response has been sent.

Field Detail
WSA_OBJECT_FACTORY
final public static ObjectFactory WSA_OBJECT_FACTORY(Code)





Method Detail
applyReferenceParam
public static void applyReferenceParam(EndpointReferenceType toEpr, JAXBElement<String> el)(Code)



generateUUID
public static String generateUUID()(Code)
a generated UUID



getAction
public static AttributedURIType getAction(Message message)(Code)
Construct the Action URI.
Parameters:
  message - the current message the Action URI



getAttributedURI
public static AttributedURIType getAttributedURI(String uri)(Code)
Helper method to get an attributed URI.
Parameters:
  uri - the URI an AttributedURIType encapsulating the URI



getConduit
public static Conduit getConduit(Conduit conduit, Message message)(Code)
Retreive Conduit from Exchange if not already available
Parameters:
  conduit - the current value for the Conduit
Parameters:
  message - the current message the Conduit if available



getJAXBContext
public static JAXBContext getJAXBContext() throws JAXBException(Code)
Retrieve a JAXBContext for marshalling and unmarshalling JAXB generated types. a JAXBContext



getMAPProperty
public static String getMAPProperty(boolean isRequestor, boolean isProviderContext, boolean isOutbound)(Code)
Get appropriate property name for message addressing properties.
Parameters:
  isProviderContext - true if the binding provider request context available to the client application as opposed to the message context visible to handlers
Parameters:
  isRequestor - true iff the current messaging role is that ofrequestor
Parameters:
  isOutbound - true iff the message is outbound the property name to use when caching the MAPs in the context



getNoneEndpointReference
public static EndpointReferenceType getNoneEndpointReference()(Code)



getRelatesTo
public static RelatesToType getRelatesTo(String uri)(Code)
Helper method to get a RealtesTo instance.
Parameters:
  uri - the related URI a RelatesToType encapsulating the URI



hasEmptyAction
public static boolean hasEmptyAction(AddressingProperties maps)(Code)
Helper method to determine if an MAPs Action is empty (a null action is considered empty, whereas a zero length action suppresses the propogation of the Action property).
Parameters:
  ref - the MAPs Action under test true iff the Action is empty



isFault
public static boolean isFault(Message message)(Code)
Determine if message is fault.
Parameters:
  message - the current Message true iff the message is a fault



isGenericAddress
public static boolean isGenericAddress(EndpointReferenceType ref)(Code)
Helper method to determine if an EPR address is generic (either null, none or anonymous).
Parameters:
  ref - the EPR under test true iff the address is generic



isOutbound
public static boolean isOutbound(Message message)(Code)
Determine if message is outbound.
Parameters:
  message - the current Message true iff the message direction is outbound



isRequestor
public static boolean isRequestor(Message message)(Code)
Determine if current messaging role is that of requestor.
Parameters:
  message - the current Message true iff the current messaging role is that of requestor



propogateReceivedMAPs
public static void propogateReceivedMAPs(AddressingProperties inMAPs, Exchange exchange)(Code)
Propogate inbound MAPs onto full reponse & fault messages.
Parameters:
  inMAPs - the inbound MAPs
Parameters:
  exchange - the current Exchange



rebaseResponse
public static void rebaseResponse(EndpointReferenceType reference, AddressingProperties inMAPs, Message inMessage)(Code)
Rebase response on replyTo
Parameters:
  reference - the replyTo reference
Parameters:
  inMAPs - the inbound MAPs
Parameters:
  inMessage - the current message



retrieveAsyncPostResponseDispatch
public static boolean retrieveAsyncPostResponseDispatch(Message message)(Code)
Retrieve indication that an async post-response service invocation is required.
Parameters:
  message - the current message



retrieveMAPFaultName
public static String retrieveMAPFaultName(Message message)(Code)
Retrieve MAP fault name from the message.
Parameters:
  message - the current message



retrieveMAPFaultReason
public static String retrieveMAPFaultReason(Message message)(Code)
Retrieve MAP fault reason from the message.
Parameters:
  message - the current message



retrieveMAPs
public static AddressingPropertiesImpl retrieveMAPs(Message message, boolean isProviderContext, boolean isOutbound)(Code)

Parameters:
  message - the current message
Parameters:
  isProviderContext - true if the binding provider request contextavailable to the client application as opposed to the message contextvisible to handlers
Parameters:
  isOutbound - true iff the message is outbound the current addressing properties



retrieveMAPs
public static AddressingPropertiesImpl retrieveMAPs(Message message, boolean isProviderContext, boolean isOutbound, boolean warnIfMissing)(Code)

Parameters:
  message - the current message
Parameters:
  isProviderContext - true if the binding provider request contextavailable to the client application as opposed to the message contextvisible to handlers
Parameters:
  isOutbound - true iff the message is outbound
Parameters:
  warnIfMissing - log a warning message if properties cannot be retrieved the current addressing properties



retrievePartialResponseSent
public static boolean retrievePartialResponseSent(Message message)(Code)
Retrieve indication that a partial response has been sent.
Parameters:
  message - the current message



setJAXBContext
public static void setJAXBContext(JAXBContext ctx) throws JAXBException(Code)
Set the encapsulated JAXBContext (used by unit tests).
Parameters:
  ctx - JAXBContext



storeMAPFaultName
public static void storeMAPFaultName(String faultName, Message message)(Code)
Store bad MAP fault name in the message.
Parameters:
  faultName - the fault name to store
Parameters:
  message - the current message



storeMAPFaultReason
public static void storeMAPFaultReason(String reason, Message message)(Code)
Store MAP fault reason in the message.
Parameters:
  reason - the fault reason to store
Parameters:
  message - the current message



storeMAPs
public static void storeMAPs(AddressingProperties maps, Message message, boolean isOutbound)(Code)
Store MAPs in the message.
Parameters:
  message - the current message
Parameters:
  isOutbound - true iff the message is outbound



storeMAPs
public static void storeMAPs(AddressingProperties maps, Message message, boolean isOutbound, boolean isRequestor)(Code)
Store MAPs in the message.
Parameters:
  maps - the MAPs to store
Parameters:
  message - the current message
Parameters:
  isOutbound - true iff the message is outbound
Parameters:
  isRequestor - true iff the current messaging role is that ofrequestor
Parameters:
  handler - true if HANDLER scope, APPLICATION scope otherwise



storeMAPs
public static void storeMAPs(AddressingProperties maps, Message message, boolean isOutbound, boolean isRequestor, boolean isProviderContext)(Code)
Store MAPs in the message.
Parameters:
  maps - the MAPs to store
Parameters:
  message - the current message
Parameters:
  isOutbound - true iff the message is outbound
Parameters:
  isRequestor - true iff the current messaging role is that ofrequestor
Parameters:
  handler - true if HANDLER scope, APPLICATION scope otherwise
Parameters:
  isProviderContext - true if the binding provider request context



storePartialResponseSent
public static void storePartialResponseSent(Message message)(Code)
Store an indication that a partial response has been sent. Relavant if *both* the replyTo & faultTo are decoupled, and a fault occurs, then we would already have sent the partial response (pre-dispatch) for the replyTo, so no need to send again.
Parameters:
  message - the current message



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.