Save This Page
Home » axis2-1.5-src » org.apache » axis2 » deployment » util » [javadoc | source]
org.apache.axis2.deployment.util
public class: Utils [javadoc | source]
java.lang.Object
   org.apache.axis2.deployment.util.Utils
Field Summary
public static  String defaultEncoding     
Method from org.apache.axis2.deployment.util.Utils Summary:
addEndpointsToService,   addEndpointsToService,   addExcludeMethods,   addFlowHandlers,   addHttpEndpoint,   addSoap11Endpoint,   addSoap12Endpoint,   createClassLoader,   createClassLoader,   createClassLoader,   createTempFile,   deployModuleServices,   fillAxisService,   findLibJars,   getAnnotatedServiceName,   getAxisOperationForJmethod,   getBindingMessage,   getBindingOperation,   getClassLoader,   getClassLoader,   getHttpBinding,   getParameter,   getPath,   getShortFileName,   getSoap11Binding,   getSoap12Binding,   getURLsForAllJars,   isHttpBinding,   isSoap11Binding,   isSoap12Binding,   loadHandler,   normalize,   processBeanPropertyExclude,   processPolicyAttachments,   toFile
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.axis2.deployment.util.Utils Detail:
 public static  void addEndpointsToService(AxisService axisService) throws AxisFault 
 public static  void addEndpointsToService(AxisService axisService,
    AxisConfiguration axisConfiguration) throws AxisFault 
 public static  void addExcludeMethods(ArrayList excludeList) 
    Add the Axis2 lifecycle / session methods to a pre-existing list of names that will be excluded when generating schemas.
 public static  void addFlowHandlers(Flow flow,
    ClassLoader clsLoader) throws AxisFault 
 public static  void addHttpEndpoint(AxisService axisService,
    URL url) 
 public static  void addSoap11Endpoint(AxisService axisService,
    URL url) throws Exception 
 public static  void addSoap12Endpoint(AxisService axisService,
    URL url) throws Exception 
 public static DeploymentClassLoader createClassLoader(File serviceFile) throws MalformedURLException 
 public static ClassLoader createClassLoader(ArrayList urls,
    ClassLoader serviceClassLoader,
    boolean extractJars,
    File tmpDir) 
 public static ClassLoader createClassLoader(URL[] urls,
    ClassLoader serviceClassLoader,
    boolean extractJars,
    File tmpDir) 
 public static File createTempFile(String suffix,
    InputStream in,
    File tmpDir) throws IOException 
 public static  void deployModuleServices(AxisModule module,
    ConfigurationContext configCtx) throws AxisFault 
    Modules can contain services in some cases. This method will deploy all the services for a given AxisModule into the current AxisConfiguration.

    The code looks for an "aars/" directory inside the module (either .mar or exploded), and an "aars.list" file inside that to figure out which services to deploy. Note that all services deployed this way will have access to the Module's classes.

 public static  void fillAxisService(AxisService axisService,
    AxisConfiguration axisConfig,
    ArrayList excludeOperations,
    ArrayList nonRpcMethods) throws Exception 
    This guy will create a AxisService using java reflection
 public static List findLibJars(URL url) 
    Get names of all *.jar files inside the lib/ directory of a given jar URL
 public static String getAnnotatedServiceName(Class serviceClass,
    WebService serviceAnnotation) 
    The util method to prepare the JSR 181 annotated service name from given annotation or for defaults JSR 181 specifies that the in javax.jws.WebService the parameter serviceName contains the wsdl:service name to mapp. If its not available then the default will be Simple name of the class + "Service"
 public static AxisOperation getAxisOperationForJmethod(Method method) throws AxisFault 
 public static AxisBindingMessage getBindingMessage(AxisBindingOperation bindingOperation,
    AxisMessage message) 
 public static AxisBindingOperation getBindingOperation(AxisBinding binding,
    AxisOperation operation) 
 public static ClassLoader getClassLoader(ClassLoader parent,
    String path) throws DeploymentException 
 public static ClassLoader getClassLoader(ClassLoader parent,
    File file) throws DeploymentException 
    Get a ClassLoader which contains a classpath of a) the passed directory and b) any jar files inside the "lib/" or "Lib/" subdirectory of the passed directory.
 public static AxisBinding getHttpBinding(AxisService service) 
 public static OMElement getParameter(String name,
    String value,
    boolean locked) 
 public static String getPath(String parent,
    String childPath) 
 public static String getShortFileName(String filename) 
 public static AxisBinding getSoap11Binding(AxisService service) 
 public static AxisBinding getSoap12Binding(AxisService service) 
 public static URL[] getURLsForAllJars(URL url,
    File tmpDir) 
 public static boolean isHttpBinding(AxisBinding binding) 
 public static boolean isSoap11Binding(AxisBinding binding) 
 public static boolean isSoap12Binding(AxisBinding binding) 
 public static boolean loadHandler(ClassLoader loader1,
    HandlerDescription desc) throws DeploymentException 
 public static String normalize(String uri) 
    Normalize a uri containing ../ and ./ paths.
 public static  void processBeanPropertyExclude(AxisService service) 
    This method is to process bean exclude parameter and the XML format of that would be +
 public static  void processPolicyAttachments(Iterator attachmentElements,
    AxisService service) throws XMLStreamException, FactoryConfigurationError 
 public static File toFile(URL url) throws UnsupportedEncodingException