org.apache.axis2.jaxws.utility
Class JavaUtils

java.lang.Object
  extended by org.apache.axis2.util.JavaUtils
      extended by org.apache.axis2.jaxws.utility.JavaUtils

public class JavaUtils
extends JavaUtils

Common Java Utilites


Field Summary
 
Fields inherited from class org.apache.axis2.util.JavaUtils
EMPTY_STRING_ARRAY
 
Method Summary
static java.net.URI createURI(java.lang.String pathString)
          Convert a String to a URI, handling special characters in the String such as spaces.
static java.lang.Class getCheckedException(java.lang.Throwable throwable, java.lang.reflect.Method method)
          Get checked exception
static java.lang.String getPackageFromNamespace(java.lang.String namespace)
          Namespace 2 Package algorithm as defined by the JAXB Specification
static java.lang.String stackToString()
          Get a string containing the stack of the current location
static java.lang.String stackToString(java.lang.Throwable e)
          Get a string containing the stack of the specified exception
 
Methods inherited from class org.apache.axis2.util.JavaUtils
callStackToString, capitalizeFirstChar, getWrapperClass, getWrapperClass, hasUpperCase, indexOfIgnoreCase, isFalse, isFalse, isFalse, isFalseExplicitly, isFalseExplicitly, isFalseExplicitly, isJavaId, isJavaKeyword, isTrue, isTrue, isTrue, isTrueExplicitly, isTrueExplicitly, isTrueExplicitly, makeNonJavaKeyword, replace, split, xmlNameToJava, xmlNameToJavaIdentifier
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPackageFromNamespace

public static java.lang.String getPackageFromNamespace(java.lang.String namespace)
Namespace 2 Package algorithm as defined by the JAXB Specification

Parameters:
Namespace -
Returns:
String represeting Namespace

stackToString

public static java.lang.String stackToString()
Get a string containing the stack of the current location

Returns:
String

stackToString

public static java.lang.String stackToString(java.lang.Throwable e)
Get a string containing the stack of the specified exception

Parameters:
e -
Returns:

getCheckedException

public static java.lang.Class getCheckedException(java.lang.Throwable throwable,
                                                  java.lang.reflect.Method method)
Get checked exception

Parameters:
throwable - Throwable
method - Method
Returns:
Class of the checked exception or null

createURI

public static java.net.URI createURI(java.lang.String pathString)
Convert a String to a URI, handling special characters in the String such as spaces.

Parameters:
pathString - The String to be converted to a URI
Returns:
a URI or null if the String can't be converted.


Copyright © 2007 Apache Web Services Project. All Rights Reserved.