|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--uk.org.ogsadai.client.toolkit.wsrf.WSRFDataServiceStub
| Constructor Summary | |
WSRFDataServiceStub(java.lang.String url)
|
|
| Method Summary | |
ActivityMetaData |
getActivityMetaData(ResourceID id,
java.lang.String activityName)
Obtain metadata for an activity |
DataResourceInfo |
getDataResourceInfo(ResourceID id)
Obtain data resource information from a data resource |
javax.xml.namespace.QName[] |
getPortTypes()
Obtain the port types that this service implements |
Property[] |
getProperties(ResourceID id,
javax.xml.namespace.QName[] names)
Obtain multiple properties in one request |
Property |
getProperty(ResourceID id,
javax.xml.namespace.QName name)
|
javax.xml.namespace.QName[] |
getPropertyNames(ResourceID id)
|
ResourceID[] |
getResourceIDs()
Obtain the IDs of the resources that are associated with this service |
RequestStatus |
getStatus(ResourceID id)
Obtain the status of the current request running at the resource with the specified ID. |
org.apache.axis.client.Stub |
getStub()
Return Axis stub class to client. |
java.lang.String[] |
getSupportedActivities(ResourceID id)
Obtain a list of activities that the specified data resource supports |
java.net.URL |
getURL()
Obtain the URL of the data service |
DAIVersion |
getVersion()
Obtain the version of this service |
Response |
perform(ResourceID id,
Request request)
Performs a request against the specified resource. |
void |
pollUntilRequestCompleted(ResourceID id,
int pollInterval,
int timeoutPeriod,
boolean forever)
Polls a data service for the request status and blocks until the status is 'COMPLETED'. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public WSRFDataServiceStub(java.lang.String url)
throws java.net.MalformedURLException
| Method Detail |
public Response perform(ResourceID id,
Request request)
throws PerformException,
UnsupportedActivityException,
AuthorisationException,
ActivityException,
ResourceException,
ServiceCommsException,
ServerException
id - resource IDrequest -
PerformException
ActivityException
ServiceCommsException
UnsupportedActivityException
AuthorisationException
ResourceException
ServerException
public ResourceID[] getResourceIDs()
throws ServiceCommsException,
ServerException
ServiceCommsException
ServerException
public RequestStatus getStatus(ResourceID id)
throws ServiceCommsException,
ResourceException
id - resource ID
ServiceCommsException
ResourceException
public DataResourceInfo getDataResourceInfo(ResourceID id)
throws ServiceCommsException,
ResourceException
id - the resource id of the data resource
ServiceCommsException
DataFormatException
ResourceException
public DAIVersion getVersion()
throws ServiceCommsException,
ServerException
ServiceCommsException
ServerException
public java.lang.String[] getSupportedActivities(ResourceID id)
throws ServiceCommsException,
ResourceException
id - data resource ID
ServiceCommsException
DataFormatException
ResourceException
public ActivityMetaData getActivityMetaData(ResourceID id,
java.lang.String activityName)
throws ServiceCommsException,
ResourceException
id - resource IDactivityName - the name of the activity
ServiceCommsException
DataFormatException
ResourceExceptionpublic java.net.URL getURL()
public Property getProperty(ResourceID id,
javax.xml.namespace.QName name)
throws ServiceCommsException,
DataFormatException,
ResourceException,
InvalidPropertyNameException
id - name -
ServiceCommsException
ResourceException
DataFormatException
InvalidPropertyNameException
public Property[] getProperties(ResourceID id,
javax.xml.namespace.QName[] names)
throws ResourceException,
ServiceCommsException,
InvalidPropertyNameException
id - data resource idnames - names of the properties to obtain
ResourceException
ServiceCommsException
DataFormatException
InvalidPropertyNameExceptionpublic javax.xml.namespace.QName[] getPropertyNames(ResourceID id)
public javax.xml.namespace.QName[] getPortTypes()
public org.apache.axis.client.Stub getStub()
AxisStub
getStub in interface AxisStub
public void pollUntilRequestCompleted(ResourceID id,
int pollInterval,
int timeoutPeriod,
boolean forever)
throws RequestStatusException,
ServiceCommsException,
ResourceException,
java.lang.IllegalArgumentException
RequestStatusException
is thrown.
If the status has not reached COMPLETED within the specififed
timeout period a RequestStatusException is thrown.
pollInterval - time (in milliseconds) between pollstimeoutPeriod - time (in millisconds) to wait before
giving upforever - true if wait forever, false if to timeout
RequestStatusException - If the status shows that the requent is
not progressing smoothly.
ServiceCommsException - If there was an error communicating with
the service.
java.lang.IllegalArgumentException - If the poll internal or the timeout
period are less than or equal to 0.
ResourceException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||