Java Doc for MessageContext.java in  » Web-Services-AXIS2 » kernal » org » apache » axis2 » context » 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 AXIS2 » kernal » org.apache.axis2.context 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.axis2.context.AbstractContext
      org.apache.axis2.context.MessageContext

MessageContext
public class MessageContext extends AbstractContext implements Externalizable(Code)

Axis2 states are held in two information models, called description hierarchy and context hierarchy. Description hierarchy hold deployment configuration and it's values does not change unless deployment configuration change occurs where Context hierarchy hold run time information. Both hierarchies consists four levels, Global, Service Group, Operation and Message. Please look at "Information Model" section of "Axis2 Architecture Guide" for more information.

MessageContext hold run time information about one Message invocation. It hold reference to OperationContext, ServiceGroupContext, and Configuration Context tied with current message. For an example if you need accesses to other messages of the current invocation, you can get to them via OperationContext. Addition to class attributes define in Message context, message context stores the information as name value pairs. Those name value pairs,and class attributes tweak the execution behavior of message context and some of them can be find in org.apache.axis2.Constants class. (TODO we should provide list of supported options). You may set them at any level of context hierarchy and they will affect invocations related to their child elements.



Field Summary
final public static  StringCHARACTER_SET_ENCODING
    
final public static  StringDEFAULT_CHAR_SET_ENCODING
     Field DEFAULT_CHAR_SET_ENCODING.
