Java Doc for ContextUtils.java in  » ESB » celtix-1.0 » org » objectweb » celtix » bus » 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 » ESB » celtix 1.0 » org.objectweb.celtix.bus.ws.addressing 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.objectweb.celtix.bus.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  StringgenerateUUID()
    
public static  AttributedURITypegetAction(MessageContext context)
     Construct the Action URI.
public static  AttributedURITypegetAttributedURI(String uri)
     Helper method to get an attributed URI.
public static  StringgetCorrelationIDProperty(boolean isOutbound)
     Get appropriate context property name for correlation ID.
public static  JAXBContextgetJAXBContext()
     Retrieve a JAXBContext for marshalling and unmarshalling JAXB generated types.
public static  StringgetMAPProperty(boolean isRequestor, boolean isProviderContext, boolean isOutbound)
     Get appropriate context property name for message addressing properties.
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  booleanisGenericAddress(EndpointReferenceType ref)
     Helper method to determine if an EPR address is generic (either null, none or anonymous).
public static  booleanisOneway(MessageContext context)
     Determine if context indicates current invocation is oneway.
public static  booleanisOutbound(MessageContext context)
     Determine if context indicates message is outbound.
public static  booleanisRequestor(MessageContext context)
     Determine if context indicates current messaging role is that of requestor.
public static  voidrebaseTransport(AddressingProperties inMAPs, MessageContext context, ServerBinding serverBinding, ServerTransport serverTransport)
    
public static  StringretrieveCorrelationID(MessageContext context, boolean isOutbound)
     Retrieve correlation ID from the context.
public static  StringretrieveMAPFaultName(MessageContext context)
     Retrieve MAP fault name from the context.
public static  StringretrieveMAPFaultReason(MessageContext context)
     Retrieve MAP fault reason from the context.
public static  AddressingPropertiesImplretrieveMAPs(MessageContext context, boolean isProviderContext, boolean isOutbound)
    
public static  EndpointReferenceTyperetrieveReplyTo(MessageContext context)
     Retrieve ReplyTo EPR from the context.
public static  EndpointReferenceTyperetrieveTo(MessageContext context)
     Retrieve To EPR from the context.
public static  booleanretrieveUsingAddressing(MessageContext context)
    
public static  voidsetJAXBContext(JAXBContext ctx)
     Set the encapsulated JAXBContext (used by unit tests).
public static  voidstoreCorrelationID(RelatesToType id, boolean isOutbound, MessageContext context)
    
public static  voidstoreCorrelationID(AttributedURIType id, boolean isOutbound, MessageContext context)
    
protected static  voidstoreCorrelationID(String id, boolean isOutbound, MessageContext context)
    
public static  voidstoreMAPFaultName(String faultName, MessageContext context)
     Store bad MAP fault name in the context.
public static  voidstoreMAPFaultReason(String reason, MessageContext context)
     Store MAP fault reason in the context.
public static  voidstoreMAPs(AddressingProperties maps, MessageContext context, boolean isOutbound)
     Store MAPs in the context.
public static  voidstoreMAPs(AddressingProperties maps, MessageContext context, boolean isOutbound, boolean isRequestor, boolean handler)
     Store MAPs in the context.
public static  voidstoreMAPs(AddressingProperties maps, MessageContext context, boolean isOutbound, boolean isRequestor, boolean handler, boolean isProviderContext)
     Store MAPs in the context.
public static  voidstoreReplyTo(EndpointReferenceType replyTo, MessageContext context)
    
public static  voidstoreTo(EndpointReferenceType to, MessageContext context)
    
public static  voidstoreUsingAddressing(boolean override, MessageContext context)
    

Field Detail
WSA_OBJECT_FACTORY
final public static ObjectFactory WSA_OBJECT_FACTORY(Code)





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



getAction
public static AttributedURIType getAction(MessageContext context)(Code)
Construct the Action URI.
Parameters:
  context - the message context 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



getCorrelationIDProperty
public static String getCorrelationIDProperty(boolean isOutbound)(Code)
Get appropriate context property name for correlation ID.
Parameters:
  isOutbound - true iff the message is outbound the property name to use when caching the correlation ID in the context



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 context 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



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



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



isOneway
public static boolean isOneway(MessageContext context)(Code)
Determine if context indicates current invocation is oneway.
Parameters:
  context - the current MessageContext true iff the current invocation is oneway



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



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



rebaseTransport
public static void rebaseTransport(AddressingProperties inMAPs, MessageContext context, ServerBinding serverBinding, ServerTransport serverTransport)(Code)
Rebase server transport on replyTo
Parameters:
  inMAPs - the incoming MAPs
Parameters:
  context - the message context



retrieveCorrelationID
public static String retrieveCorrelationID(MessageContext context, boolean isOutbound)(Code)
Retrieve correlation ID from the context.
Parameters:
  context - the message context
Parameters:
  isOutbound - true if message is outbound



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



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



retrieveMAPs
public static AddressingPropertiesImpl retrieveMAPs(MessageContext context, boolean isProviderContext, boolean isOutbound)(Code)

Parameters:
  context - the message context
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



retrieveReplyTo
public static EndpointReferenceType retrieveReplyTo(MessageContext context)(Code)
Retrieve ReplyTo EPR from the context.
Parameters:
  context - the message context



retrieveTo
public static EndpointReferenceType retrieveTo(MessageContext context)(Code)
Retrieve To EPR from the context.
Parameters:
  context - the message context



retrieveUsingAddressing
public static boolean retrieveUsingAddressing(MessageContext context)(Code)
Retrieve UsingAddressing override flag from the context
Parameters:
  override - true if UsingAddressing should be overridden
Parameters:
  context - the message context



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



storeCorrelationID
public static void storeCorrelationID(RelatesToType id, boolean isOutbound, MessageContext context)(Code)
Store correlation ID in the context
Parameters:
  id - the correlation ID
Parameters:
  isOutbound - true if message is outbound
Parameters:
  context - the message context



storeCorrelationID
public static void storeCorrelationID(AttributedURIType id, boolean isOutbound, MessageContext context)(Code)
Store correlation ID in the context
Parameters:
  id - the correlation ID
Parameters:
  isOutbound - true if message is outbound
Parameters:
  context - the message context



storeCorrelationID
protected static void storeCorrelationID(String id, boolean isOutbound, MessageContext context)(Code)
Store correlation ID in the context
Parameters:
  id - the correlation ID
Parameters:
  isOutbound - true if message is outbound
Parameters:
  context - the message context



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



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



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



storeMAPs
public static void storeMAPs(AddressingProperties maps, MessageContext context, boolean isOutbound, boolean isRequestor, boolean handler)(Code)
Store MAPs in the context.
Parameters:
  maps - the MAPs to store
Parameters:
  context - the message context
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, MessageContext context, boolean isOutbound, boolean isRequestor, boolean handler, boolean isProviderContext)(Code)
Store MAPs in the context.
Parameters:
  maps - the MAPs to store
Parameters:
  context - the message context
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



storeReplyTo
public static void storeReplyTo(EndpointReferenceType replyTo, MessageContext context)(Code)
Store ReplyTo EPR in the context
Parameters:
  replyTo - the ReplyTo EPR
Parameters:
  context - the message context



storeTo
public static void storeTo(EndpointReferenceType to, MessageContext context)(Code)
Store To EPR in the context
Parameters:
  to - the To EPR
Parameters:
  context - the message context



storeUsingAddressing
public static void storeUsingAddressing(boolean override, MessageContext context)(Code)
Store UsingAddressing override flag in the context
Parameters:
  override - true if UsingAddressing should be overridden
Parameters:
  context - the message context



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.