| java.lang.Object org.apache.axis2.util.Utils
Utils | public class Utils (Code) | | |
Method Summary | |
public static void | addHandler(Flow flow, Handler handler, String phaseName) | public static void | calculateDefaultModuleVersion(HashMap modules, AxisConfiguration axisConfig) | public static boolean | checkVersion(String module1version, String module2version) | public static MessageContext | createOutMessageContext(MessageContext inMessageContext) | public static AxisService | createSimpleInOnlyService(QName serviceName, MessageReceiver messageReceiver, QName opName) | public static AxisService | createSimpleService(QName serviceName, String className, QName opName) | public static AxisService | createSimpleService(QName serviceName, MessageReceiver messageReceiver, String className, QName opName) | public static AxisService | createSimpleServiceforClient(QName serviceName, String className, QName opName) | public static AxisService | createSimpleServiceforClient(QName serviceName, MessageReceiver messageReceiver, String className, QName opName) | public static ServiceContext | fillContextInformation(AxisService axisService, ConfigurationContext configurationContext) | public static int | getAxisSpecifMEPConstant(String messageExchangePattern) Maps the String URI of the Message exchange pattern to a integer. | public static AxisFault | getInboundFaultFromMessageContext(MessageContext messageContext) Get an AxisFault object to represent the SOAPFault in the SOAPEnvelope attached
to the provided MessageContext. | public static String | getModuleName(String moduleName) | public static String | getModuleName(String moduleName, String moduleVersion) | public static String | getModuleVersion(String moduleName) | public static ConfigurationContext | getNewConfigurationContext(String repositry) | public static String | getParameterValue(Parameter param) | public static boolean | isExplicitlyTrue(MessageContext messageContext, String propertyName) Check if a MessageContext property is true.
Parameters: messageContext - the MessageContext Parameters: propertyName - the property name true if the property is Boolean.TRUE, "true", 1, etc. | public static boolean | isLatest(String moduleVersion, String currentDefaultVersion) | public static String[] | parseRequestURLForServiceAndOperation(String path, String servicePath) Break a full path into pieces
an array where element [0] always contains the service, and element 1, if not null, containsthe path after the first element. |
checkVersion | public static boolean checkVersion(String module1version, String module2version) throws AxisFault(Code) | | - if he trying to engage the same module then method will returen false
- else it will return true
|
getAxisSpecifMEPConstant | public static int getAxisSpecifMEPConstant(String messageExchangePattern)(Code) | | 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)(Code) | | 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 - |
getModuleName | public static String getModuleName(String moduleName)(Code) | | Get the name of the module , where archive name is combination of module name + its version
The format of the name is as follows:
moduleName-00.0000
Example: "addressing-01.0001.mar" would return "addressing"
Parameters: moduleName - the name of the module archive the module name parsed out of the file name |
isExplicitlyTrue | public static boolean isExplicitlyTrue(MessageContext messageContext, String propertyName)(Code) | | Check if a MessageContext property is true.
Parameters: messageContext - the MessageContext Parameters: propertyName - the property name true if the property is Boolean.TRUE, "true", 1, etc. or false otherwise |
isLatest | public static boolean isLatest(String moduleVersion, String currentDefaultVersion)(Code) | | |
parseRequestURLForServiceAndOperation | public static String[] parseRequestURLForServiceAndOperation(String path, String servicePath)(Code) | | Break a full path into pieces
an array where element [0] always contains the service, and element 1, if not null, containsthe path after the first element. all ? parameters are discarded. |
|
|