|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axis2.util.Utils
public class Utils
Constructor Summary | |
---|---|
Utils()
|
Method Summary | |
---|---|
static void |
addHandler(Flow flow,
Handler handler,
String phaseName)
|
static void |
calculateDefaultModuleVersion(HashMap modules,
AxisConfiguration axisConfig)
|
static boolean |
checkVersion(Version module1version,
Version module2version)
- 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 Object |
createServiceObject(AxisService service)
Create a service object for a given service. |
static AxisService |
createSimpleInOnlyService(QName serviceName,
MessageReceiver messageReceiver,
QName opName)
|
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 int |
getAxisSpecifMEPConstant(String messageExchangePattern)
Maps the String URI of the Message exchange pattern to a integer. |
static String |
getHostname(AxisConfiguration axisConfiguration)
First check whether the hostname parameter is there in AxisConfiguration (axis2.xml) , if it is there then this will return that as the host name , o.w will return the IP address. |
static AxisFault |
getInboundFaultFromMessageContext(MessageContext messageContext)
Get an AxisFault object to represent the SOAPFault in the SOAPEnvelope attached to the provided MessageContext. |
static String |
getIpAddress()
Returns the ip address to be used for the replyto epr CAUTION: This will go through all the available network interfaces and will try to return an ip address. |
static String |
getIpAddress(AxisConfiguration axisConfiguration)
First check whether the hostname parameter is there in AxisConfiguration (axis2.xml) , if it is there then this will retun that as the host name , o.w will return the IP address. |
static String |
getModuleName(String moduleName,
String moduleVersion)
|
static int |
getMtomThreshold(MessageContext msgCtxt)
|
static ConfigurationContext |
getNewConfigurationContext(String repositry)
|
static ClassLoader |
getObjectClassLoader(Object object)
This method will provide the logic needed to retrieve an Object's classloader in a Java 2 Security compliant manner. |
static String |
getOperationName(String path,
String serviceName)
Compute the operation path from request URI using the servince name. |
static String |
getParameterValue(Parameter param)
|
static String |
getServiceAndOperationPart(String path,
String servicePath)
Gives the service/operation part from the incoming EPR Ex: ..services/foo/bar/Version/getVersion -> foo/bar/Version/getVersion |
static Class<?> |
getServiceClass(AxisService service)
Get the service class for a given service. |
static String |
getURIScheme(String uri)
Get the scheme part from a URI (or URL). |
static boolean |
isClientThreadNonBlockingPropertySet(MessageContext messageContext)
this is to make is backward compatible. |
static boolean |
isExplicitlyTrue(MessageContext messageContext,
String propertyName)
Deprecated. please use MessageContext.isTrue(propertyName) instead |
static boolean |
isValidModuleName(String moduleName)
|
static String[] |
parseRequestURLForServiceAndOperation(String path,
String servicePath)
Break a full path into pieces |
static String |
sanitizeWebOutput(String text)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Utils()
Method Detail |
---|
public static void addHandler(Flow flow, Handler handler, String phaseName)
public static MessageContext createOutMessageContext(MessageContext inMessageContext) throws AxisFault
AxisFault
org.apache.axis2.util.MessageContextBuilder:createOutMessageContext()
public static AxisService createSimpleService(QName serviceName, String className, QName opName) throws AxisFault
AxisFault
public static AxisService createSimpleServiceforClient(QName serviceName, String className, QName opName) throws AxisFault
AxisFault
public static AxisService createSimpleInOnlyService(QName serviceName, MessageReceiver messageReceiver, QName opName) throws AxisFault
AxisFault
public static AxisService createSimpleService(QName serviceName, MessageReceiver messageReceiver, String className, QName opName) throws AxisFault
AxisFault
public static AxisService createSimpleServiceforClient(QName serviceName, MessageReceiver messageReceiver, String className, QName opName) throws AxisFault
AxisFault
public static ServiceContext fillContextInformation(AxisService axisService, ConfigurationContext configurationContext) throws AxisFault
AxisFault
public static String[] parseRequestURLForServiceAndOperation(String path, String servicePath)
public static String getServiceAndOperationPart(String path, String servicePath)
path
- - incoming EPRservicePath
- - Ex: 'services'
public static String getOperationName(String path, String serviceName)
path
- - request URIserviceName
- - service name
public static ConfigurationContext getNewConfigurationContext(String repositry) throws Exception
Exception
public static String getParameterValue(Parameter param)
public static String getModuleName(String moduleName, String moduleVersion)
public static boolean isValidModuleName(String moduleName)
public static boolean checkVersion(Version module1version, Version module2version) throws AxisFault
AxisFault
public static void calculateDefaultModuleVersion(HashMap modules, AxisConfiguration axisConfig)
public static boolean isExplicitlyTrue(MessageContext messageContext, String propertyName)
messageContext
- the MessageContextpropertyName
- the property name
public static int getAxisSpecifMEPConstant(String messageExchangePattern)
public static AxisFault getInboundFaultFromMessageContext(MessageContext messageContext)
messageContext
-
public static ClassLoader getObjectClassLoader(Object object)
public static int getMtomThreshold(MessageContext msgCtxt)
public static String getIpAddress() throws SocketException
SocketException
public static String getIpAddress(AxisConfiguration axisConfiguration) throws SocketException
SocketException
public static String getHostname(AxisConfiguration axisConfiguration)
axisConfiguration
-
public static String getURIScheme(String uri)
uri
- the URI
public static String sanitizeWebOutput(String text)
public static Object createServiceObject(AxisService service) throws AxisFault
Constants.SERVICE_OBJECT_SUPPLIER
service parameter and if
this parameter is present, it will use the specified class to create the
service object. If the parameter is not present, it will create an
instance of the class specified by the Constants.SERVICE_CLASS
parameter.
service
- the service
null
if neither the
Constants.SERVICE_OBJECT_SUPPLIER
nor the
Constants.SERVICE_CLASS
parameter was found on the
service, i.e. if the service doesn't specify how to create a
service object. If the return value is non null, it will always
be a newly created instance.
AxisFault
- if an error occurred while attempting to instantiate the
service objectpublic static Class<?> getServiceClass(AxisService service) throws AxisFault
Constants.SERVICE_CLASS
service parameter and if that
parameter is not present, inspect the instance returned by the service
object supplier specified by Constants.SERVICE_OBJECT_SUPPLIER
.
service
- the service
null
if neither the
Constants.SERVICE_CLASS
nor the
Constants.SERVICE_OBJECT_SUPPLIER
parameter was found on
the service, i.e. if the service doesn't specify a service class.
AxisFault
- if an error occurred while attempting to load the service
class or to instantiate the service objectpublic static boolean isClientThreadNonBlockingPropertySet(MessageContext messageContext)
messageContext
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |