|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.soton.itinnovation.grid.utils.AxisUtils
public class AxisUtils
Utility methods for axis.
| Constructor Summary | |
|---|---|
AxisUtils()
|
|
| Method Summary | ||
|---|---|---|
static SOAPHeaderElement[] |
createFederationHeaders(org.apache.axis.message.addressing.EndpointReferenceType[] eprs)
Create the SOAP headers to hold the federation information, if any. |
|
static
|
elementToObject(Element element,
Class<T> cls)
Convert an Element to a Java object, using the client type mappings. |
|
static Element |
getChildElement(Element parent,
QName qname)
Return the single direct child element with the given name. |
|
static Element |
getChildElement(Element parent,
QName qname,
boolean required)
Return the single direct child element with the given name. |
|
static Element |
getChildElement(Element parent,
String namespace,
String localName)
Return the single direct child element with the given name. |
|
static Element |
getChildElement(Element parent,
String namespace,
String localName,
boolean required)
Return the single direct child element with the given name. |
|
static Element[] |
getChildElements(Element parent,
String namespace,
String localName)
Return all direct children with the given name. |
|
static String |
getExceptionName(RemoteException ex)
Get the name of the exception given by a remote service. |
|
static String |
getHostName(RemoteException ex)
Get the name of the host that threw an exception. |
|
static Element |
getOptionalChildElement(Element parent,
QName qname)
Return the single direct child element with the given name, if present |
|
static Element |
getOptionalChildElement(Element parent,
String namespace,
String localName)
Return the single direct child element with the given name, if present |
|
static String |
getSingletonElementText(Element parent,
QName qname)
Return the contents of the named child element. |
|
static String |
getSingletonElementText(Element parent,
String namespace,
String localName)
Return the contents of the named child element. |
|
static String |
getTextContent(Element parent)
Deprecated. |
|
static String |
objectToString(QName name,
Object object)
Convert a Java object to an XML fragment, using our configured type-mappings. |
|
static boolean |
remoteExceptionIs(RemoteException fault,
Class<? extends Exception> type)
Check whether this exception was caused by the remote service throwing a given type of exception. |
|
static
|
toArray(Class<T> type,
Object possibleArrayList)
Convert a return value that should be an array to a sane form. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AxisUtils()
| Method Detail |
|---|
public static <T> T[] toArray(Class<T> type,
Object possibleArrayList)
@Deprecated public static String getTextContent(Element parent)
public static String getExceptionName(RemoteException ex)
ex - a fault from Call.invoke().
public static String getHostName(RemoteException ex)
ex - a fault from Call.invoke().
public static boolean remoteExceptionIs(RemoteException fault,
Class<? extends Exception> type)
fault - a fault from Call.invoke().type - the class of an exception
public static Element getChildElement(Element parent,
String namespace,
String localName)
throws IllegalArgumentException
IllegalArgumentException - if there is not exactly one such element
public static Element getOptionalChildElement(Element parent,
String namespace,
String localName)
throws IllegalArgumentException
IllegalArgumentException - only if there are multiple elements present
public static Element getChildElement(Element parent,
String namespace,
String localName,
boolean required)
throws IllegalArgumentException
required - a boolean flag to indicate if the element is required, or is optional
IllegalArgumentException - if there is not exactly one such element, if one is required
public static Element getChildElement(Element parent,
QName qname)
throws IllegalArgumentException
IllegalArgumentException - if there is not exactly one such element
public static Element getOptionalChildElement(Element parent,
QName qname)
throws IllegalArgumentException
IllegalArgumentException - only if there are multiple elements present
public static Element getChildElement(Element parent,
QName qname,
boolean required)
throws IllegalArgumentException
required - a boolean flag to indicate if the element is required, or is optional
IllegalArgumentException - if there is not exactly one such element, if one is required
public static String getSingletonElementText(Element parent,
String namespace,
String localName)
throws IllegalArgumentException
IllegalArgumentException - if there isn't exactly one such child
public static String getSingletonElementText(Element parent,
QName qname)
throws IllegalArgumentException
IllegalArgumentException - if there isn't exactly one such child
public static Element[] getChildElements(Element parent,
String namespace,
String localName)
public static String objectToString(QName name,
Object object)
object - object to convert
public static <T> T elementToObject(Element element,
Class<T> cls)
element - DOM element to readcls - Java class of expected result
public static SOAPHeaderElement[] createFederationHeaders(org.apache.axis.message.addressing.EndpointReferenceType[] eprs)
info - EPRs of a management resources, or empty if none is required
createFederationHeader(org.apache.axis.message.addressing.EndpointReferenceType)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||