org.apache.axis2.util
Class MessageContextBuilder

java.lang.Object
  extended by org.apache.axis2.util.MessageContextBuilder

public class MessageContextBuilder
extends java.lang.Object


Field Summary
protected static org.apache.commons.logging.Log log
           
 
Constructor Summary
MessageContextBuilder()
           
 
Method Summary
static MessageContext createFaultMessageContext(MessageContext processingContext, java.lang.Throwable e)
          This method is called to handle any error that occurs at inflow or outflow.
static MessageContext createOutMessageContext(MessageContext inMessageContext)
          Creates a MessageContext for use with a non-fault response based on an request MessageContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.apache.commons.logging.Log log
Constructor Detail

MessageContextBuilder

public MessageContextBuilder()
Method Detail

createOutMessageContext

public static MessageContext createOutMessageContext(MessageContext inMessageContext)
                                              throws AxisFault
Creates a MessageContext for use with a non-fault response based on an request MessageContext

Throws:
AxisFault

createFaultMessageContext

public static MessageContext createFaultMessageContext(MessageContext processingContext,
                                                       java.lang.Throwable e)
                                                throws AxisFault
This method is called to handle any error that occurs at inflow or outflow. But if the method is called twice, it implies that sending the error handling has failed, in which case the method logs the error and exits.

Throws:
AxisFault


Copyright © 2007 Apache Web Services Project. All Rights Reserved.