org.apache.axis2.jaxws.server.endpoint
Class Utils

java.lang.Object
  extended by org.apache.axis2.jaxws.server.endpoint.Utils

public class Utils
extends java.lang.Object


Field Summary
static org.apache.commons.logging.Log log
           
 
Constructor Summary
Utils()
           
 
Method Summary
static boolean bindingTypesMatch(MessageContext mc, ServiceDescription serviceDesc)
          Compares the version of the message in the MessageContext to what's expected given the ServiceDescription.
static MessageContext createFaultMessage(MessageContext mc, java.lang.String msg)
           
static MessageContext createVersionMismatchMessage(MessageContext mc, Protocol protocol)
          Creates a fault message that reflects a version mismatch for the configured message protocol.
static OperationDescription getOperationDescription(MessageContext mc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

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

Utils

public Utils()
Method Detail

bindingTypesMatch

public static boolean bindingTypesMatch(MessageContext mc,
                                        ServiceDescription serviceDesc)
Compares the version of the message in the MessageContext to what's expected given the ServiceDescription. The behavior is described in the SOAP 1.2 specification under Appendix 'A'.

Parameters:
mc -
serviceDesc -
Returns:

createVersionMismatchMessage

public static MessageContext createVersionMismatchMessage(MessageContext mc,
                                                          Protocol protocol)
Creates a fault message that reflects a version mismatch for the configured message protocol. The returned message will always be a SOAP 1.1 message per the specification.

Parameters:
mc -
msg -
Returns:

createFaultMessage

public static MessageContext createFaultMessage(MessageContext mc,
                                                java.lang.String msg)

getOperationDescription

public static OperationDescription getOperationDescription(MessageContext mc)


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