org.apache.axis2.util
Class Utils

java.lang.Object
  extended byorg.apache.axis2.util.Utils

public class Utils
extends java.lang.Object


Constructor Summary
Utils()
           
 
Method Summary
static void addHandler(Flow flow, Handler handler, java.lang.String phaseName)
           
static void calculateDefaultModuleVersion(java.util.HashMap modules, AxisConfiguration axisConfig)
           
static boolean checkVersion(java.lang.String deployingModuleName, java.lang.String deployedModulename)
          Will check whether a given module can be engage or not if the version mismamathc then thow en exception - if he trying to engage the same module then method will returen false - else it will return true
static MessageContext createOutMessageContext(MessageContext inMessageContext)
          Deprecated. (post1.1branch)
static AxisService createSimpleService(javax.xml.namespace.QName serviceName, MessageReceiver messageReceiver, java.lang.String className, javax.xml.namespace.QName opName)
           
static AxisService createSimpleService(javax.xml.namespace.QName serviceName, java.lang.String className, javax.xml.namespace.QName opName)
           
static AxisService createSimpleServiceforClient(javax.xml.namespace.QName serviceName, MessageReceiver messageReceiver, java.lang.String className, javax.xml.namespace.QName opName)
           
static AxisService createSimpleServiceforClient(javax.xml.namespace.QName serviceName, java.lang.String className, javax.xml.namespace.QName opName)
           
static ServiceContext fillContextInformation(AxisService axisService, ConfigurationContext configurationContext)
           
static int getAxisSpecifMEPConstant(java.lang.String messageExchangePattern)
          Maps the String URI of the Message exchange pattern to a integer.
static AxisFault getInboundFaultFromMessageContext(MessageContext messageContext)
          Get an AxisFault object to represent the SOAPFault in the SOAPEnvelope attached to the provided MessageContext.
static java.lang.String getModuleName(java.lang.String moduleName)
          To get the name of the module , where archive name is combination of module name + its version The format of the module version will be like follow moduleName-00.0000 as an exmple addressing-01.0001.aar
static java.lang.String getModuleName(java.lang.String name, java.lang.String versionID)
           
static java.lang.String getModuleVersion(java.lang.String moduleName)
           
static ConfigurationContext getNewConfigurationContext(java.lang.String repositry)
           
static java.lang.String getParameterValue(Parameter param)
           
static boolean isExplicitlyTrue(MessageContext messageContext, java.lang.String propertyName)
           
static boolean isLatest(java.lang.String moduleVersion, java.lang.String currentDefaultVersion)
           
static java.lang.String[] parseRequestURLForServiceAndOperation(java.lang.String path, java.lang.String servicePath)
          Break a full path into pieces
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

addHandler

public static void addHandler(Flow flow,
                              Handler handler,
                              java.lang.String phaseName)

createOutMessageContext

public static MessageContext createOutMessageContext(MessageContext inMessageContext)
                                              throws AxisFault
Deprecated. (post1.1branch)

Throws:
AxisFault
See Also:
org.apache.axis2.util.MessageContextBuilder.createOutMessageContext()

createSimpleService

public static AxisService createSimpleService(javax.xml.namespace.QName serviceName,
                                              java.lang.String className,
                                              javax.xml.namespace.QName opName)
                                       throws AxisFault
Throws:
AxisFault

createSimpleServiceforClient

public static AxisService createSimpleServiceforClient(javax.xml.namespace.QName serviceName,
                                                       java.lang.String className,
                                                       javax.xml.namespace.QName opName)
                                                throws AxisFault
Throws:
AxisFault

createSimpleService

public static AxisService createSimpleService(javax.xml.namespace.QName serviceName,
                                              MessageReceiver messageReceiver,
                                              java.lang.String className,
                                              javax.xml.namespace.QName opName)
                                       throws AxisFault
Throws:
AxisFault

createSimpleServiceforClient

public static AxisService createSimpleServiceforClient(javax.xml.namespace.QName serviceName,
                                                       MessageReceiver messageReceiver,
                                                       java.lang.String className,
                                                       javax.xml.namespace.QName opName)
                                                throws AxisFault
Throws:
AxisFault

fillContextInformation

public static ServiceContext fillContextInformation(AxisService axisService,
                                                    ConfigurationContext configurationContext)
                                             throws AxisFault
Throws:
AxisFault

parseRequestURLForServiceAndOperation

public static java.lang.String[] parseRequestURLForServiceAndOperation(java.lang.String path,
                                                                       java.lang.String servicePath)
Break a full path into pieces

Parameters:
path -
Returns:
an array where element [0] always contains the service, and element 1, if not null, contains the path after the first element. all ? parameters are discarded.

getNewConfigurationContext

public static ConfigurationContext getNewConfigurationContext(java.lang.String repositry)
                                                       throws java.lang.Exception
Throws:
java.lang.Exception

getParameterValue

public static java.lang.String getParameterValue(Parameter param)

getModuleName

public static java.lang.String getModuleName(java.lang.String moduleName)
To get the name of the module , where archive name is combination of module name + its version The format of the module version will be like follow moduleName-00.0000 as an exmple addressing-01.0001.aar


getModuleVersion

public static java.lang.String getModuleVersion(java.lang.String moduleName)

getModuleName

public static java.lang.String getModuleName(java.lang.String name,
                                             java.lang.String versionID)

checkVersion

public static boolean checkVersion(java.lang.String deployingModuleName,
                                   java.lang.String deployedModulename)
                            throws AxisFault
Will check whether a given module can be engage or not if the version mismamathc then thow en exception - if he trying to engage the same module then method will returen false - else it will return true

Parameters:
deployingModuleName -
deployedModulename -
Throws:
AxisFault

calculateDefaultModuleVersion

public static void calculateDefaultModuleVersion(java.util.HashMap modules,
                                                 AxisConfiguration axisConfig)

isLatest

public static boolean isLatest(java.lang.String moduleVersion,
                               java.lang.String currentDefaultVersion)

isExplicitlyTrue

public static boolean isExplicitlyTrue(MessageContext messageContext,
                                       java.lang.String propertyName)

getAxisSpecifMEPConstant

public static int getAxisSpecifMEPConstant(java.lang.String messageExchangePattern)
Maps the String URI of the Message exchange pattern to a integer. Further, in the first lookup, it will cache the looked up value so that the subsequent method calls are extremely efficient.


getInboundFaultFromMessageContext

public static AxisFault getInboundFaultFromMessageContext(MessageContext messageContext)
Get an AxisFault object to represent the SOAPFault in the SOAPEnvelope attached to the provided MessageContext. This first check for an already extracted AxisFault and otherwise does a simple extract.

MUST NOT be passed a MessageContext which does not contain a SOAPFault

Parameters:
messageContext -
Returns:


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.