org.apache.axis2.util
Class Utils

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

public class Utils
extends Object


Constructor Summary
Utils()
           
 
Method Summary
static void addHandler(Flow flow, Handler handler, String phaseName)
           
static void calculateDefaultModuleVersion(HashMap modules, AxisConfiguration axisConfig)
           
static MessageContext createOutMessageContext(MessageContext inMessageContext)
           
static AxisService createSimpleService(QName serviceName, MessageReceiver messageReceiver, String className, QName opName)
           
static AxisService createSimpleService(QName serviceName, String className, QName opName)
           
static AxisService createSimpleServiceforClient(QName serviceName, MessageReceiver messageReceiver, String className, QName opName)
           
static AxisService createSimpleServiceforClient(QName serviceName, String className, QName opName)
           
static ServiceContext fillContextInformation(AxisService axisService, ConfigurationContext configurationContext)
           
static String getModuleName(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 QName getModuleName(String name, String versionID)
           
static String getModuleVersion(String moduleName)
           
static ConfigurationContext getNewConfigurationContext(String repositry)
           
static String getParameterValue(Parameter param)
           
static boolean isLatest(String moduleVersion, String currentDefaultVersion)
           
static String[] parseRequestURLForServiceAndOperation(String path)
          Break a full path into pieces
static void setFaultCode(MessageContext messageContext, String faultCode, String faultSubCode)
           
 
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,
                              String phaseName)

createOutMessageContext

public static MessageContext createOutMessageContext(MessageContext inMessageContext)

createSimpleService

public static AxisService createSimpleService(QName serviceName,
                                              String className,
                                              QName opName)
                                       throws AxisFault
Throws:
AxisFault

createSimpleServiceforClient

public static AxisService createSimpleServiceforClient(QName serviceName,
                                                       String className,
                                                       QName opName)
                                                throws AxisFault
Throws:
AxisFault

createSimpleService

public static AxisService createSimpleService(QName serviceName,
                                              MessageReceiver messageReceiver,
                                              String className,
                                              QName opName)
                                       throws AxisFault
Throws:
AxisFault

createSimpleServiceforClient

public static AxisService createSimpleServiceforClient(QName serviceName,
                                                       MessageReceiver messageReceiver,
                                                       String className,
                                                       QName opName)
                                                throws AxisFault
Throws:
AxisFault

fillContextInformation

public static ServiceContext fillContextInformation(AxisService axisService,
                                                    ConfigurationContext configurationContext)

parseRequestURLForServiceAndOperation

public static String[] parseRequestURLForServiceAndOperation(String path)
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(String repositry)
                                                       throws Exception
Throws:
Exception

getParameterValue

public static String getParameterValue(Parameter param)

getModuleName

public static String getModuleName(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 String getModuleVersion(String moduleName)

getModuleName

public static QName getModuleName(String name,
                                  String versionID)

calculateDefaultModuleVersion

public static void calculateDefaultModuleVersion(HashMap modules,
                                                 AxisConfiguration axisConfig)

isLatest

public static boolean isLatest(String moduleVersion,
                               String currentDefaultVersion)

setFaultCode

public static void setFaultCode(MessageContext messageContext,
                                String faultCode,
                                String faultSubCode)