org.apache.axis2.deployment.util
Class Utils

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

public class Utils
extends java.lang.Object


Constructor Summary
Utils()
           
 
Method Summary
static void addExclueMethods(java.util.ArrayList excludeList)
          To add the exclude method when generating scheams , here the exclude methods will be session releated axis2 methods
static void addFlowHandlers(Flow flow, java.lang.ClassLoader clsLoader)
           
static java.lang.ClassLoader createClassLoader(java.net.URL[] urls, java.lang.ClassLoader serviceClassLoader, boolean extractJars, java.io.File tmpDir)
           
static java.io.File createTempFile(java.lang.String suffix, java.io.InputStream in, java.io.File tmpDir)
           
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, java.util.ArrayList excludeOperations, java.util.ArrayList nonRpcMethods)
          This guy will create a AxisService using java reflection
static java.util.List findLibJars(java.net.URL url)
          Searches for jar files inside /lib dirctory.
static AxisOperation getAxisOperationforJmethod(org.codehaus.jam.JMethod jmethod, org.apache.ws.java2wsdl.utils.TypeTable table)
           
static java.lang.ClassLoader getClassLoader(java.lang.ClassLoader parent, java.io.File file)
           
static java.lang.ClassLoader getClassLoader(java.lang.ClassLoader parent, java.lang.String path)
           
static org.apache.axiom.om.OMElement getParameter(java.lang.String name, java.lang.String value, boolean locked)
           
static java.lang.String getPath(java.lang.String parent, java.lang.String childPath)
           
static java.net.URL[] getURLsForAllJars(java.net.URL url, java.io.File tmpDir)
           
static void loadHandler(java.lang.ClassLoader loader1, HandlerDescription desc)
           
static java.lang.String normalize(java.lang.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,
                                   java.lang.ClassLoader clsLoader)
                            throws AxisFault
Throws:
AxisFault

loadHandler

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

getURLsForAllJars

public static java.net.URL[] getURLsForAllJars(java.net.URL url,
                                               java.io.File tmpDir)

createTempFile

public static java.io.File createTempFile(java.lang.String suffix,
                                          java.io.InputStream in,
                                          java.io.File tmpDir)
                                   throws java.io.IOException
Throws:
java.io.IOException

getClassLoader

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

getClassLoader

public static java.lang.ClassLoader getClassLoader(java.lang.ClassLoader parent,
                                                   java.io.File file)
                                            throws DeploymentException
Throws:
DeploymentException

fillAxisService

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

Parameters:
axisService - the target AxisService
axisConfig - the in-scope AxisConfiguration
excludeOperations - a List of Strings (or null), each containing a method to exclude
nonRpcMethods - a List of Strings (or null), each containing a non-rpc method name
Throws:
java.lang.Exception - if a problem occurs

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(java.lang.String name,
                                                         java.lang.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 java.lang.String normalize(java.lang.String uri)
Normalize a uri containing ../ and ./ paths.

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

getPath

public static java.lang.String getPath(java.lang.String parent,
                                       java.lang.String childPath)

findLibJars

public static java.util.List findLibJars(java.net.URL url)
Searches for jar files inside /lib dirctory. If there are any, the names of those jar files will be added to the array list


addExclueMethods

public static void addExclueMethods(java.util.ArrayList excludeList)
To add the exclude method when generating scheams , here the exclude methods will be session releated axis2 methods


createClassLoader

public static java.lang.ClassLoader createClassLoader(java.net.URL[] urls,
                                                      java.lang.ClassLoader serviceClassLoader,
                                                      boolean extractJars,
                                                      java.io.File tmpDir)


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