|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--uk.org.ogsadai.client.toolkit.soap.SOAPCall
This class wraps an Axis Call object, invokes service operations and parses and maps incoming SOAP faults to OGSA-DAI client toolkit faults if a suitable mapping exists.
The fault classes are from uk.org.ogsadai.client.toolkit.service.faults.
| Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICECopyright statement |
private static java.lang.String |
FAULT_LOCALAxis fault local name. |
private static java.lang.String |
FAULT_NSAxis fault namespace. |
private static DAILogger |
LOGLogger object for logging in this class. |
private AttachmentManager |
mAttachmentManagerMap with MIME Content-IDs as keys and DataHangler objects representing attachments |
private org.apache.axis.client.Call |
mCallWrapped Axis Call<.code> object. |
private static java.util.Properties |
mMappingsMappings from OGSA-DAI service faults to OGSA-DAI client toolkit fault classes. |
private org.apache.axis.client.Service |
mServiceAxis service object. |
| Constructor Summary | |
SOAPCall()Constructs a new SOAPCall object. |
|
| Method Summary | |
static void |
checkUnsupportedOperation(java.lang.String url, javax.xml.namespace.QName operationName, org.apache.axis.AxisFault e)Check if an Axis fault was caused by an attempt to invoke an operation unsupported by a service. |
AttachmentManager |
getAttachmentManager()Get the attachments map mapping Content-ID MIME Header values to Objects representing attachment data. |
org.apache.axis.client.Call |
getCall()Return the Axis Call object that is wrapped by this object. |
private java.lang.String |
getExceptionName(org.w3c.dom.Element[] details)Get the fault class name from an Axis fault if it exists. |
private org.apache.axis.AxisFault |
getMappedFault(org.w3c.dom.Element[] details)Map an Axis fault to a DAIFaultType if such a mapping exists. |
java.util.Vector |
invoke(java.lang.String destination, javax.xml.namespace.QName operation, org.apache.axis.message.SOAPBodyElement body)Invoke an operation on a service. |
private void |
processAttachments(org.apache.axis.Message message)Extratcs attachments from SOAP message. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
private static final DAILogger LOG
private static final java.lang.String FAULT_NS
private static final java.lang.String FAULT_LOCAL
private final org.apache.axis.client.Service mService
private final org.apache.axis.client.Call mCall
Call<.code> object.
mAttachmentManager
private final AttachmentManager mAttachmentManager
Map with MIME Content-IDs as keys and DataHangler objects representing attachments
mMappings
private static final java.util.Properties mMappings
Mappings from OGSA-DAI service faults to OGSA-DAI client toolkit fault classes.
| Constructor Detail |
SOAPCall
public SOAPCall()
Constructs a new SOAPCall object.
| Method Detail |
public org.apache.axis.client.Call getCall()
Call object that is wrapped by this object.
Call object
public java.util.Vector invoke(java.lang.String destination,
javax.xml.namespace.QName operation,
org.apache.axis.message.SOAPBodyElement body)
throws DAIFaultType,
java.rmi.RemoteException,
ServiceCommsException
destination - URL of the service.operation - Qualified name of the operation to invoke.body - Body of the SOAP message.Vector of SOAPBodyElements.DAIFaultType - if a fault occurred which could be mapped to an OGSA-DAI client toolkit fault class.java.rmi.RemoteException - if a fault occurs and it has no mapping to an OGSA-DAI client toolkit fault class or any other problem arises.ServiceCommsException - if there was a problem communicating with the service
private void processAttachments(org.apache.axis.Message message)
throws SOAPAttachmentException
message - SOAP message.SOAPAttachmentExceptionpublic AttachmentManager getAttachmentManager()
private java.lang.String getExceptionName(org.w3c.dom.Element[] details)
details - Fault detailsnull
getMappedFault
private org.apache.axis.AxisFault getMappedFault(org.w3c.dom.Element[] details)
Map an Axis fault to a DAIFaultType if such a mapping exists.
details - Details of the Axis fault.DAIFaultType if the fault could be mapped or an AxisFault if the fault could not be mapped.
public static void checkUnsupportedOperation(java.lang.String url,
javax.xml.namespace.QName operationName,
org.apache.axis.AxisFault e)
throws UnsupportedOperationException,
ServiceCommsException
url - Service URLoperationName - Qualified name of the operatione - Axis fault thrown by service.UnsupportedOperationException - If e represents an unsupported operation fault.ServiceCommsException - If e does not represent an unsupported operation fault.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||