org.gcube.data.tr.requests
Interface Request

All Known Implementing Classes:
AbstractRequest, BindSource

public interface Request

Common interface for binding requests to the plugin via T-Binder services.

Author:
Fabio Simeoni

Method Summary
 org.gcube.data.tm.stubs.SourceBinding send()
          Sends the request to some suitable instance of the hosting service.
 org.gcube.data.tm.stubs.SourceBinding send(org.gcube.common.clients.gcore.StatefulQuery query)
          Sends the request to a hosting service returned by a given query.
 org.gcube.data.tm.stubs.SourceBinding send(URL url)
          Sends the request to a hosting service at a given endpoint.
 

Method Detail

send

org.gcube.data.tm.stubs.SourceBinding send()
                                           throws org.gcube.common.clients.DiscoveryException,
                                                  Exception
Sends the request to some suitable instance of the hosting service.

Returns:
the request outcome
Throws:
Exception - if the request fails
org.gcube.common.clients.DiscoveryException - if there are no T-Binder services with the plugin

send

org.gcube.data.tm.stubs.SourceBinding send(URL url)
                                           throws Exception
Sends the request to a hosting service at a given endpoint.

Parameters:
url - the endpoint
Returns:
the request outcome
Throws:
Exception - if the request fails

send

org.gcube.data.tm.stubs.SourceBinding send(org.gcube.common.clients.gcore.StatefulQuery query)
                                           throws org.gcube.common.clients.DiscoveryException,
                                                  Exception
Sends the request to a hosting service returned by a given query.

Parameters:
query - the query
Returns:
the request outcome
Throws:
Exception - if the request fails
org.gcube.common.clients.DiscoveryException - if there are no T-Binder services that satisfy the query


Copyright © 2012. All Rights Reserved.