org.apache.axis2.deployment.util
Class Utils

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

public class Utils
extends Object


Constructor Summary
Utils()
           
 
Method Summary
static void addFlowHandlers(Flow flow, ClassLoader clsLoader)
           
static File createTempFile(String suffix, InputStream in)
           
static void deployModuleServices(AxisModule module, ConfigurationContext configCtx)
          This method is to get the list of services there in a module if module want to add services then the way of doing that is 1.
static void fillAxisService(AxisService axisService, AxisConfiguration axisConfig, ArrayList excludeOperations)
          This guy will create a AxisService using java reflection
static AxisOperation getAxisOperationforJmethod(org.codehaus.jam.JMethod jmethod, org.apache.ws.java2wsdl.utils.TypeTable table)
           
static ClassLoader getClassLoader(ClassLoader parent, File file)
           
static ClassLoader getClassLoader(ClassLoader parent, String path)
           
static org.apache.axiom.om.OMElement getParameter(String name, String value, boolean locked)
           
static String getPath(String parent, String childPath)
           
static URL[] getURLsForAllJars(URL url, boolean antiJARLocking)
           
static void loadHandler(ClassLoader loader1, HandlerDescription desc)
           
static String normalize(String uri)
          Normalize a uri containing ../ and ./ paths.
 
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

addFlowHandlers

public static void addFlowHandlers(Flow flow,
                                   ClassLoader clsLoader)
                            throws AxisFault
Throws:
AxisFault

loadHandler

public static void loadHandler(ClassLoader loader1,
                               HandlerDescription desc)
                        throws DeploymentException
Throws:
DeploymentException

getURLsForAllJars

public static URL[] getURLsForAllJars(URL url,
                                      boolean antiJARLocking)

createTempFile

public static File createTempFile(String suffix,
                                  InputStream in)
                           throws IOException
Throws:
IOException

getClassLoader

public static ClassLoader getClassLoader(ClassLoader parent,
                                         String path)
                                  throws DeploymentException
Throws:
DeploymentException

getClassLoader

public static ClassLoader getClassLoader(ClassLoader parent,
                                         File file)
                                  throws DeploymentException
Throws:
DeploymentException

fillAxisService

public static void fillAxisService(AxisService axisService,
                                   AxisConfiguration axisConfig,
                                   ArrayList excludeOperations)
                            throws Exception
This guy will create a AxisService using java reflection

Throws:
Exception

getAxisOperationforJmethod

public static AxisOperation getAxisOperationforJmethod(org.codehaus.jam.JMethod jmethod,
                                                       org.apache.ws.java2wsdl.utils.TypeTable table)
                                                throws AxisFault
Throws:
AxisFault

getParameter

public static org.apache.axiom.om.OMElement getParameter(String name,
                                                         String value,
                                                         boolean locked)

deployModuleServices

public static void deployModuleServices(AxisModule module,
                                        ConfigurationContext configCtx)
                                 throws AxisFault
This method is to get the list of services there in a module if module want to add services then the way of doing that is 1. Add a directory called services inside the module (both in mar case and expanded case) 2. Then add a services.list file into that directory adding all the modules you want to add 3. Then put all the services into services directory in the module 4. All the class is module can be access via a the module services.

Throws:
AxisFault

normalize

public static String normalize(String uri)
Normalize a uri containing ../ and ./ paths.

Parameters:
uri - The uri path to normalize
Returns:
The normalized uri

getPath

public static String getPath(String parent,
                             String childPath)