final public static  StringDISABLE_ASYNC_CALLBACK_ON_TRANSPORT_ERROR
     This property allows someone (e.g.
public  intFLOW
    
final public static  intIN_FAULT_FLOW
    
final public static  intIN_FLOW
    
final public static  intOUT_FAULT_FLOW
    
final public static  intOUT_FLOW
    
final public static  StringREMOTE_ADDR
    
final public static  StringTRANSPORT_ADDR
    
final public static  StringTRANSPORT_HEADERS
    
final public static  StringTRANSPORT_IN
    
final public static  StringTRANSPORT_NON_BLOCKING
    
final public static  StringTRANSPORT_OUT
    
final public static  StringTRANSPORT_SUCCEED
    
final public static  StringUTF_16
     Field UTF_16.
final public static  StringUTF_8
     Field UTF_8.
public transient  Attachmentsattachments
     message attachments NOTE: Serialization of message attachments is handled as part of the overall message serialization.
public static  ThreadLocalcurrentMessageContext
    
protected  Optionsoptions
    
public  booleanoutputWritten
    

Constructor Summary
public  MessageContext()
    
 MessageContext(ConfigurationContext configContext)
    

Method Summary
public  voidactivate(ConfigurationContext cc)
     This method checks to see if additional work needs to be done in order to complete the object reconstitution. Some parts of the object restored from the readExternal() cannot be completed until we have a configurationContext from the active engine.
public  voidactivateWithOperationContext(OperationContext operationCtx)
     This method checks to see if additional work needs to be done in order to complete the object reconstitution.
public  voidaddAttachment(String contentID, DataHandler dataHandler)
     Adds an attachment to the attachment Map of this message context.
public  StringaddAttachment(DataHandler dataHandler)
     Adds an attachment to the attachment Map of this message context.
public  voidaddExecutedPhase(Handler phase)
     Add a Phase to the collection of executed phases for the path.
public  voidaddRelatesTo(RelatesTo reference)
    
public  booleancontainsSelfManagedDataKey(Class clazz, Object key)
    
public  MessageContextextractCopyMessageContext()
     Return a Read-Only copy of this message context that has been extracted from the object hierachy.
public  DataHandlergetAttachment(String contentID)
     Access the DataHandler of the attachment contained in the map corresponding to the given content ID.
public  AttachmentsgetAttachmentMap()
     You can directly access the attachment map of the message context from here.
public  AxisMessagegetAxisMessage()
    
public  AxisOperationgetAxisOperation()
    
public  AxisServicegetAxisService()
    
public  AxisServiceGroupgetAxisServiceGroup()
    
public  ConfigurationContextgetConfigurationContext()
    
public  intgetCurrentHandlerIndex()
    
public static  MessageContextgetCurrentMessageContext()
    
public  intgetCurrentPhaseIndex()
    
public  PolicygetEffectivePolicy()
    
public  SOAPEnvelopegetEnvelope()
    
public  IteratorgetExecutedPhases()
     Get an iterator over the executed phase list.
public  ArrayListgetExecutionChain()
    
public  intgetFLOW()
    
public  ExceptiongetFailureReason()
     Obtain the Exception which caused the processing chain to halt.
public  EndpointReferencegetFaultTo()
    
public  EndpointReferencegetFrom()
    
public  StringgetIncomingTransportName()
    
public  StringgetLogCorrelationID()
     Get a "raw" version of the logCorrelationID.
public  StringgetLogIDString()
     Get a formatted version of the logCorrelationID. A string that can be output to a log file as an identifierfor this MessageContext.
public  StringgetMessageID()
    
public  ParametergetModuleParameter(String key, String moduleName, HandlerDescription handler)
     Retrieves both module specific configuration parameters as well as other parameters.
public  OperationContextgetOperationContext()
    
public  OptionsgetOptions()
    
public  ParametergetParameter(String key)
     Retrieves configuration descriptor parameters at any level.
public  MapgetProperties()
     Retrieves all property values.
public  ObjectgetProperty(String name)
     Retrieves a property value.
public  RelatesTogetRelatesTo(String type)
    
public  RelatesTogetRelatesTo()
    
public  RelatesTo[]getRelationships()
    
public  EndpointReferencegetReplyTo()
    
public  ConfigurationContextgetRootContext()
    
public  ObjectgetSelfManagedData(Class clazz, Object key)
     Retrieve a value of self managed data previously saved with the specified key.
public  ServiceContextgetServiceContext()
    
public  StringgetServiceContextID()
    
public  ServiceGroupContextgetServiceGroupContext()
    
public  StringgetServiceGroupContextId()
    
public  SessionContextgetSessionContext()
    
public  StringgetSoapAction()
    
public  EndpointReferencegetTo()
    
public  TransportInDescriptiongetTransportIn()
    
public  TransportOutDescriptiongetTransportOut()
    
public  StringgetWSAAction()
    
public  booleanisDoingMTOM()
    
public  booleanisDoingREST()
    
public  booleanisDoingSwA()
    
public  booleanisEngaged(String moduleName)
    
public  booleanisFault()
    
public  booleanisHeaderPresent()
     Gets the first child of the envelope, check if it is a soap:Body, which means there is no header. We do this basically to make sure we don't parse and build the om tree of the whole envelope looking for the soap header.
public  booleanisNewThreadRequired()
    
public  booleanisOutputWritten()
    
public  booleanisPaused()
    
public  booleanisProcessingFault()
    
public  booleanisPropertyTrue(String name)
     Check if a given property is true.
public  booleanisPropertyTrue(String name, boolean defaultVal)
     Check if a given property is true.
public  booleanisResponseWritten()
    
public  booleanisSOAP11()
    
public  booleanisServerSide()
    
public  voidpause()
    
public  voidreadExternal(ObjectInput in)
     Restore the contents of the MessageContext that was previously saved.

NOTE: The field data must read back in the same order and type as it was written.

public  voidremoveAttachment(String contentID)
     Removes the attachment with the given content ID from the Attachments Map Do nothing if a attachment cannot be found by the given content ID.
public  voidremoveFirstExecutedPhase()
    
public  voidremoveSelfManagedData(Class clazz, Object key)
    
public  voidresetExecutedPhases()
     Reset the list of executed phases.
public  voidsetAttachmentMap(Attachments attachments)
     Setting of the attachments map should be performed at the receipt of a message only.
public  voidsetAxisMessage(AxisMessage axisMessage)
    
public  voidsetAxisOperation(AxisOperation axisOperation)
    
public  voidsetAxisService(AxisService axisService)
    
public  voidsetAxisServiceGroup(AxisServiceGroup axisServiceGroup)
    
public  voidsetConfigurationContext(ConfigurationContext context)
    
public  voidsetCurrentHandlerIndex(int currentHandlerIndex)
    
public static  voidsetCurrentMessageContext(MessageContext ctx)
    
public  voidsetCurrentPhaseIndex(int currentPhaseIndex)
    
public  voidsetDoingMTOM(boolean b)
    
public  voidsetDoingREST(boolean b)
    
public  voidsetDoingSwA(boolean b)
    
public  voidsetEnvelope(SOAPEnvelope envelope)
    
public  voidsetExecutedPhasesExplicit(LinkedList inb)
    
public  voidsetExecutionChain(ArrayList executionChain)
     Set the execution chain of Handler in this MessageContext.
public  voidsetFLOW(int FLOW)
    
public  voidsetFailureReason(Exception failureReason)
     Set the failure reason.
public  voidsetFaultTo(EndpointReference reference)
    
public  voidsetFrom(EndpointReference reference)
    
public  voidsetIncomingTransportName(String incomingTransportName)
    
public  voidsetIsSOAP11Explicit(boolean t)
    
public  voidsetMessageID(String messageId)
    
public  voidsetNewThreadRequired(boolean b)
    
public  voidsetOperationContext(OperationContext context)
    
public  voidsetOptions(Options options)
     Set the options for myself.
public  voidsetOptionsExplicit(Options op)
    
public  voidsetOutputWritten(boolean b)
    
public  voidsetPaused(boolean paused)
    
public  voidsetProcessingFault(boolean b)
    
public  voidsetRelationships(RelatesTo[] list)
    
public  voidsetReplyTo(EndpointReference reference)
    
public  voidsetResponseWritten(boolean b)
    
public  voidsetSelfManagedData(Class clazz, Object key, Object value)
     Add a key-value pair of self managed data to the set associated with this message context.
public  voidsetSelfManagedDataMapExplicit(LinkedHashMap map)
    
public  voidsetServerSide(boolean b)
    
public  voidsetServiceContext(ServiceContext context)
    
public  voidsetServiceContextID(String serviceContextID)
     Sets the service context id.
public  voidsetServiceGroupContext(ServiceGroupContext serviceGroupContext)
    
public  voidsetServiceGroupContextId(String serviceGroupContextId)
    
public  voidsetSessionContext(SessionContext sessionContext)
    
public  voidsetSoapAction(String soapAction)
    
public  voidsetTo(EndpointReference to)
    
public  voidsetTransportIn(TransportInDescription in)
    
public  voidsetTransportOut(TransportOutDescription out)
    
public  voidsetWSAAction(String actionURI)
    
public  voidsetWSAMessageId(String messageID)
    
public  StringtoString()
    
public  voidwriteExternal(ObjectOutput out)
     Save the contents of this MessageContext instance.

Field Detail
CHARACTER_SET_ENCODING
final public static String CHARACTER_SET_ENCODING(Code)
Field CHARACTER_SET_ENCODING



DEFAULT_CHAR_SET_ENCODING
final public static String DEFAULT_CHAR_SET_ENCODING(Code)
Field DEFAULT_CHAR_SET_ENCODING. This is the default value for CHARACTER_SET_ENCODING property.



DISABLE_ASYNC_CALLBACK_ON_TRANSPORT_ERROR
final public static String DISABLE_ASYNC_CALLBACK_ON_TRANSPORT_ERROR(Code)
This property allows someone (e.g. RM) to disable an async callback from being invoked if a fault occurs during message transmission. If this is not set, it can be assumed that the fault will be delivered via Callback.onError(...).



FLOW
public int FLOW(Code)



IN_FAULT_FLOW
final public static int IN_FAULT_FLOW(Code)



IN_FLOW
final public static int IN_FLOW(Code)



OUT_FAULT_FLOW
final public static int OUT_FAULT_FLOW(Code)



OUT_FLOW
final public static int OUT_FLOW(Code)



REMOTE_ADDR
final public static String REMOTE_ADDR(Code)



TRANSPORT_ADDR
final public static String TRANSPORT_ADDR(Code)



TRANSPORT_HEADERS
final public static String TRANSPORT_HEADERS(Code)



TRANSPORT_IN
final public static String TRANSPORT_IN(Code)
Field TRANSPORT_IN



TRANSPORT_NON_BLOCKING
final public static String TRANSPORT_NON_BLOCKING(Code)
To invoke fireAndforget method we have to hand over transport sending logic to a thread other wise user has to wait till it get transport response (in the case of HTTP its HTTP 202)



TRANSPORT_OUT
final public static String TRANSPORT_OUT(Code)
Field TRANSPORT_OUT



TRANSPORT_SUCCEED
final public static String TRANSPORT_SUCCEED(Code)
Field TRANSPORT_SUCCEED



UTF_16
final public static String UTF_16(Code)
Field UTF_16. This is the 'utf-16' value for CHARACTER_SET_ENCODING property.



UTF_8
final public static String UTF_8(Code)
Field UTF_8. This is the 'utf-8' value for CHARACTER_SET_ENCODING property.



attachments
public transient Attachments attachments(Code)
message attachments NOTE: Serialization of message attachments is handled as part of the overall message serialization. If this needs to change, then investigate having the Attachment class implement the java.io.Externalizable interface.



currentMessageContext
public static ThreadLocal currentMessageContext(Code)
A place to store the current MessageContext



options
protected Options options(Code)



outputWritten
public boolean outputWritten(Code)




Constructor Detail
MessageContext
public MessageContext()(Code)
Constructor



MessageContext
MessageContext(ConfigurationContext configContext)(Code)
Constructor has package access
Parameters:
  configContext - the associated ConfigurationContext




Method Detail
activate
public void activate(ConfigurationContext cc)(Code)
This method checks to see if additional work needs to be done in order to complete the object reconstitution. Some parts of the object restored from the readExternal() cannot be completed until we have a configurationContext from the active engine. The configurationContext is used to help this object to plug back into the engine's configuration and deployment objects.
Parameters:
  cc - The configuration context object representing the active configuration



activateWithOperationContext
public void activateWithOperationContext(OperationContext operationCtx)(Code)
This method checks to see if additional work needs to be done in order to complete the object reconstitution. Some parts of the object restored from the readExternal() cannot be completed until we have an object that gives us a view of the active object graph from the active engine.

NOTE: when activating an object, you only need to call one of the activate methods (activate() or activateWithOperationContext()) but not both.
Parameters:
  operationCtx - The operation context object that is a member of the active object graph




addAttachment
public void addAttachment(String contentID, DataHandler dataHandler)(Code)
Adds an attachment to the attachment Map of this message context. This attachment gets serialised as a MIME attachment when sending the message if SOAP with Attachments is enabled.
Parameters:
  contentID - :will be the content ID of the MIME part
Parameters:
  dataHandler -



addAttachment
public String addAttachment(DataHandler dataHandler)(Code)
Adds an attachment to the attachment Map of this message context. This attachment gets serialised as a MIME attachment when sending the message if SOAP with Attachments is enabled. Content ID of the MIME part will be auto generated by Axis2.
Parameters:
  dataHandler - the auto generated content ID of the MIME attachment



addExecutedPhase
public void addExecutedPhase(Handler phase)(Code)
Add a Phase to the collection of executed phases for the path. Phases will be inserted in a LIFO data structure.
Parameters:
  phase - The phase to add to the list.



addRelatesTo
public void addRelatesTo(RelatesTo reference)(Code)
Add a RelatesTo
Parameters:
  reference - RelatesTo describing how we relate to another message



containsSelfManagedDataKey
public boolean containsSelfManagedDataKey(Class clazz, Object key)(Code)
Check to see if the key for the self managed data is available
Parameters:
  clazz - The class of the caller that owns the key-value pair
Parameters:
  key - The key to look for TRUE if the key exists, FALSE otherwise



extractCopyMessageContext
public MessageContext extractCopyMessageContext()(Code)
Return a Read-Only copy of this message context that has been extracted from the object hierachy. In other words, the message context copy does not have links to the object graph.

NOTE: The copy shares certain objects with the original. The intent is to use the copy to read values but not modify them, especially since the copy is not part of the normal *Context and Axis* object graph. A copy of the message context that is not in the object graph




getAttachment
public DataHandler getAttachment(String contentID)(Code)
Access the DataHandler of the attachment contained in the map corresponding to the given content ID. Returns "NULL" if a attachment cannot be found by the given content ID.
Parameters:
  contentID - :Content ID of the MIME attachment Data handler of the attachment



getAttachmentMap
public Attachments getAttachmentMap()(Code)
You can directly access the attachment map of the message context from here. Returned attachment map can be empty. attachment



getAxisMessage
public AxisMessage getAxisMessage()(Code)



getAxisOperation
public AxisOperation getAxisOperation()(Code)



getAxisService
public AxisService getAxisService()(Code)



getAxisServiceGroup
public AxisServiceGroup getAxisServiceGroup()(Code)



getConfigurationContext
public ConfigurationContext getConfigurationContext()(Code)



getCurrentHandlerIndex
public int getCurrentHandlerIndex()(Code)



getCurrentMessageContext
public static MessageContext getCurrentMessageContext()(Code)



getCurrentPhaseIndex
public int getCurrentPhaseIndex()(Code)



getEffectivePolicy
public Policy getEffectivePolicy()(Code)



getEnvelope
public SOAPEnvelope getEnvelope()(Code)
Returns SOAPEnvelope.



getExecutedPhases
public Iterator getExecutedPhases()(Code)
Get an iterator over the executed phase list. An Iterator over the LIFO data structure.



getExecutionChain
public ArrayList getExecutionChain()(Code)



getFLOW
public int getFLOW()(Code)



getFailureReason
public Exception getFailureReason()(Code)
Obtain the Exception which caused the processing chain to halt. null, or an Exception.



getFaultTo
public EndpointReference getFaultTo()(Code)
Returns EndpointReference.



getFrom
public EndpointReference getFrom()(Code)
Returns EndpointReference.



getIncomingTransportName
public String getIncomingTransportName()(Code)



getLogCorrelationID
public String getLogCorrelationID()(Code)
Get a "raw" version of the logCorrelationID. The logCorrelationID is guaranteed to be unique and may be persisted along with the rest of the message context. A string that can be output to a log file as an identifierfor this MessageContext. It is suitable for matching related logentries.



getLogIDString
public String getLogIDString()(Code)
Get a formatted version of the logCorrelationID. A string that can be output to a log file as an identifierfor this MessageContext. It is suitable for matching related logentries.



getMessageID
public String getMessageID()(Code)
Returns message id.



getModuleParameter
public Parameter getModuleParameter(String key, String moduleName, HandlerDescription handler)(Code)
Retrieves both module specific configuration parameters as well as other parameters. The order of search is as follows:
  1. Search in module configurations inside corresponding operation description if its there
  2. Search in corresponding operation if its there
  3. Search in module configurations inside corresponding service description if its there
  4. Next search in Corresponding Service description if its there
  5. Next search in module configurations inside axisConfiguration
  6. Search in AxisConfiguration for parameters
  7. Next get the corresponding module and search for the parameters
  8. Search in HandlerDescription for the parameter

and the way of specifying module configuration is as follows N/A
Parameters:
  key - :Parameter Name
Parameters:
  moduleName - :Name of the module
Parameters:
  handler - HandlerDescription Parameter Parameter




getOperationContext
public OperationContext getOperationContext()(Code)



getOptions
public Options getOptions()(Code)



getParameter
public Parameter getParameter(String key)(Code)
Retrieves configuration descriptor parameters at any level. The order of search is as follows:
  1. Search in operation description if it exists
  2. If parameter is not found or if operationContext is null, search in AxisService
  3. If parameter is not found or if axisService is null, search in AxisConfiguration

Parameters:
  key - name of desired parameter Parameter Parameter



getProperties
public Map getProperties()(Code)
Retrieves all property values. The order of search is as follows: search in my own options and then look in my context hierarchy. Since its possible that the entire hierarchy is not present, it will start at whatever level has been set and start there. The returned map is unmodifiable, so any changes to the properties have to be done by calling MessageContext.setProperty(String,Object) . In addition, any changes to the properties are not reflected on this map. An unmodifiable map containing the combination of all availableproperties or an empty map.



getProperty
public Object getProperty(String name)(Code)
Retrieves a property value. The order of search is as follows: search in my own options and then look in my context hierarchy. Since its possible that the entire hierarchy is not present, I will start at whatever level has been set and start there.
Parameters:
  name - name of the property to search for the value of the property, or null if the property is not found



getRelatesTo
public RelatesTo getRelatesTo(String type)(Code)
Get any RelatesTos of a particular type associated with this MessageContext TODO: Shouldn't this return a List?
Parameters:
  type - the relationship type Returns RelatesTo.



getRelatesTo
public RelatesTo getRelatesTo()(Code)
Returns RelatesTo.



getRelationships
public RelatesTo[] getRelationships()(Code)
Returns RelatesTo array.



getReplyTo
public EndpointReference getReplyTo()(Code)
Returns EndpointReference.



getRootContext
public ConfigurationContext getRootContext()(Code)



getSelfManagedData
public Object getSelfManagedData(Class clazz, Object key)(Code)
Retrieve a value of self managed data previously saved with the specified key.
Parameters:
  clazz - The class of the caller that owns the key-value pair
Parameters:
  key - The key for the data The data object associated with the key, or NULL if not found



getServiceContext
public ServiceContext getServiceContext()(Code)
Returns ServiceContext.



getServiceContextID
public String getServiceContextID()(Code)
Returns the serviceContextID.



getServiceGroupContext
public ServiceGroupContext getServiceGroupContext()(Code)



getServiceGroupContextId
public String getServiceGroupContextId()(Code)



getSessionContext
public SessionContext getSessionContext()(Code)
Returns SessionContext.



getSoapAction
public String getSoapAction()(Code)
Returns soap action.



getTo
public EndpointReference getTo()(Code)
Returns EndpointReference.



getTransportIn
public TransportInDescription getTransportIn()(Code)
Returns TransportInDescription.



getTransportOut
public TransportOutDescription getTransportOut()(Code)
Returns TransportOutDescription.



getWSAAction
public String getWSAAction()(Code)



isDoingMTOM
public boolean isDoingMTOM()(Code)
Returns boolean.



isDoingREST
public boolean isDoingREST()(Code)
Returns boolean.



isDoingSwA
public boolean isDoingSwA()(Code)
Returns boolean.



isEngaged
public boolean isEngaged(String moduleName)(Code)



isFault
public boolean isFault()(Code)



isHeaderPresent
public boolean isHeaderPresent()(Code)
Gets the first child of the envelope, check if it is a soap:Body, which means there is no header. We do this basically to make sure we don't parse and build the om tree of the whole envelope looking for the soap header. If this method returns true, there still is no guarantee that there is a soap:Header present, use getHeader() and also check for null on getHeader() to be absolutely sure. boolean



isNewThreadRequired
public boolean isNewThreadRequired()(Code)
Returns boolean.



isOutputWritten
public boolean isOutputWritten()(Code)
Returns boolean.



isPaused
public boolean isPaused()(Code)
Returns boolean.



isProcessingFault
public boolean isProcessingFault()(Code)
Returns boolean.



isPropertyTrue
public boolean isPropertyTrue(String name)(Code)
Check if a given property is true. Will return false if the property does not exist or is not an explicit "true" value.
Parameters:
  name - name of the property to check true if the property exists and is Boolean.TRUE, "true", 1, etc.



isPropertyTrue
public boolean isPropertyTrue(String name, boolean defaultVal)(Code)
Check if a given property is true. Will return the passed default if the property does not exist.
Parameters:
  name - name of the property to check
Parameters:
  defaultVal - the default value if the property doesn't exist true if the property exists and is Boolean.TRUE, "true", 1, etc.



isResponseWritten
public boolean isResponseWritten()(Code)
Returns boolean.



isSOAP11
public boolean isSOAP11()(Code)



isServerSide
public boolean isServerSide()(Code)
Returns boolean.



pause
public void pause()(Code)
Pause the execution of the current handler chain



readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException(Code)
Restore the contents of the MessageContext that was previously saved.

NOTE: The field data must read back in the same order and type as it was written. Some data will need to be validated when resurrected.
Parameters:
  in - The stream to read the object contents from
throws:
  IOException -
throws:
  ClassNotFoundException -




removeAttachment
public void removeAttachment(String contentID)(Code)
Removes the attachment with the given content ID from the Attachments Map Do nothing if a attachment cannot be found by the given content ID.
Parameters:
  contentID - of the attachment



removeFirstExecutedPhase
public void removeFirstExecutedPhase()(Code)
Remove the first Phase in the collection of executed phases



removeSelfManagedData
public void removeSelfManagedData(Class clazz, Object key)(Code)
Removes the mapping of the specified key if the specified key has been set for self managed data
Parameters:
  clazz - The class of the caller that owns the key-value pair
Parameters:
  key - The key of the object to be removed



resetExecutedPhases
public void resetExecutedPhases()(Code)
Reset the list of executed phases. This is needed because the OutInAxisOperation currently invokes receive() even when a fault occurs, and we will have already executed the flowComplete on those before receiveFault() is called.



setAttachmentMap
public void setAttachmentMap(Attachments attachments)(Code)
Setting of the attachments map should be performed at the receipt of a message only. This method is only meant to be used by the Axis2 internals.
Parameters:
  attachments -



setAxisMessage
public void setAxisMessage(AxisMessage axisMessage)(Code)



setAxisOperation
public void setAxisOperation(AxisOperation axisOperation)(Code)



setAxisService
public void setAxisService(AxisService axisService)(Code)



setAxisServiceGroup
public void setAxisServiceGroup(AxisServiceGroup axisServiceGroup)(Code)



setConfigurationContext
public void setConfigurationContext(ConfigurationContext context)(Code)

Parameters:
  context -



setCurrentHandlerIndex
public void setCurrentHandlerIndex(int currentHandlerIndex)(Code)



setCurrentMessageContext
public static void setCurrentMessageContext(MessageContext ctx)(Code)



setCurrentPhaseIndex
public void setCurrentPhaseIndex(int currentPhaseIndex)(Code)



setDoingMTOM
public void setDoingMTOM(boolean b)(Code)

Parameters:
  b -



setDoingREST
public void setDoingREST(boolean b)(Code)

Parameters:
  b -



setDoingSwA
public void setDoingSwA(boolean b)(Code)

Parameters:
  b -



setEnvelope
public void setEnvelope(SOAPEnvelope envelope) throws AxisFault(Code)

Parameters:
  envelope -



setExecutedPhasesExplicit
public void setExecutedPhasesExplicit(LinkedList inb)(Code)



setExecutionChain
public void setExecutionChain(ArrayList executionChain)(Code)
Set the execution chain of Handler in this MessageContext. Doing this causes the current handler/phase indexes to reset to 0, since we have new Handlers to execute (this usually only happens at initialization and when a fault occurs).
Parameters:
  executionChain -



setFLOW
public void setFLOW(int FLOW)(Code)



setFailureReason
public void setFailureReason(Exception failureReason)(Code)
Set the failure reason. Only AxisEngine should ever do this.
Parameters:
  failureReason - an Exception which caused processing to halt.



setFaultTo
public void setFaultTo(EndpointReference reference)(Code)

Parameters:
  reference -



setFrom
public void setFrom(EndpointReference reference)(Code)

Parameters:
  reference -



setIncomingTransportName
public void setIncomingTransportName(String incomingTransportName)(Code)



setIsSOAP11Explicit
public void setIsSOAP11Explicit(boolean t)(Code)



setMessageID
public void setMessageID(String messageId)(Code)

Parameters:
  messageId -



setNewThreadRequired
public void setNewThreadRequired(boolean b)(Code)

Parameters:
  b -



setOperationContext
public void setOperationContext(OperationContext context)(Code)

Parameters:
  context - The OperationContext



setOptions
public void setOptions(Options options)(Code)
Set the options for myself. I make the given options my own options' parent so that that becomes the default. That allows the user to override specific options on a given message context and not affect the overall options.
Parameters:
  options - the options to set



setOptionsExplicit
public void setOptionsExplicit(Options op)(Code)



setOutputWritten
public void setOutputWritten(boolean b)(Code)

Parameters:
  b -



setPaused
public void setPaused(boolean paused)(Code)



setProcessingFault
public void setProcessingFault(boolean b)(Code)

Parameters:
  b -



setRelationships
public void setRelationships(RelatesTo[] list)(Code)



setReplyTo
public void setReplyTo(EndpointReference reference)(Code)
Set ReplyTo destination
Parameters:
  reference - the ReplyTo EPR



setResponseWritten
public void setResponseWritten(boolean b)(Code)

Parameters:
  b -



setSelfManagedData
public void setSelfManagedData(Class clazz, Object key, Object value)(Code)
Add a key-value pair of self managed data to the set associated with this message context.

This is primarily intended to allow handlers to manage their own message-specific data when the message context is saved/restored.
Parameters:
  clazz - The class of the caller that owns the key-value pair
Parameters:
  key - The key for this data object
Parameters:
  value - The data object




setSelfManagedDataMapExplicit
public void setSelfManagedDataMapExplicit(LinkedHashMap map)(Code)



setServerSide
public void setServerSide(boolean b)(Code)

Parameters:
  b -



setServiceContext
public void setServiceContext(ServiceContext context)(Code)

Parameters:
  context -



setServiceContextID
public void setServiceContextID(String serviceContextID)(Code)
Sets the service context id.
Parameters:
  serviceContextID -



setServiceGroupContext
public void setServiceGroupContext(ServiceGroupContext serviceGroupContext)(Code)



setServiceGroupContextId
public void setServiceGroupContextId(String serviceGroupContextId)(Code)



setSessionContext
public void setSessionContext(SessionContext sessionContext)(Code)



setSoapAction
public void setSoapAction(String soapAction)(Code)

Parameters:
  soapAction -



setTo
public void setTo(EndpointReference to)(Code)

Parameters:
  to -



setTransportIn
public void setTransportIn(TransportInDescription in)(Code)

Parameters:
  in -



setTransportOut
public void setTransportOut(TransportOutDescription out)(Code)

Parameters:
  out -



setWSAAction
public void setWSAAction(String actionURI)(Code)
setWSAAction



setWSAMessageId
public void setWSAMessageId(String messageID)(Code)



toString
public String toString()(Code)



writeExternal
public void writeExternal(ObjectOutput out) throws IOException(Code)
Save the contents of this MessageContext instance.

NOTE: Transient fields and static fields are not saved. Also, objects that represent "static" data are not saved, except for enough information to be able to find matching objects when the message context is re-constituted.
Parameters:
  out - The stream to write the object contents to
throws:
  IOException -




Fields inherited from org.apache.axis2.context.AbstractContext
final public static String COPY_PROPERTIES(Code)(Java Doc)
protected long lastTouchedTime(Code)(Java Doc)
protected transient AbstractContext parent(Code)(Java Doc)
protected transient Map properties(Code)(Java Doc)

Methods inherited from org.apache.axis2.context.AbstractContext
public synchronized void clearPropertyDifferences()(Code)(Java Doc)
public void flush() throws AxisFault(Code)(Java Doc)
public long getLastTouchedTime()(Code)(Java Doc)
public AbstractContext getParent()(Code)(Java Doc)
public Map getProperties()(Code)(Java Doc)
public Object getProperty(String key)(Code)(Java Doc)
public synchronized Map getPropertyDifferences()(Code)(Java Doc)
public Iterator getPropertyNames()(Code)(Java Doc)
public Object getPropertyNonReplicable(String key)(Code)(Java Doc)
abstract public ConfigurationContext getRootContext()(Code)(Java Doc)
public void mergeProperties(Map props)(Code)(Java Doc)
public synchronized void removeProperty(String key)(Code)(Java Doc)
public synchronized void removePropertyNonReplicable(String key)(Code)(Java Doc)
public void setLastTouchedTime(long t)(Code)(Java Doc)
public void setNonReplicableProperty(String key, Object value)(Code)(Java Doc)
public void setParent(AbstractContext context)(Code)(Java Doc)
public void setProperties(Map properties)(Code)(Java Doc)
public void setProperty(String key, Object value)(Code)(Java Doc)
protected void touch()(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.